9a76b0
%if 0%{?fedora} || 0%{?rhel} > 7
9a76b0
%bcond_without python3
9a76b0
%else
9a76b0
%bcond_with python3
9a76b0
%endif
9a76b0
e27f4c
%global talloc_version 2.3.4
9a76b0
9a76b0
Name: libtevent
e27f4c
Version: 0.13.0
e27f4c
Release: 1%{?dist}
9a76b0
Summary: The tevent library
9a76b0
License: LGPLv3+
9a76b0
URL: http://tevent.samba.org/
9a76b0
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
9a76b0
Source1: http://samba.org/ftp/tevent/tevent-%{version}.tar.asc
9a76b0
# gpg2 --no-default-keyring --keyring ./tevent.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025
9a76b0
Source2: tevent.keyring
9a76b0
9a76b0
# Patches
9a76b0
Patch0001: 0003-wafsamba-Fix-few-SyntaxWarnings-caused-by-regular-ex.patch
9a76b0
9a76b0
BuildRequires: docbook-style-xsl
9a76b0
BuildRequires: doxygen
9a76b0
BuildRequires: gcc
9a76b0
BuildRequires: gnupg2
9a76b0
BuildRequires: libcmocka-devel >= 1.1.3
9a76b0
BuildRequires: libtalloc-devel >= %{talloc_version}
9a76b0
BuildRequires: libxslt
9a76b0
BuildRequires: make
9a76b0
%if %{with python3}
9a76b0
BuildRequires: python3-devel
9a76b0
BuildRequires: python3-talloc-devel >= %{talloc_version}
9a76b0
#endif with python
9a76b0
%endif
9a76b0
9a76b0
Provides: bundled(libreplace)
9a76b0
Obsoletes: python2-tevent < 0.10.0-1
9a76b0
9a76b0
%description
9a76b0
Tevent is an event system based on the talloc memory management library.
9a76b0
Tevent has support for many event types, including timers, signals, and
9a76b0
the classic file descriptor events.
9a76b0
Tevent also provide helpers to deal with asynchronous code providing the
9a76b0
tevent_req (Tevent Request) functions.
9a76b0
9a76b0
%package devel
9a76b0
Summary: Developer tools for the Tevent library
9a76b0
Requires: libtevent%{?_isa} = %{version}-%{release}
9a76b0
Requires: libtalloc-devel%{?_isa} >= %{talloc_version}
9a76b0
9a76b0
%description devel
9a76b0
Header files needed to develop programs that link against the Tevent library.
9a76b0
9a76b0
9a76b0
%if %{with python3}
9a76b0
%package -n python3-tevent
9a76b0
Summary: Python 3 bindings for the Tevent library
9a76b0
Requires: libtevent%{?_isa} = %{version}-%{release}
9a76b0
9a76b0
%{?python_provide:%python_provide python3-tevent}
9a76b0
9a76b0
%description -n python3-tevent
9a76b0
Python 3 bindings for libtevent
9a76b0
#endif with python
9a76b0
%endif
9a76b0
9a76b0
%prep
9a76b0
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
9a76b0
%autosetup -n tevent-%{version} -p1
9a76b0
9a76b0
%build
9a76b0
%configure --disable-rpath \
9a76b0
           --bundled-libraries=NONE \
9a76b0
           --builtin-libraries=replace
9a76b0
9a76b0
%make_build
9a76b0
9a76b0
doxygen doxy.config
9a76b0
9a76b0
%check
9a76b0
%make_build check
9a76b0
9a76b0
%install
9a76b0
%make_install
9a76b0
9a76b0
# Install API docs
9a76b0
rm -f doc/man/man3/todo*
9a76b0
install -d -m0755 %{buildroot}%{_mandir}
9a76b0
cp -a doc/man/man3 %{buildroot}%{_mandir}
9a76b0
9a76b0
%files
9a76b0
%{_libdir}/libtevent.so.*
9a76b0
9a76b0
%files devel
9a76b0
%{_includedir}/tevent.h
9a76b0
%{_libdir}/libtevent.so
9a76b0
%{_libdir}/pkgconfig/tevent.pc
9a76b0
%{_mandir}/man3/tevent*.gz
9a76b0
9a76b0
%if %{with python3}
9a76b0
%files -n python3-tevent
9a76b0
%{python3_sitearch}/tevent.py
9a76b0
%{python3_sitearch}/__pycache__/tevent.*
9a76b0
%{python3_sitearch}/_tevent.cpython*.so
9a76b0
%endif
9a76b0
9a76b0
%ldconfig_scriptlets
9a76b0
9a76b0
%changelog
e27f4c
* Fri Oct 21 2022 Andreas Schneider <asn@redhat.com> - 0.13.0-1
e27f4c
- related: rhbz#2131999 - Update to version 0.13.0
e27f4c
e27f4c
* Fri Oct 21 2022 Andreas Schneider <asn@redhat.com> - 0.12.1-1
e27f4c
- resolves: rhbz#2131999 - Update to version 0.12.1
e27f4c
b35249
* Mon May 02 2022 Pavel Filipenský <pfilipen@redhat.com> - 0.12.0-0
b35249
- resolves: rhbz#2077491 - Update to version 0.12.0
b35249
9a76b0
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.11.0-1
9a76b0
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9a76b0
  Related: rhbz#1991688
