Add python3-tevent; (bsc#951911).

... to tevent-man too by calling pre_checkin.sh

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tevent?expand=0&rev=61
This commit is contained in:
Lars Müller 2015-10-25 18:01:12 +00:00 committed by Git OBS Bridge
parent d99073906d
commit 1dd3a1a014
2 changed files with 46 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 25 13:48:42 UTC 2015 - lmuelle@suse.com
- Add python3-tevent; (bsc#951911).
-------------------------------------------------------------------
Thu Oct 22 21:03:11 UTC 2015 - lmuelle@suse.com

View File

@ -17,6 +17,12 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?py3_soflags: %global py3_soflags cpython-%{python3_version_nodots}m}
%if 0%{?suse_version} > 1310 || 0%{?fedora_version} > 20
%define with_python3 1
%else
%define with_python3 0
%endif
%define talloc_version 2.1.4
%define build_man 1
@ -34,6 +40,9 @@ BuildRequires: pkg-config
BuildRequires: pkgconfig
%endif
BuildRequires: python-devel
%if %{with_python3}
BuildRequires: python3-devel
%endif
BuildRequires: python-talloc-devel >= %{talloc_version}
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
@ -118,6 +127,18 @@ PreReq: /sbin/ldconfig
%description -n python-tevent
This package contains the python bindings for the Tevent library.
%if %{with_python3}
%package -n python3-tevent
Summary: Python3 bindings for the Tevent library
Group: Development/Libraries/Python
Requires: %{libtevent_name} = %{version}
PreReq: /sbin/ldconfig
%description -n python3-tevent
This package contains the python bindings for the Tevent library.
%endif
%endif
%prep
@ -138,6 +159,9 @@ CONFIGURE_OPTIONS="\
--disable-rpath \
--bundled-libraries=NONE \
--builtin-libraries=replace \
%if %{with_python3}
--extra-python=/usr/bin/python3 \
%endif
"
./configure ${CONFIGURE_OPTIONS}
%{__make} %{build_make_smp_mflags} \
@ -179,6 +203,12 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man3/todo.3
%postun -n python-tevent -p /sbin/ldconfig
%if %{with_python3}
%post -n python3-tevent -p /sbin/ldconfig
%postun -n python3-tevent -p /sbin/ldconfig
%endif
%files -n %{libtevent_name}
%defattr(-,root,root)
%{_libdir}/libtevent.so.*
@ -191,12 +221,20 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man3/todo.3
%files -n python-tevent
%defattr(-,root,root)
%attr(0755,root,root)
%{python_sitearch}/tevent.py
%{python_sitearch}/_tevent.so
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599
%{python_sitearch}/tevent.pyc
%{python_sitearch}/tevent.pyo
%{python_sitearch}/tevent.py[co]
%endif
%if %{with_python3}
%files -n python3-tevent
%defattr(-,root,root)
%{python3_sitearch}/_tevent.%{py3_soflags}.so
%{python3_sitearch}/tevent.py
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599
%{python3_sitearch}/__pycache__/tevent.cpython-*.py[co]
%endif
%endif
%else