Blame SPECS/libtevent.spec

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