%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")} Name: libtevent Version: 0.9.15 Release: 1%{?dist} Group: System Environment/Daemons Summary: The tevent library License: LGPLv3+ URL: http://tevent.samba.org/ Source: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libtalloc-devel >= 2.0.7 BuildRequires: python-devel BuildRequires: pytalloc-devel >= 2.0.7 BuildRequires: doxygen Provides: bundled(libreplace) # Patches %description Tevent is an event system based on the talloc memory management library. Tevent has support for many event types, including timers, signals, and the classic file descriptor events. Tevent also provide helpers to deal with asynchronous code providing the tevent_req (Tevent Request) functions. %package devel Group: Development/Libraries Summary: Developer tools for the Tevent library Requires: libtevent = %{version}-%{release} Requires: libtalloc-devel >= 2.0.7 Requires: pkgconfig %description devel Header files needed to develop programs that link against the Tevent library. %package -n python-tevent Group: Development/Libraries Summary: Python bindings for the Tevent library Requires: libtevent = %{version}-%{release} %description -n python-tevent Python bindings for libtevent %prep # Update timestamps on the files touched by a patch, to avoid non-equal # .pyc/.pyo files across the multilib peers within a build, where "Level" # is the patch prefix option (e.g. -p1) # Taken from specfile for python-simplejson UpdateTimestamps() { Level=$1 PatchFile=$2 # Locate the affected files: for f in $(diffstat $Level -l $PatchFile); do # Set the files to have the same timestamp as that of the patch: touch -r $PatchFile $f done } %setup -q -n tevent-%{version} %build %configure --disable-rpath \ --bundled-libraries=NONE \ --builtin-libraries=replace make %{?_smp_mflags} V=1 doxygen doxy.config %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Shared libraries need to be marked executable for # rpmbuild to strip them and include them in debuginfo find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a # Install API docs rm -f doc/man/man3/todo* mkdir -p $RPM_BUILD_ROOT/%{_mandir} cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/libtevent.so.* %files devel %defattr(-,root,root,-) %{_includedir}/tevent.h %{_libdir}/libtevent.so %{_libdir}/pkgconfig/tevent.pc %{_mandir}/man3/ %files -n python-tevent %defattr(-,root,root,-) %{python_sitelib}/tevent.py* %{python_sitearch}/_tevent.so %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Fri Feb 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.15-1 - New upstream release 0.9.15 - Properly re-sets the nested.level flag in the ev.ctx when reinitializing after a fork() - Allow tevent_signal events to be freed during their handler * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4 - Include missing patch file * Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4 - Build pytevent properly * Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-3 - Add patch to ignore --disable-silent-rules - Include API documentation * Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-2 - Add explicit mention of the bundled libreplace - https://fedorahosted.org/fpc/ticket/120 * Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-1 - New upstream release - Required for building more recent versions of samba4 * Tue Aug 2 2011 Simo Sorce <ssorce@redhat.com> - 0.9.13-1 - New upstream release (Needed to build samba4 alpha 16 packages) * Tue Mar 15 2011 Simo Sorce <ssorce@redhat.com> - 0.9.11-1 - New upstream release * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 18 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-3 - Add missing Buildrequires for pytalloc-devel * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-2 - Let rpmbuild strip binaries, make build more verbose. - Original patch by Ville Skyttä <ville.skytta@iki.fi> * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-1 - New upstream release - Convert to new WAF build-system * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1 - Bump revision to chain-build libtevent, samba4 and sssd * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7 - Drop ABI compatibility patch (no longer needed) * Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5 - Add patch to fix a segfault case * Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2 - Fix abi compatibility with 0.9.3 * Sat Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1 - First independent release for tevent 0.9.8