9a76b0
9a76b0
* Fri Jul 09 2021 Andreas Schneider <asn@redhat.com> - 0.11.0-0
9a76b0
- resolves: rhbz#1980694 - Update to version 0.11.0
9a76b0
9a76b0
* Tue Jun 01 2021 Andreas Schneider <asn@redhat.com> - 0.10.2-9
9a76b0
- related: rhbz#1962801 - Rebuilt for running gating tests
9a76b0
9a76b0
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.2-8
9a76b0
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9a76b0
9a76b0
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-7
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9a76b0
9a76b0
* Thu Oct 22 2020 Andreas Schneider <asn@redhat.com> - 0.10.2-6
9a76b0
- Spec file cleanup and improvements
9a76b0
9a76b0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-5
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9a76b0
9a76b0
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 0.10.2-4
9a76b0
- Use make macros
9a76b0
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
9a76b0
9a76b0
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-3
9a76b0
- Rebuilt for Python 3.9
9a76b0
9a76b0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9a76b0
9a76b0
* Wed Jan 22 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.10.2-1
9a76b0
- rhbz#1749005 - libtevent-0.10.2 is available
9a76b0
9a76b0
* Wed Sep 11 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.10.1-1
9a76b0
- rhbz#1749005 - libtevent-0.10.1 is available
9a76b0
9a76b0
* Mon Aug 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.10.0-1
9a76b0
- rhbz#1691300 - libtevent-0.10.0 is available
9a76b0
- rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
9a76b0
9a76b0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.39-5
9a76b0
- Rebuilt for Python 3.8
9a76b0
9a76b0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.39-4
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9a76b0
9a76b0
* Fri Jun 14 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.39-3
9a76b0
- rhbz#1718113 - samba fail to build with Python 3.8
9a76b0
  AttributeError: module 'time' has no attribute 'clock'
9a76b0
9a76b0
* Mon Jun 03 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.39-2
9a76b0
- rhbz#1711638 - fails to build with Python 3.8.0a4
9a76b0
9a76b0
* Tue Feb 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.39-1
9a76b0
- rhbz#1683186 - New upstream release 0.9.39
9a76b0
9a76b0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.38-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9a76b0
9a76b0
* Thu Jan 17 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.38-1
9a76b0
- New upstream release 0.9.38
9a76b0
9a76b0
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-2
9a76b0
- Drop the unneeded ABI hide patch
9a76b0
9a76b0
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-1
9a76b0
- New upstream release 0.9.37
9a76b0
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
9a76b0
- Patch the waf script to explicitly call python2 as "env python" doesn't
9a76b0
  yield py2 anymore
9a76b0
9a76b0
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.36-3
9a76b0
- Rebuilt for Python 3.7
9a76b0
9a76b0
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.36-2
9a76b0
- Rebuilt for Python 3.7
9a76b0
9a76b0
* Mon Feb 26 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.36-1
9a76b0
- rhbz#1548613 New upstream release 0.9.36
9a76b0
9a76b0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.35-3
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9a76b0
9a76b0
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.9.35-2
9a76b0
- Rebuilt for switch to libxcrypt
9a76b0
9a76b0
* Sat Jan 13 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.35-1
9a76b0
- rhbz#1534134 New upstream release 0.9.35
9a76b0
9a76b0
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.34-4
9a76b0
- Update Python 2 dependency declarations to new packaging standards
9a76b0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
9a76b0
9a76b0
* Thu Nov 30 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.9.34-3
9a76b0
- Cleanup spec file conditionals
9a76b0
9a76b0
* Thu Nov 30 2017 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.34-2
9a76b0
- Update spec file conditionals
9a76b0
9a76b0
* Tue Nov 14 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.34-1
9a76b0
- New upstream release 0.9.34
9a76b0
9a76b0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-3
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9a76b0
9a76b0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9a76b0
9a76b0
* Mon Jul 24 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.33-1
9a76b0
- New upstream release 0.9.33
9a76b0
9a76b0
* Fri Jun 23 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.32-1
9a76b0
- New upstream release 0.9.32
9a76b0
9a76b0
* Fri Mar 10 2017 Lukas Slebodnik <lslebodn@redhat.org> - 0.9.31-4
9a76b0
- Fix configure detection with strict CFLAGS - rhbz#1401231
9a76b0
- Fix few fedora packaging violations - rhbz#1401226
9a76b0
9a76b0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.31-3
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9a76b0
9a76b0
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.31-2
9a76b0
- Rebuild for Python 3.6
9a76b0
9a76b0
* Fri Oct  7 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.31-1
9a76b0
- New upstream release 0.9.31
9a76b0
9a76b0
* Mon Aug 29 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.30-1
9a76b0
- New upstream release 0.9.30
9a76b0
9a76b0
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.29-1
9a76b0
- New upstream release 0.9.29
9a76b0
9a76b0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.28-3
9a76b0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9a76b0
9a76b0
* Thu Apr 21 2016 Petr Viktorin <pviktori@redhat.com> - 0.9.28-2
9a76b0
- Build Python 3 package
9a76b0
- Resolves: rhbz#1298250 - libtevent: Provide a Python 3 subpackage
9a76b0
9a76b0
* Mon Feb 22 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.28-1
9a76b0
- New upstream release 0.9.28
9a76b0
9a76b0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.26-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9a76b0
9a76b0
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.26-1
9a76b0
- New upstream release 0.9.26
9a76b0
9a76b0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.25-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9a76b0
9a76b0
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.25-1
9a76b0
- New upstream release 0.9.25
9a76b0
9a76b0
* Thu Mar  5 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.24-1
9a76b0
- New upstream release 0.9.24
9a76b0
9a76b0
* Mon Mar  2 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.23-1
9a76b0
- New upstream release 0.9.23
9a76b0
9a76b0
* Thu Oct  9 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.22-1
9a76b0
- New upstream release 0.9.22
9a76b0
9a76b0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-3
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9a76b0
9a76b0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9a76b0
9a76b0
* Mon Jan 20 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-1
9a76b0
- New upstream release 0.9.21
9a76b0
9a76b0
* Sun Dec 15 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.20-1
9a76b0
- New upstream release 0.9.20
9a76b0
9a76b0
* Fri Aug 02 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.19-1
9a76b0
- New upstream release 0.9.19
9a76b0
- Drop upstreamed patch
9a76b0
9a76b0
* Mon Jul 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.18-3
9a76b0
- Make the dependency requirements arch-specific
9a76b0
- Remove ancient, unused patches
9a76b0
- Remove python variables that are not needed on modern systems
9a76b0
9a76b0
* Wed Jun 19 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-2
9a76b0
- Apply a patch from upstream to fix tevent_poll's additional_flags
9a76b0
  on 32bit architectures
