Jakub Hrozek 0c86b38
%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Jakub Hrozek 0c86b38
97f67a3
%if 0%{?fedora} || 0%{?rhel} > 7
Jakub Hrozek 0c86b38
%global with_python3 1
Jakub Hrozek 0c86b38
%else
Jakub Hrozek 0c86b38
%global with_python3 0
Jakub Hrozek 0c86b38
%endif
Jakub Hrozek 0c86b38
ac75306
Name: libtevent
Jakub Hrozek d7f5d97
Version: 0.9.37
Jakub Hrozek e86a2a0
Release: 2%{?dist}
ac75306
Summary: The tevent library
ac75306
License: LGPLv3+
ac75306
URL: http://tevent.samba.org/
ac75306
Source: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
ac75306
fa14ead
BuildRequires: gcc
fa14ead
%if (0%{?fedora} >= 28 || 0%{?rhel} > 7)
fa14ead
# workaround for unnecessary check in libreplace
fa14ead
BuildRequires: libtirpc-devel
fa14ead
%endif
acae910
BuildRequires: libtalloc-devel >= 2.1.0
abb4511
BuildRequires: python2-devel
acae910
BuildRequires: python2-talloc-devel >= 2.1.0
b67314a
BuildRequires: doxygen
3fdb536
BuildRequires: docbook-style-xsl
3fdb536
BuildRequires: libxslt
7bf54be
d67c329
Provides: bundled(libreplace)
d67c329
Jakub Hrozek 0c86b38
%if 0%{?with_python3}
Jakub Hrozek 0c86b38
BuildRequires: python3-devel
Jakub Hrozek 0c86b38
BuildRequires: python3-talloc-devel >= 2.0.7
Jakub Hrozek 0c86b38
%endif
Jakub Hrozek 0c86b38
ac75306
%description
ac75306
Tevent is an event system based on the talloc memory management library.
ac75306
Tevent has support for many event types, including timers, signals, and
ac75306
the classic file descriptor events.
ac75306
Tevent also provide helpers to deal with asynchronous code providing the
d88216d
tevent_req (Tevent Request) functions.
ac75306
ac75306
%package devel
ac75306
Summary: Developer tools for the Tevent library
7d6ae1c
Requires: libtevent%{?_isa} = %{version}-%{release}
7d6ae1c
Requires: libtalloc-devel%{?_isa} >= 2.0.7
ac75306
Requires: pkgconfig
ac75306
ac75306
%description devel
ac75306
Header files needed to develop programs that link against the Tevent library.
ac75306
d88216d
Jakub Hrozek 0c86b38
%package -n python2-tevent
d88216d
Summary: Python bindings for the Tevent library
7d6ae1c
Requires: libtevent%{?_isa} = %{version}-%{release}
d88216d
Jakub Hrozek 0c86b38
%{?python_provide:%python_provide python2-tevent}
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%description -n python2-tevent
d88216d
Python bindings for libtevent
d88216d
adeae03
%if 0%{?with_python3}
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%package -n python3-tevent
Jakub Hrozek 0c86b38
Summary: Python 3 bindings for the Tevent library
Jakub Hrozek 0c86b38
Requires: libtevent%{?_isa} = %{version}-%{release}
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%{?python_provide:%python_provide python3-tevent}
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%description -n python3-tevent
Jakub Hrozek 0c86b38
Python 3 bindings for libtevent
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%endif
Jakub Hrozek 0c86b38
ac75306
%prep
5871d0d
# Update timestamps on the files touched by a patch, to avoid non-equal
5871d0d
# .pyc/.pyo files across the multilib peers within a build, where "Level"
5871d0d
# is the patch prefix option (e.g. -p1)
5871d0d
# Taken from specfile for python-simplejson
5871d0d
UpdateTimestamps() {
5871d0d
  Level=$1
5871d0d
  PatchFile=$2
5871d0d
5871d0d
  # Locate the affected files:
5871d0d
  for f in $(diffstat $Level -l $PatchFile); do
5871d0d
    # Set the files to have the same timestamp as that of the patch:
5871d0d
    touch -r $PatchFile $f
5871d0d
  done
5871d0d
}
5871d0d
Jakub Hrozek d7f5d97
%autosetup -n tevent-%{version} -p1
ad74ae0
ac75306
%build
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%if 0%{?with_python3}
Jakub Hrozek 0c86b38
export PY3_CONFIG_FLAGS=--extra-python=%{__python3}
Jakub Hrozek 0c86b38
%else
Jakub Hrozek 0c86b38
export PY3_CONFIG_FLAGS=
Jakub Hrozek 0c86b38
%endif
Jakub Hrozek 0c86b38
Jakub Hrozek e86a2a0
pathfix.py -n -p -i %{__python2} buildtools/bin/waf
Jakub Hrozek e86a2a0
d67c329
%configure --disable-rpath \
d67c329
           --bundled-libraries=NONE \
Jakub Hrozek 0c86b38
           --builtin-libraries=replace \
Jakub Hrozek 0c86b38
           $PY3_CONFIG_FLAGS
