Blame SPECS/libtevent.spec

6347fb
%global talloc_version 2.3.1
86c1f5
86c1f5
Name: libtevent
c9021c
Version: 0.12.0
146b3a
Release: 0%{?dist}
86c1f5
Summary: The tevent library
86c1f5
License: LGPLv3+
86c1f5
URL: http://tevent.samba.org/
146b3a
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
146b3a
Source1: http://samba.org/ftp/tevent/tevent-%{version}.tar.asc
146b3a
# gpg2 --no-default-keyring --keyring ./tevent.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025
146b3a
Source2: tevent.keyring
86c1f5
86c1f5
BuildRequires: gcc
86c1f5
BuildRequires: libtalloc-devel >= %{talloc_version}
146b3a
BuildRequires: libcmocka-devel >= 1.1.3
86c1f5
BuildRequires: doxygen
86c1f5
BuildRequires: docbook-style-xsl
86c1f5
BuildRequires: libxslt
146b3a
BuildRequires: gnupg2
86c1f5
86c1f5
Provides: bundled(libreplace)
86c1f5
86c1f5
BuildRequires: python3-devel
86c1f5
BuildRequires: python3-talloc-devel >= %{talloc_version}
86c1f5
86c1f5
Obsoletes: python2-tevent < %{version}-%{release}
86c1f5
Obsoletes: python2-tevent-debuginfo < %{version}-%{release}
86c1f5
86c1f5
# Patches
86c1f5
86c1f5
%description
86c1f5
Tevent is an event system based on the talloc memory management library.
86c1f5
Tevent has support for many event types, including timers, signals, and
86c1f5
the classic file descriptor events.
86c1f5
Tevent also provide helpers to deal with asynchronous code providing the
86c1f5
tevent_req (Tevent Request) functions.
86c1f5
86c1f5
%package devel
86c1f5
Summary: Developer tools for the Tevent library
86c1f5
Requires: libtevent%{?_isa} = %{version}-%{release}
86c1f5
Requires: libtalloc-devel%{?_isa} >= 2.0.7
86c1f5
Requires: pkgconfig
86c1f5
86c1f5
%description devel
86c1f5
Header files needed to develop programs that link against the Tevent library.
86c1f5
86c1f5
86c1f5
%package -n python3-tevent
86c1f5
Summary: Python 3 bindings for the Tevent library
86c1f5
Requires: libtevent%{?_isa} = %{version}-%{release}
86c1f5
86c1f5
%{?python_provide:%python_provide python3-tevent}
86c1f5
86c1f5
%description -n python3-tevent
86c1f5
Python 3 bindings for libtevent
86c1f5
86c1f5
%prep
86c1f5
# Update timestamps on the files touched by a patch, to avoid non-equal
86c1f5
# .pyc/.pyo files across the multilib peers within a build, where "Level"
86c1f5
# is the patch prefix option (e.g. -p1)
86c1f5
# Taken from specfile for python-simplejson
86c1f5
UpdateTimestamps() {
86c1f5
  Level=$1
86c1f5
  PatchFile=$2
86c1f5
86c1f5
  # Locate the affected files:
86c1f5
  for f in $(diffstat $Level -l $PatchFile); do
86c1f5
    # Set the files to have the same timestamp as that of the patch:
86c1f5
    touch -r $PatchFile $f
86c1f5
  done
86c1f5
}
86c1f5
146b3a
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
146b3a
%autosetup -n tevent-%{version} -p1
86c1f5
86c1f5
%build
86c1f5
%configure --disable-rpath \
86c1f5
           --bundled-libraries=NONE \
86c1f5
           --builtin-libraries=replace
