bec974
Name: libtevent
bec974
Version: 0.9.39
bec974
Release: 1%{?dist}
bec974
Group: System Environment/Daemons
bec974
Summary: The tevent library
bec974
License: LGPLv3+
bec974
URL: http://tevent.samba.org/
bec974
Source: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
bec974
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
bec974
bec974
BuildRequires: libtalloc-devel >= 2.1.1
bec974
BuildRequires: python-devel
bec974
BuildRequires: pytalloc-devel >= 2.1.1
bec974
BuildRequires: doxygen
bec974
BuildRequires: docbook-style-xsl
bec974
BuildRequires: libxslt
bec974
bec974
Provides: bundled(libreplace)
bec974
bec974
# Patches
bec974
bec974
%description
bec974
Tevent is an event system based on the talloc memory management library.
bec974
Tevent has support for many event types, including timers, signals, and
bec974
the classic file descriptor events.
bec974
Tevent also provide helpers to deal with asynchronous code providing the
bec974
tevent_req (Tevent Request) functions.
bec974
bec974
%package devel
bec974
Group: Development/Libraries
bec974
Summary: Developer tools for the Tevent library
bec974
Requires: libtevent%{?_isa} = %{version}-%{release}
bec974
Requires: libtalloc-devel%{?_isa} >= 2.0.7
bec974
Requires: pkgconfig
bec974
bec974
%description devel
bec974
Header files needed to develop programs that link against the Tevent library.
bec974
bec974
bec974
%package -n python-tevent
bec974
Group: Development/Libraries
bec974
Summary: Python bindings for the Tevent library
bec974
Requires: libtevent%{?_isa} = %{version}-%{release}
bec974
bec974
%description -n python-tevent
bec974
Python bindings for libtevent
bec974
bec974
%prep
bec974
# Update timestamps on the files touched by a patch, to avoid non-equal
bec974
# .pyc/.pyo files across the multilib peers within a build, where "Level"
bec974
# is the patch prefix option (e.g. -p1)
bec974
# Taken from specfile for python-simplejson
bec974
UpdateTimestamps() {
bec974
  Level=$1
bec974
  PatchFile=$2
bec974
bec974
  # Locate the affected files:
bec974
  for f in $(diffstat $Level -l $PatchFile); do
bec974
    # Set the files to have the same timestamp as that of the patch:
bec974
    touch -r $PatchFile $f
bec974
  done
bec974
}
bec974
bec974
%setup -q -n tevent-%{version}
bec974
bec974
for p in %patches ; do
bec974
    %__patch -p3 -i $p
bec974
    UpdateTimestamps -p3 $p
bec974
done 
bec974
bec974
%build
bec974
export PYTHON=/usr/bin/python2
bec974
%configure --disable-rpath \
bec974
           --bundled-libraries=NONE \
bec974
           --builtin-libraries=replace
bec974
bec974
make %{?_smp_mflags} V=1
bec974
bec974
doxygen doxy.config
bec974
bec974
%install
bec974
rm -rf $RPM_BUILD_ROOT
bec974
bec974
export PYTHON=/usr/bin/python2
bec974
make install DESTDIR=$RPM_BUILD_ROOT
bec974
bec974
# Shared libraries need to be marked executable for
bec974
# rpmbuild to strip them and include them in debuginfo
bec974
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
bec974
bec974
rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a
bec974
bec974
# Install API docs
bec974
rm -f doc/man/man3/todo*
bec974
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
bec974
cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
bec974
bec974
%clean
bec974
rm -rf $RPM_BUILD_ROOT
bec974
bec974
%files
bec974
%defattr(-,root,root,-)
bec974
%{_libdir}/libtevent.so.*
bec974
bec974
%files devel
bec974
%defattr(-,root,root,-)
bec974
%{_includedir}/tevent.h
bec974
%{_libdir}/libtevent.so
bec974
%{_libdir}/pkgconfig/tevent.pc
bec974
%{_mandir}/man3/tevent*.gz
bec974
bec974
%files -n python-tevent
bec974
%defattr(-,root,root,-)
bec974
%{python_sitearch}/tevent.py*
bec974
%{python_sitearch}/_tevent.so
bec974
bec974
%post -p /sbin/ldconfig
bec974
bec974
%postun -p /sbin/ldconfig
bec974
bec974
%changelog
bec974
* Fri Aug  2 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.9.39-1
bec974
- Resolves: #1736006 - Rebase libtevent to version 0.9.39 for Samba
bec974
bec974
* Wed Jan 16 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-1
bec974
- Resolves: #1658748 - Rebase libtevent to version 0.9.37 for Samba
bec974
bec974
* Tue Apr 10 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.36
bec974
- Resolves: #1558494 - Rebase tevent to the latest available upstream release
bec974
bec974
* Thu Nov 16 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.9.34-1
bec974
- Resolves: #1512414 - tevent can cause a Samba file corruption bug under
bec974
                       heavy threaded load
bec974
bec974
* Sun Oct 15 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.9.33-1
bec974
- Resolves: #1470054 - Rebase libtevent to enable samba rebase to version
bec974
                       4.7.x
