Blame SPECS/libtevent.spec

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