diff --git a/libtalloc.spec b/libtalloc.spec index 390976a..2809aca 100644 --- a/libtalloc.spec +++ b/libtalloc.spec @@ -36,33 +36,36 @@ Requires: libtalloc = %{version}-%{release} %description devel Header files needed to develop programs that link against the Talloc library. -%package -n python-talloc +%package -n python2-talloc Group: Development/Libraries Summary: Python bindings for the Talloc library Requires: libtalloc = %{version}-%{release} Provides: pytalloc%{?_isa} = %{version}-%{release} Provides: pytalloc = %{version}-%{release} Obsoletes: pytalloc < 2.1.3 +%{?python_provide:%python_provide python2-talloc} -%description -n python-talloc -Python libraries for creating bindings using talloc +%description -n python2-talloc +Python 2 libraries for creating bindings using talloc -%package -n python-talloc-devel +%package -n python2-talloc-devel Group: Development/Libraries -Summary: Development libraries for python-talloc -Requires: python-talloc = %{version}-%{release} +Summary: Development libraries for python2-talloc +Requires: python2-talloc = %{version}-%{release} Provides: pytalloc-devel%{?_isa} = %{version}-%{release} Provides: pytalloc-devel = %{version}-%{release} Obsoletes: pytalloc-devel < 2.1.3 +%{?python_provide:%python_provide python2-talloc-devel} -%description -n python-talloc-devel -Development libraries for python-talloc +%description -n python2-talloc-devel +Development libraries for python2-talloc %if 0%{?with_python3} %package -n python3-talloc Group: Development/Libraries Summary: Python bindings for the Talloc library Requires: libtalloc = %{version}-%{release} +%{?python_provide:%python_provide python3-talloc} %description -n python3-talloc Python 3 libraries for creating bindings using talloc @@ -71,6 +74,7 @@ Python 3 libraries for creating bindings using talloc Group: Development/Libraries Summary: Development libraries for python3-talloc Requires: python3-talloc = %{version}-%{release} +%{?python_provide:%python_provide python3-talloc-devel} %description -n python3-talloc-devel Development libraries for python3-talloc @@ -123,12 +127,12 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} %{_mandir}/man3/talloc*.3.gz %{_mandir}/man3/libtalloc*.3.gz -%files -n python-talloc +%files -n python2-talloc %defattr(-,root,root,-) %{_libdir}/libpytalloc-util.so.* %{python_sitearch}/talloc.so -%files -n python-talloc-devel +%files -n python2-talloc-devel %defattr(-,root,root,-) %{_includedir}/pytalloc.h %{_libdir}/pkgconfig/pytalloc-util.pc @@ -151,8 +155,8 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir} %postun -p /sbin/ldconfig -%post -n python-talloc -p /sbin/ldconfig -%postun -n python-talloc -p /sbin/ldconfig +%post -n python2-talloc -p /sbin/ldconfig +%postun -n python2-talloc -p /sbin/ldconfig %if 0%{?with_python3} %post -n python3-talloc -p /sbin/ldconfig