|
|
|
@ -1,40 +1,33 @@
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global talloc_version 2.4.1
|
|
|
|
|
%global talloc_version 2.3.1
|
|
|
|
|
|
|
|
|
|
Name: libtevent
|
|
|
|
|
Version: 0.16.0
|
|
|
|
|
Version: 0.12.0
|
|
|
|
|
Release: 0%{?dist}
|
|
|
|
|
Summary: The tevent library
|
|
|
|
|
License: LGPL-3.0-or-later
|
|
|
|
|
License: LGPLv3+
|
|
|
|
|
URL: http://tevent.samba.org/
|
|
|
|
|
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
|
|
|
|
|
Source1: http://samba.org/ftp/tevent/tevent-%{version}.tar.asc
|
|
|
|
|
# gpg2 --no-default-keyring --keyring ./tevent.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025
|
|
|
|
|
Source2: tevent.keyring
|
|
|
|
|
|
|
|
|
|
# Patches
|
|
|
|
|
|
|
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: libcmocka-devel >= 1.1.3
|
|
|
|
|
BuildRequires: libtalloc-devel >= %{talloc_version}
|
|
|
|
|
BuildRequires: libcmocka-devel >= 1.1.3
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
|
BuildRequires: libxslt
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-talloc-devel >= %{talloc_version}
|
|
|
|
|
#endif with python
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
|
|
|
|
|
Provides: bundled(libreplace)
|
|
|
|
|
Obsoletes: python2-tevent < 0.10.0-1
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-talloc-devel >= %{talloc_version}
|
|
|
|
|
|
|
|
|
|
Obsoletes: python2-tevent < %{version}-%{release}
|
|
|
|
|
Obsoletes: python2-tevent-debuginfo < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# Patches
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Tevent is an event system based on the talloc memory management library.
|
|
|
|
@ -46,13 +39,13 @@ tevent_req (Tevent Request) functions.
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Developer tools for the Tevent library
|
|
|
|
|
Requires: libtevent%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: libtalloc-devel%{?_isa} >= %{talloc_version}
|
|
|
|
|
Requires: libtalloc-devel%{?_isa} >= 2.0.7
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Header files needed to develop programs that link against the Tevent library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-tevent
|
|
|
|
|
Summary: Python 3 bindings for the Tevent library
|
|
|
|
|
Requires: libtevent%{?_isa} = %{version}-%{release}
|
|
|
|
@ -61,10 +54,23 @@ Requires: libtevent%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-tevent
|
|
|
|
|
Python 3 bindings for libtevent
|
|
|
|
|
#endif with python
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
# Update timestamps on the files touched by a patch, to avoid non-equal
|
|
|
|
|
# .pyc/.pyo files across the multilib peers within a build, where "Level"
|
|
|
|
|
# is the patch prefix option (e.g. -p1)
|
|
|
|
|
# Taken from specfile for python-simplejson
|
|
|
|
|
UpdateTimestamps() {
|
|
|
|
|
Level=$1
|
|
|
|
|
PatchFile=$2
|
|
|
|
|
|
|
|
|
|
# Locate the affected files:
|
|
|
|
|
for f in $(diffstat $Level -l $PatchFile); do
|
|
|
|
|
# Set the files to have the same timestamp as that of the patch:
|
|
|
|
|
touch -r $PatchFile $f
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
|
|
|
|
|
%autosetup -n tevent-%{version} -p1
|
|
|
|
|
|
|
|
|
@ -73,20 +79,20 @@ zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
|
|
|
|
|
--bundled-libraries=NONE \
|
|
|
|
|
--builtin-libraries=replace
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
doxygen doxy.config
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%make_build check
|
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# Install API docs
|
|
|
|
|
rm -f doc/man/man3/todo*
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_mandir}
|
|
|
|
|
cp -a doc/man/man3 %{buildroot}%{_mandir}
|
|
|
|
|
cp -a doc/man/* %{buildroot}%{_mandir}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_libdir}/libtevent.so.*
|
|
|
|
@ -97,31 +103,14 @@ cp -a doc/man/man3 %{buildroot}%{_mandir}
|
|
|
|
|
%{_libdir}/pkgconfig/tevent.pc
|
|
|
|
|
%{_mandir}/man3/tevent*.gz
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files -n python3-tevent
|
|
|
|
|
%{python3_sitearch}/tevent.py
|
|
|
|
|
%{python3_sitearch}/__pycache__/tevent.*
|
|
|
|
|
%{python3_sitearch}/_tevent.cpython*.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 17 2023 Pavel Filipenský <pfilipen@redhat.com> - 0.16.0-0
|
|
|
|
|
- resolves: RHEL-16504 - update to version 0.16.0
|
|
|
|
|
|
|
|
|
|
* Tue Jun 06 2023 Pavel Filipenský <pfilipen@redhat.com> - 0.14.1-3
|
|
|
|
|
- resolves: rhbz#2190425 - Rebuild to trigger distrobaker sync
|
|
|
|
|
|
|
|
|
|
* Wed May 24 2023 Pavel Filipenský <pfilipen@redhat.com> - 0.14.1-2
|
|
|
|
|
- resolves: rhbz#2190425 - Add missing tests to fix osci.brew-build.tier0.functional
|
|
|
|
|
|
|
|
|
|
* Thu May 18 2023 Pavel Filipenský <pfilipen@redhat.com> - 0.14.1-1
|
|
|
|
|
- resolves: rhbz#2190425 Update to version 0.14.1
|
|
|
|
|
|
|
|
|
|
* Mon Oct 24 2022 Andreas Schneider <asn@redhat.com> - 0.13.0-1
|
|
|
|
|
- resolves: rhbz#2132055 - Update to version 0.13.0
|
|
|
|
|
|
|
|
|
|
* Mon May 02 2022 Pavel Filipenský <pfilipen@redhat.com> - 0.12.0-0
|
|
|
|
|
- resolves: rhbz#2077485 - Update to version 0.12.0
|
|
|
|
|
|
|
|
|
|