Blame SPECS/libtevent.spec

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