libtevent/libtevent.spec

99 lines
2.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:58:23 -04:00
%{!?python3_sitearch: %define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%global talloc_version 2.3.1
2020-02-17 09:57:39 +08:00
Name: libtevent
Version: 0.10.2
2020-02-17 09:57:39 +08:00
Release: 1
Summary: Tevent is an event system based on the talloc memory management library.
License: LGPLv3+
URL: http://tevent.samba.org
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
Patch1: 0001-tevent-fix-CID-1437974-dereference-after-null-check.patch
2019-09-30 10:58:23 -04:00
BuildRequires: gcc libtirpc-devel docbook-style-xsl doxygen libxslt git
BuildRequires: libtalloc-devel >= %{talloc_version}
BuildRequires: python3-devel python3-talloc-devel >= %{talloc_version}
2019-09-30 10:58:23 -04:00
2020-02-17 09:57:39 +08:00
Provides: bundled(libreplace)
2019-09-30 10:58:23 -04:00
%description
Tevent is an event system based on the talloc memory management library. It is the core event system used in Samba.
The low level tevent has support for many event types, including timers, signals, and the classic file descriptor events.
Tevent also provide helpers to deal with asynchronous code providing the tevent_req (tevent request) functions.
%package devel
Summary: Libraries and header files for tevent
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libtalloc-devel%{?_isa} >= 2.0.7 pkgconfig
%description devel
Libraries and header files for tevent
%package -n python3-tevent
Summary: Python 3 libraries files for tevent
Requires: libtevent%{?_isa} = %{version}-%{release}
2020-03-21 21:33:03 +08:00
Obsoletes: python2-tevent
2019-09-30 10:58:23 -04:00
%{?python_provide:%python_provide python3-tevent}
%description -n python3-tevent
Python3 libraries files for tevent
%package help
Summary: Man for tevent
Requires: man
%description help
Man for tevent
%prep
%autosetup -n tevent-%{version} -p1 -Sgit
%build
2020-02-17 09:57:39 +08:00
%configure --disable-rpath --bundled-libraries=NONE --builtin-libraries=replace
2019-09-30 10:58:23 -04:00
%make_build V=1
doxygen doxy.config
%install
%make_install
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
cp -a ./doc/man/* $RPM_BUILD_ROOT/%{_mandir}/
%check
%make_build check
%files
%{_libdir}/libtevent.so.*
%files devel
%{_includedir}/tevent.h
%{_libdir}/libtevent.so
%{_libdir}/pkgconfig/tevent.pc
%files -n python3-tevent
%{python3_sitearch}/*
%files help
%exclude %{_mandir}/man3/todo*
%{_mandir}/man3/tevent*
%changelog
* Thu Jul 16 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 0.10.2-1
- update to v0.10.2 version
2020-02-17 09:57:39 +08:00
* Mon Feb 17 2020 sunshihao <sunshihao@huawei.com> - 0.10.1-1
- Type:enhancement
- ID:NA
- SUG:NA
2020-02-18 10:16:04 +08:00
- DESC:update tevent to 0.10.1
2020-02-17 09:57:39 +08:00
2019-09-30 10:58:23 -04:00
* Tue Sep 3 2019 wubo<wubo40@huawei.com> - 0.9.37-4
- Package init