9a76b0
- Resolves: rhbz#975490
9a76b0
9a76b0
* Mon Mar 18 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-1
9a76b0
- New upstream release 0.9.18
9a76b0
9a76b0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-4
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9a76b0
9a76b0
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-3
9a76b0
- Dropping the workaround dropped even the doxygen command itself..
9a76b0
9a76b0
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-2
9a76b0
- Drop the workaround for building man pages, it has already been
9a76b0
  included upstream
9a76b0
9a76b0
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-1
9a76b0
- New upstream release 0.9.17
9a76b0
9a76b0
* Fri Aug 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.16-3
9a76b0
- Own the individual manual pages, not the top-level directory
9a76b0
9a76b0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-2
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9a76b0
9a76b0
* Wed Jun 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.16-1
9a76b0
- New upstream release 0.9.16
9a76b0
- Adds tevent_*_trace_*() and tevent_context_init_ops()
9a76b0
- Move tevent.py to the arch-specific directory
9a76b0
9a76b0
* Fri Feb 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.15-1
9a76b0
- New upstream release 0.9.15
9a76b0
- Properly re-sets the nested.level flag in the ev.ctx when reinitializing
9a76b0
  after a fork()
9a76b0
- Allow tevent_signal events to be freed during their handler
9a76b0
9a76b0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-6
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9a76b0
9a76b0
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
9a76b0
- Include missing patch file
9a76b0
9a76b0
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
9a76b0
- Build pytevent properly
9a76b0
9a76b0
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-3
9a76b0
- Add patch to ignore --disable-silent-rules
9a76b0
- Include API documentation
9a76b0
9a76b0
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-2
9a76b0
- Add explicit mention of the bundled libreplace
9a76b0
- https://fedorahosted.org/fpc/ticket/120
9a76b0
9a76b0
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-1
9a76b0
- New upstream release
9a76b0
- Required for building more recent versions of samba4
9a76b0
9a76b0
* Tue Aug  2 2011 Simo Sorce <ssorce@redhat.com> - 0.9.13-1
9a76b0
- New upstream release
9a76b0
9a76b0
* Tue Mar 15 2011 Simo Sorce <ssorce@redhat.com> - 0.9.11-1
9a76b0
- New upstream release
9a76b0
9a76b0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-4
9a76b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9a76b0
9a76b0
* Tue Jan 18 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-3
9a76b0
- Add missing Buildrequires for pytalloc-devel
9a76b0
9a76b0
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-2
9a76b0
- Let rpmbuild strip binaries, make build more verbose.
9a76b0
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
9a76b0
9a76b0
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-1
9a76b0
- New upstream release
9a76b0
- Convert to new WAF build-system
9a76b0
9a76b0
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
9a76b0
- Bump revision to chain-build libtevent, samba4 and sssd
9a76b0
9a76b0
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
9a76b0
- Drop ABI compatibility patch (no longer needed)
9a76b0
9a76b0
* Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
9a76b0
- Add patch to fix a segfault case
9a76b0
9a76b0
* Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
9a76b0
- Fix abi compatibility with 0.9.3
9a76b0
9a76b0
* Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
9a76b0
- First independent release for tevent 0.9.8