This commit is contained in:
parent
44ef720000
commit
d5401d3597
12
libtdb.spec
12
libtdb.spec
@ -44,12 +44,13 @@ Requires: libtdb = %{version}-%{release}
|
||||
%description -n tdb-tools
|
||||
Tools to manage Tdb files
|
||||
|
||||
%package -n python-tdb
|
||||
%package -n python2-tdb
|
||||
Group: Development/Libraries
|
||||
Summary: Python bindings for the Tdb library
|
||||
Requires: libtdb = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-tdb}
|
||||
|
||||
%description -n python-tdb
|
||||
%description -n python2-tdb
|
||||
Python bindings for libtdb
|
||||
|
||||
%if 0%{?with_python3}
|
||||
@ -57,6 +58,7 @@ Python bindings for libtdb
|
||||
Group: Development/Libraries
|
||||
Summary: Python3 bindings for the Tdb library
|
||||
Requires: libtdb = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-tdb}
|
||||
|
||||
%description -n python3-tdb
|
||||
Python3 bindings for libtdb
|
||||
@ -111,7 +113,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
||||
%{_mandir}/man8/tdbtool.8*
|
||||
%{_mandir}/man8/tdbrestore.8*
|
||||
|
||||
%files -n python-tdb
|
||||
%files -n python2-tdb
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/tdb.so
|
||||
%{python_sitearch}/_tdb_text.py*
|
||||
@ -128,9 +130,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post -n python-tdb -p /sbin/ldconfig
|
||||
%post -n python2-tdb -p /sbin/ldconfig
|
||||
|
||||
%postun -n python-tdb -p /sbin/ldconfig
|
||||
%postun -n python2-tdb -p /sbin/ldconfig
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%post -n python3-tdb -p /sbin/ldconfig
|
||||
|
Loading…
Reference in New Issue
Block a user