5871d0d
55727dc
make %{?_smp_mflags} V=1
3fdb536
9bc8d58
doxygen doxy.config
9bc8d58
609d440
%check
609d440
make %{?_smp_mflags} check
609d440
ac75306
%install
ac75306
ac75306
make install DESTDIR=$RPM_BUILD_ROOT
ac75306
55727dc
# Shared libraries need to be marked executable for
55727dc
# rpmbuild to strip them and include them in debuginfo
55727dc
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
55727dc
ac75306
rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a
ac75306
b67314a
# Install API docs
b67314a
rm -f doc/man/man3/todo*
b67314a
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
b67314a
cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
b67314a
ac75306
%files
ac75306
%{_libdir}/libtevent.so.*
ac75306
ac75306
%files devel
ac75306
%{_includedir}/tevent.h
ac75306
%{_libdir}/libtevent.so
ac75306
%{_libdir}/pkgconfig/tevent.pc
3fdb536
%{_mandir}/man3/tevent*.gz
ac75306
Jakub Hrozek 0c86b38
%files -n python2-tevent
Jakub Hrozek 0c86b38
%{python2_sitearch}/tevent.py*
Jakub Hrozek 0c86b38
%{python2_sitearch}/_tevent.so
d88216d
ebbd45f
%ldconfig_scriptlets
ac75306
Jakub Hrozek 0c86b38
%if 0%{?with_python3}
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%files -n python3-tevent
Jakub Hrozek 0c86b38
%{python3_sitearch}/tevent.py
Jakub Hrozek 0c86b38
%{python3_sitearch}/__pycache__/tevent.*
Jakub Hrozek 0c86b38
%{python3_sitearch}/_tevent.cpython*.so
Jakub Hrozek 0c86b38
Jakub Hrozek 0c86b38
%endif
Jakub Hrozek 0c86b38
ac75306
%changelog
Jakub Hrozek e86a2a0
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-2
Jakub Hrozek e86a2a0
- Drop the unneeded ABI hide patch
Jakub Hrozek e86a2a0
Jakub Hrozek d7f5d97
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-1
Jakub Hrozek d7f5d97
- New upstream release 0.9.37
Jakub Hrozek d7f5d97
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
Jakub Hrozek d7f5d97
- Patch the waf script to explicitly call python2 as "env python" doesn't
Jakub Hrozek d7f5d97
  yield py2 anymore
Jakub Hrozek d7f5d97
e17f54a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.36-3
e17f54a
- Rebuilt for Python 3.7
e17f54a
6dbff87
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.36-2
6dbff87
- Rebuilt for Python 3.7
6dbff87
71e02bb
* Mon Feb 26 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.36-1
71e02bb
- rhbz#1548613 New upstream release 0.9.36
71e02bb
3fd9be5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.35-3
3fd9be5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3fd9be5
1f17686
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.9.35-2
1f17686
- Rebuilt for switch to libxcrypt
1f17686
263b85f
* Sat Jan 13 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.35-1
263b85f
- rhbz#1534134 New upstream release 0.9.35
263b85f
abb4511
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.34-4
abb4511
- Update Python 2 dependency declarations to new packaging standards
abb4511
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
abb4511
adeae03
* Thu Nov 30 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.9.34-3
adeae03
- Cleanup spec file conditionals
adeae03
97f67a3
* Thu Nov 30 2017 Lukas Slebodnik <lslebodn@fedoraproject.org> - 0.9.34-2
97f67a3
- Update spec file conditionals
97f67a3
c71288d
* Tue Nov 14 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.34-1
c71288d
- New upstream release 0.9.34
c71288d
b0f1467
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-3
b0f1467
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b0f1467
ba9c4f2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.33-2
ba9c4f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ba9c4f2
600d212
* Mon Jul 24 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.33-1
600d212
- New upstream release 0.9.33
600d212
20f8727
* Fri Jun 23 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.9.32-1
20f8727
- New upstream release 0.9.32
20f8727
ad74ae0
* Fri Mar 10 2017 Lukas Slebodnik <lslebodn@redhat.org> - 0.9.31-4
ad74ae0
- Fix configure detection with strict CFLAGS - rhbz#1401231
ad74ae0
- Fix few fedora packaging violations - rhbz#1401226
ad74ae0
affb899
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.31-3
affb899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
affb899
300d004
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.31-2
300d004
- Rebuild for Python 3.6
300d004
Jakub Hrozek 8d7ad66
* Fri Oct  7 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.31-1
Jakub Hrozek 8d7ad66
- New upstream release 0.9.31
Jakub Hrozek 8d7ad66
Jakub Hrozek 818fabb
* Mon Aug 29 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.30-1
Jakub Hrozek 818fabb
- New upstream release 0.9.30
Jakub Hrozek 818fabb
Jakub Hrozek 4e9a3c8
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.29-1
Jakub Hrozek 4e9a3c8
- New upstream release 0.9.29
Jakub Hrozek 4e9a3c8
d6b4c6b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.28-3
d6b4c6b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d6b4c6b
Jakub Hrozek 0c86b38
* Thu Apr 21 2016 Petr Viktorin <pviktori@redhat.com> - 0.9.28-2
Jakub Hrozek 0c86b38
- Build Python 3 package
Jakub Hrozek 0c86b38
- Resolves: rhbz#1298250 - libtevent: Provide a Python 3 subpackage
Jakub Hrozek 0c86b38
Jakub Hrozek 1c34f1e
* Mon Feb 22 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.9.28-1
Jakub Hrozek 1c34f1e
- New upstream release 0.9.28
Jakub Hrozek 1c34f1e
7802d69
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.26-2
7802d69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7802d69
5d2791f
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.26-1
5d2791f
- New upstream release 0.9.26
5d2791f
7ea8420
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.25-2
7ea8420
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7ea8420
ce0043f
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.25-1
ce0043f
- New upstream release 0.9.25
ce0043f
9dbd48d
* Thu Mar  5 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.24-1
9dbd48d
- New upstream release 0.9.24
9dbd48d
672376f
* Mon Mar  2 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.9.23-1
672376f
- New upstream release 0.9.23
672376f
aee6718
* Thu Oct  9 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.22-1
aee6718
- New upstream release 0.9.22
aee6718
b218369
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-3
b218369
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b218369
e70c4b0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-2
e70c4b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e70c4b0
f2c9644
* Mon Jan 20 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.9.21-1
f2c9644
- New upstream release 0.9.21
f2c9644
a77947d
* Sun Dec 15 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.20-1
a77947d
- New upstream release 0.9.20
a77947d
7930335
* Fri Aug 02 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.19-1
7930335
- New upstream release 0.9.19
7930335
- Drop upstreamed patch
7930335
7d6ae1c
* Mon Jul 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.18-3
7d6ae1c
- Make the dependency requirements arch-specific
7d6ae1c
- Remove ancient, unused patches
7d6ae1c
- Remove python variables that are not needed on modern systems
7d6ae1c
fe39129
* Wed Jun 19 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-2
fe39129
- Apply a patch from upstream to fix tevent_poll's additional_flags
fe39129
  on 32bit architectures