bec974
bec974
* Tue Feb 14 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.9.31-1
bec974
- Resolves: #1393812 - Rebase libtevent in RHEL-7.4 to version 4.6.x
bec974
bec974
* Thu Jun  9 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.28-1
bec974
- Resolves: #1320247 - Rebase libtevent to version 0.9.28
bec974
bec974
* Mon Apr  4 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.26-2
bec974
- Resolves: #1309439 - libtevent leaks memory during signal handling
bec974
bec974
* Fri Apr  1 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.26-1
bec974
- Rebase libtevent to 0.9.26
bec974
- Related: rhbz#1322691
bec974
bec974
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.25-1
bec974
- Resolves: rhbz#1226049 - Rebase libtevent to at least 0.9.22 in RHEL-7.2
bec974
bec974
* Wed Jun  3 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.24-1
bec974
- Resolves: rhbz#1226049 - Rebase libtevent to at least 0.9.22 in RHEL-7.2
bec974
bec974
* Mon Nov 24 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-3
bec974
- BuildRequire the minimal applicable libtalloc version
bec974
- Resolves: rhbz#1133919 - Rebase libtevent to version 0.9.21 or newer
bec974
bec974
* Mon Nov 24 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-2
bec974
- Allow building with RHEL-7.0 libtalloc
bec974
- Resolves: rhbz#1133919 - Rebase libtevent to version 0.9.21 or newer
bec974
bec974
* Thu Sep 04 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-1
bec974
- Resolves: rhbz#1133919 - Rebase libtevent to version 0.9.21 or newer
bec974
- removes upstreamed patches
bec974
bec974
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.18-6
bec974
- Mass rebuild 2014-01-24
bec974
bec974
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.18-5
bec974
- Mass rebuild 2013-12-27
bec974
bec974
* Thu Aug 08 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-4
bec974
- Resolves: rhbz#994015 - tevent_loop_wait() never finishes
bec974
bec974
* Mon Jul 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.18-3
bec974
- Make the dependency requirements arch-specific
bec974
- Remove ancient, unused patches
bec974
- Remove python variables that are not needed on modern systems
bec974
bec974
* Wed Jun 19 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-2
bec974
- Apply a patch from upstream to fix tevent_poll's additional_flags
bec974
  on 32bit architectures
bec974
- Resolves: rhbz#975490
bec974
bec974
* Mon Mar 18 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-1
bec974
- New upstream release 0.9.18
bec974
bec974
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-4
bec974
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bec974
bec974
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-3
bec974
- Dropping the workaround dropped even the doxygen command itself..
bec974
bec974
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-2
bec974
- Drop the workaround for building man pages, it has already been
bec974
  included upstream
bec974
bec974
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-1
bec974
- New upstream release 0.9.17
bec974
bec974
* Fri Aug 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.16-3
bec974
- Own the individual manual pages, not the top-level directory
bec974
bec974
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-2
bec974
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bec974
bec974
* Wed Jun 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.16-1
bec974
- New upstream release 0.9.16
bec974
- Adds tevent_*_trace_*() and tevent_context_init_ops()
bec974
- Move tevent.py to the arch-specific directory
bec974
bec974
* Fri Feb 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.15-1
bec974
- New upstream release 0.9.15
bec974
- Properly re-sets the nested.level flag in the ev.ctx when reinitializing
bec974
  after a fork()
bec974
- Allow tevent_signal events to be freed during their handler
bec974
bec974
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-6
bec974
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bec974
bec974
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
bec974
- Include missing patch file
bec974
bec974
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
bec974
- Build pytevent properly
bec974
bec974
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-3
bec974
- Add patch to ignore --disable-silent-rules
bec974
- Include API documentation
bec974
bec974
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-2
bec974
- Add explicit mention of the bundled libreplace
bec974
- https://fedorahosted.org/fpc/ticket/120
bec974
bec974
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-1
bec974
- New upstream release
bec974
- Required for building more recent versions of samba4
bec974
bec974
* Tue Aug  2 2011 Simo Sorce <ssorce@redhat.com> - 0.9.13-1
bec974
- New upstream release
bec974
bec974
* Tue Mar 15 2011 Simo Sorce <ssorce@redhat.com> - 0.9.11-1
bec974
- New upstream release
bec974
bec974
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-4
bec974
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bec974
bec974
* Tue Jan 18 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-3
bec974
- Add missing Buildrequires for pytalloc-devel
bec974
bec974
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-2
bec974
- Let rpmbuild strip binaries, make build more verbose.
bec974
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
bec974
bec974
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-1
bec974
- New upstream release
bec974
- Convert to new WAF build-system
bec974
bec974
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
bec974
- Bump revision to chain-build libtevent, samba4 and sssd
bec974
bec974
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
bec974
- Drop ABI compatibility patch (no longer needed)
bec974
bec974
* Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
bec974
- Add patch to fix a segfault case
bec974
bec974
* Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
bec974
- Fix abi compatibility with 0.9.3
bec974
bec974
* Sat Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
bec974
- First independent release for tevent 0.9.8