86c1f5
86c1f5
make %{?_smp_mflags} V=1
86c1f5
86c1f5
doxygen doxy.config
86c1f5
86c1f5
%check
86c1f5
make %{?_smp_mflags} check
86c1f5
86c1f5
%install
86c1f5
make install DESTDIR=$RPM_BUILD_ROOT
86c1f5
86c1f5
# Install API docs
86c1f5
rm -f doc/man/man3/todo*
146b3a
install -d -m 0755 %{buildroot}%{_mandir}
146b3a
cp -a doc/man/* %{buildroot}%{_mandir}
86c1f5
86c1f5
%files
86c1f5
%{_libdir}/libtevent.so.*
86c1f5
86c1f5
%files devel
86c1f5
%{_includedir}/tevent.h
86c1f5
%{_libdir}/libtevent.so
86c1f5
%{_libdir}/pkgconfig/tevent.pc
86c1f5
%{_mandir}/man3/tevent*.gz
86c1f5
86c1f5
%ldconfig_scriptlets
86c1f5
86c1f5
%files -n python3-tevent
86c1f5
%{python3_sitearch}/tevent.py
86c1f5
%{python3_sitearch}/__pycache__/tevent.*
86c1f5
%{python3_sitearch}/_tevent.cpython*.so
86c1f5
86c1f5
%changelog
c9021c
* Mon May 02 2022 Pavel Filipenský <pfilipen@redhat.com> - 0.12.0-0
c9021c
- resolves: rhbz#2077485 - Update to version 0.12.0
c9021c
146b3a
* Fri Jul 09 2021 Andreas Schneider <asn@redhat.com> - 0.11.0-0
146b3a
- resolves: rhbz#1980346 - Update to version 0.11.0
146b3a
6347fb
* Tue Jun 2 2020 Isaac Boukris <iboukris@redhat.com> - 0.10.2-2
6347fb
- Resolves: #1817563 - Upgrade tevent to 0.10.2 version for samba
6347fb
d8809f
* Tue Nov 26 2019 Isaac Boukris <iboukris@redhat.com> - 0.10.0-2
d8809f
- Resolves: #1754421 - Upgrade tevent to 0.10.0 version for samba
d8809f
- Related: #1754421 - Fix sssd tests (tevent)
d8809f
86c1f5
* Tue Apr 30 2019 Jakub Hrozek <jhrozek@redhat.com>
86c1f5
- Remove the python2 subpackages on upgrade
86c1f5
- Resolves: #1567139 - libtevent: Drop Python 2 subpackage from RHEL 8
86c1f5
86c1f5
* Wed Apr 24 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.9.39-1
86c1f5
- Resolves: #1684580 - Rebase libtevent to version 0.9.36 for Samba
86c1f5
- Resolves: #1597318 - libtevent uses Python 2 to build
86c1f5
- Resolves: #1567139 - libtevent: Drop Python 2 subpackage from RHEL 8
86c1f5
86c1f5
* Thu Sep 20 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-2
86c1f5
- Resolves: #1624138 - Review annocheck distro flag failures in libtevent
86c1f5
86c1f5
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-1
86c1f5
- New upstream release 0.9.37
86c1f5
- Use RHEL_ALLOW_PYTHON2_FOR_BUILD=1 for build
86c1f5
- Use %%{__python2}, not "python", as the Python2 interpreter
86c1f5
86c1f5
* Mon Feb 26 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.36-1
86c1f5
- rhbz#1548613 New upstream release 0.9.36
86c1f5
86c1f5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.35-3
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
86c1f5
86c1f5
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.9.35-2
86c1f5
- Rebuilt for switch to libxcrypt
86c1f5
86c1f5
* Sat Jan 13 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.35-1
86c1f5
- rhbz#1534134 New upstream release 0.9.35
86c1f5
86c1f5
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.34-4
86c1f5
- Update Python 2 dependency declarations to new packaging standards
86c1f5
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
86c1f5
86c1f5
* Thu Nov 30 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.9.34-3
86c1f5
- Cleanup spec file conditionals
86c1f5
86c1f5
* Thu Nov 30 2017 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.34-2
86c1f5
- Update spec file conditionals
86c1f5
86c1f5
* Tue Nov 14 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.34-1
86c1f5
- New upstream release 0.9.34
86c1f5
86c1f5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-3
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
86c1f5
86c1f5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-2
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
86c1f5
86c1f5
* Mon Jul 24 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.33-1
86c1f5
- New upstream release 0.9.33
86c1f5
86c1f5
* Fri Jun 23 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.32-1
86c1f5
- New upstream release 0.9.32
86c1f5
86c1f5
* Fri Mar 10 2017 Lukas Slebodnik <lslebodn@redhat.org> - 0.9.31-4
86c1f5
- Fix configure detection with strict CFLAGS - rhbz#1401231
86c1f5
- Fix few fedora packaging violations - rhbz#1401226
86c1f5
86c1f5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.31-3
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
86c1f5
86c1f5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.31-2
86c1f5
- Rebuild for Python 3.6
86c1f5
86c1f5
* Fri Oct  7 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.31-1
86c1f5
- New upstream release 0.9.31
86c1f5
86c1f5
* Mon Aug 29 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.30-1
86c1f5
- New upstream release 0.9.30
86c1f5
86c1f5
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.29-1
86c1f5
- New upstream release 0.9.29
86c1f5
86c1f5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.28-3
86c1f5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
86c1f5
86c1f5
* Thu Apr 21 2016 Petr Viktorin <pviktori@redhat.com> - 0.9.28-2
86c1f5
- Build Python 3 package
86c1f5
- Resolves: rhbz#1298250 - libtevent: Provide a Python 3 subpackage
86c1f5
86c1f5
* Mon Feb 22 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.28-1
86c1f5
- New upstream release 0.9.28
86c1f5
86c1f5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.26-2
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
86c1f5
86c1f5
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.26-1
86c1f5
- New upstream release 0.9.26
86c1f5
86c1f5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.25-2
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
86c1f5
86c1f5
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.25-1
86c1f5
- New upstream release 0.9.25
86c1f5
86c1f5
* Thu Mar  5 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.24-1
86c1f5
- New upstream release 0.9.24
86c1f5
86c1f5
* Mon Mar  2 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.23-1
86c1f5
- New upstream release 0.9.23
86c1f5
86c1f5
* Thu Oct  9 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.22-1
86c1f5
- New upstream release 0.9.22
86c1f5
86c1f5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-3
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
86c1f5
86c1f5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-2
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
86c1f5
86c1f5
* Mon Jan 20 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-1
86c1f5
- New upstream release 0.9.21
86c1f5
86c1f5
* Sun Dec 15 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.20-1
86c1f5
- New upstream release 0.9.20
86c1f5
86c1f5
* Fri Aug 02 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.19-1
86c1f5
- New upstream release 0.9.19
86c1f5
- Drop upstreamed patch
86c1f5
86c1f5
* Mon Jul 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.18-3
86c1f5
- Make the dependency requirements arch-specific
86c1f5
- Remove ancient, unused patches
86c1f5
- Remove python variables that are not needed on modern systems
86c1f5
86c1f5
* Wed Jun 19 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-2
86c1f5
- Apply a patch from upstream to fix tevent_poll's additional_flags
86c1f5
  on 32bit architectures
86c1f5
- Resolves: rhbz#975490
86c1f5
86c1f5
* Mon Mar 18 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-1
86c1f5
- New upstream release 0.9.18
86c1f5
86c1f5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-4
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
86c1f5
86c1f5
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-3
86c1f5
- Dropping the workaround dropped even the doxygen command itself..
86c1f5
86c1f5
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-2
86c1f5
- Drop the workaround for building man pages, it has already been
86c1f5
  included upstream
86c1f5
86c1f5
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-1
86c1f5
- New upstream release 0.9.17
86c1f5
86c1f5
* Fri Aug 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.16-3
86c1f5
- Own the individual manual pages, not the top-level directory
86c1f5
86c1f5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-2
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
86c1f5
86c1f5
* Wed Jun 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.16-1
86c1f5
- New upstream release 0.9.16
86c1f5
- Adds tevent_*_trace_*() and tevent_context_init_ops()
86c1f5
- Move tevent.py to the arch-specific directory
86c1f5
86c1f5
* Fri Feb 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.15-1
86c1f5
- New upstream release 0.9.15
86c1f5
- Properly re-sets the nested.level flag in the ev.ctx when reinitializing
86c1f5
  after a fork()
86c1f5
- Allow tevent_signal events to be freed during their handler
86c1f5
86c1f5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-6
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
86c1f5
86c1f5
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
86c1f5
- Include missing patch file
86c1f5
86c1f5
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
86c1f5
- Build pytevent properly
86c1f5
86c1f5
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-3
86c1f5
- Add patch to ignore --disable-silent-rules
86c1f5
- Include API documentation
86c1f5
86c1f5
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-2
86c1f5
- Add explicit mention of the bundled libreplace
86c1f5
- https://fedorahosted.org/fpc/ticket/120
86c1f5
86c1f5
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-1
86c1f5
- New upstream release
86c1f5
- Required for building more recent versions of samba4
86c1f5
86c1f5
* Tue Aug  2 2011 Simo Sorce <ssorce@redhat.com> - 0.9.13-1
86c1f5
- New upstream release
86c1f5
86c1f5
* Tue Mar 15 2011 Simo Sorce <ssorce@redhat.com> - 0.9.11-1
86c1f5
- New upstream release
86c1f5
86c1f5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-4
86c1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
86c1f5
86c1f5
* Tue Jan 18 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-3
86c1f5
- Add missing Buildrequires for pytalloc-devel
86c1f5
86c1f5
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-2
86c1f5
- Let rpmbuild strip binaries, make build more verbose.
86c1f5
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
86c1f5
86c1f5
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-1
86c1f5
- New upstream release
86c1f5
- Convert to new WAF build-system
86c1f5
86c1f5
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
86c1f5
- Bump revision to chain-build libtevent, samba4 and sssd
86c1f5
86c1f5
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
86c1f5
- Drop ABI compatibility patch (no longer needed)
86c1f5
86c1f5
* Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
86c1f5
- Add patch to fix a segfault case
86c1f5
86c1f5
* Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
86c1f5
- Fix abi compatibility with 0.9.3
86c1f5
86c1f5
* Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
86c1f5
- First independent release for tevent 0.9.8