Accepting request 340831 from home:lmuelle:pyton3-samba
Add python3-talloc and python3-talloc-devel; (bsc#951911). OBS-URL: https://build.opensuse.org/request/show/340831 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/talloc?expand=0&rev=55
This commit is contained in:
parent
d69b7ef846
commit
cc9925683d
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 24 21:19:20 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Add python3-talloc and python3-talloc-devel; (bsc#951911).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 22 20:41:47 UTC 2015 - lmuelle@suse.com
|
Thu Oct 22 20:41:47 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
60
talloc.spec
60
talloc.spec
@ -17,6 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?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} > 19
|
||||||
|
%define with_python3 1
|
||||||
|
%else
|
||||||
|
%define with_python3 0
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: talloc
|
Name: talloc
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
||||||
@ -33,6 +39,9 @@ BuildRequires: pkg-config
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
%if %{with_python3}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} > 1100
|
%if 0%{?suse_version} > 1100
|
||||||
#!BuildIgnore: python
|
#!BuildIgnore: python
|
||||||
%endif
|
%endif
|
||||||
@ -113,11 +122,38 @@ Requires: pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
Provides: pytalloc-devel = %{version}
|
Provides: pytalloc-devel = %{version}
|
||||||
Obsoletes: pytalloc-devel < %{version}
|
Obsoletes: pytalloc-devel < %{version}
|
||||||
|
Conflicts: python3-talloc-devel
|
||||||
|
|
||||||
%description -n python-talloc-devel
|
%description -n python-talloc-devel
|
||||||
Libraries and Header Files to Develop Programs with pytalloc Support
|
Libraries and Header Files to Develop Programs with python-talloc Support
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%package -n python3-talloc
|
||||||
|
Summary: Python bindings for the Talloc library
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: %{libtalloc_name} = %{version}
|
||||||
|
PreReq: /sbin/ldconfig
|
||||||
|
|
||||||
|
%description -n python3-talloc
|
||||||
|
This package contains the python3 bindings for the Talloc library.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-talloc-devel
|
||||||
|
Summary: Developer tools for the Talloc library
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: python3-talloc = %{version}
|
||||||
|
%if 0%{?suse_version} > 1020
|
||||||
|
Requires: pkg-config
|
||||||
|
%else
|
||||||
|
Requires: pkgconfig
|
||||||
|
%endif
|
||||||
|
Conflicts: python-talloc-devel
|
||||||
|
|
||||||
|
%description -n python3-talloc-devel
|
||||||
|
Libraries and Header Files to Develop Programs with python3-talloc Support
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n talloc-%{version} -q
|
%setup -n talloc-%{version} -q
|
||||||
|
|
||||||
@ -135,6 +171,9 @@ CONFIGURE_OPTIONS="\
|
|||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--bundled-libraries=NONE \
|
--bundled-libraries=NONE \
|
||||||
--builtin-libraries=replace \
|
--builtin-libraries=replace \
|
||||||
|
%if %{with_python3}
|
||||||
|
--extra-python=/usr/bin/python3 \
|
||||||
|
%endif
|
||||||
"
|
"
|
||||||
./configure ${CONFIGURE_OPTIONS}
|
./configure ${CONFIGURE_OPTIONS}
|
||||||
%{__make} %{build_make_smp_mflags} \
|
%{__make} %{build_make_smp_mflags} \
|
||||||
@ -155,6 +194,12 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
|||||||
|
|
||||||
%postun -n python-talloc -p /sbin/ldconfig
|
%postun -n python-talloc -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%post -n python3-talloc -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n python3-talloc -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{libtalloc_name}
|
%files -n %{libtalloc_name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libtalloc.so.*
|
%{_libdir}/libtalloc.so.*
|
||||||
@ -179,4 +224,17 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
|||||||
%{_libdir}/pkgconfig/pytalloc-util.pc
|
%{_libdir}/pkgconfig/pytalloc-util.pc
|
||||||
%{_libdir}/libpytalloc-util.so
|
%{_libdir}/libpytalloc-util.so
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%files -n python3-talloc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libpytalloc-util.%{py3_soflags}.so.*
|
||||||
|
%{python3_sitearch}/talloc.%{py3_soflags}.so
|
||||||
|
|
||||||
|
%files -n python3-talloc-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/pytalloc.h
|
||||||
|
%{_libdir}/pkgconfig/pytalloc-util.pc
|
||||||
|
%{_libdir}/libpytalloc-util.%{py3_soflags}.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user