fe39129
- Resolves: rhbz#975490
fe39129
422aca7
* Mon Mar 18 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.9.18-1
422aca7
- New upstream release 0.9.18
422aca7
7342d74
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-4
7342d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7342d74
9bc8d58
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-3
9bc8d58
- Dropping the workaround dropped even the doxygen command itself..
9bc8d58
2146cf6
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-2
2146cf6
- Drop the workaround for building man pages, it has already been
2146cf6
  included upstream
2146cf6
66a41e1
* Mon Aug 20 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.17-1
66a41e1
- New upstream release 0.9.17
66a41e1
3fdb536
* Fri Aug 03 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.9.16-3
3fdb536
- Own the individual manual pages, not the top-level directory
3fdb536
25ce914
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-2
25ce914
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
25ce914
5113db0
* Wed Jun 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.16-1
5113db0
- New upstream release 0.9.16
5113db0
- Adds tevent_*_trace_*() and tevent_context_init_ops()
5113db0
- Move tevent.py to the arch-specific directory
5113db0
c5792b2
* Fri Feb 10 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.15-1
c5792b2
- New upstream release 0.9.15
c5792b2
- Properly re-sets the nested.level flag in the ev.ctx when reinitializing
c5792b2
  after a fork()
c5792b2
- Allow tevent_signal events to be freed during their handler
c5792b2
6a1d370
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-6
6a1d370
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6a1d370
5871d0d
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
483d6d2
- Include missing patch file
483d6d2
483d6d2
* Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-4
5871d0d
- Build pytevent properly
5871d0d
b67314a
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-3
b67314a
- Add patch to ignore --disable-silent-rules
b67314a
- Include API documentation
b67314a
d67c329
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-2
d67c329
- Add explicit mention of the bundled libreplace
d67c329
- https://fedorahosted.org/fpc/ticket/120
d67c329
41bfc1f
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.14-1
41bfc1f
- New upstream release
41bfc1f
- Required for building more recent versions of samba4
41bfc1f
03ed2da
* Tue Aug  2 2011 Simo Sorce <ssorce@redhat.com> - 0.9.13-1
03ed2da
- New upstream release
03ed2da
3282664
* Tue Mar 15 2011 Simo Sorce <ssorce@redhat.com> - 0.9.11-1
3282664
- New upstream release
3282664
c9f70fd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-4
c9f70fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c9f70fd
0e57bb5
* Tue Jan 18 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-3
0e57bb5
- Add missing Buildrequires for pytalloc-devel
0e57bb5
55727dc
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-2
55727dc
- Let rpmbuild strip binaries, make build more verbose.
55727dc
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
55727dc
d88216d
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.10-1
d88216d
- New upstream release
d88216d
- Convert to new WAF build-system
d88216d
57cd478
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
57cd478
- Bump revision to chain-build libtevent, samba4 and sssd
57cd478
00909b2
* Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
310d47c
- Drop ABI compatibility patch (no longer needed)
310d47c
02ce940
* Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
d63a939
- Add patch to fix a segfault case
d63a939
7bf54be
* Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
7bf54be
- Fix abi compatibility with 0.9.3
7bf54be
cca3806
* Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
d88216d
- First independent release for tevent 0.9.8