Define library name and use it instead of libtdb1.
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=14
This commit is contained in:
parent
b9164136b4
commit
8cd1115f2e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 3 21:46:25 UTC 2012 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Define library name and use it instead of libtdb1.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 2 20:17:54 UTC 2012 - lmuelle@suse.com
|
Sat Jun 2 20:17:54 UTC 2012 - lmuelle@suse.com
|
||||||
|
|
||||||
|
15
tdb.spec
15
tdb.spec
@ -53,7 +53,8 @@ internally to keep writers from trampling on each other. TDB is also extremely
|
|||||||
small.
|
small.
|
||||||
|
|
||||||
|
|
||||||
%package -n libtdb1
|
%define libtdb_name libtdb1
|
||||||
|
%package -n %{libtdb_name}
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -64,7 +65,7 @@ Requires: pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
PreReq: /sbin/ldconfig
|
PreReq: /sbin/ldconfig
|
||||||
|
|
||||||
%description -n libtdb1
|
%description -n %{libtdb_name}
|
||||||
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
||||||
except that it allows multiple simultaneous writers and uses locking
|
except that it allows multiple simultaneous writers and uses locking
|
||||||
internally to keep writers from trampling on each other. TDB is also extremely
|
internally to keep writers from trampling on each other. TDB is also extremely
|
||||||
@ -77,7 +78,7 @@ This package contains the tdb1 library.
|
|||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libtdb1 = %{version}
|
Requires: %{libtdb_name} = %{version}
|
||||||
%if 0%{?suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
Requires: pkg-config
|
Requires: pkg-config
|
||||||
%else
|
%else
|
||||||
@ -111,7 +112,7 @@ This package contains tools to manage Tdb files.
|
|||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Summary: Python bindings for the Tdb library
|
Summary: Python bindings for the Tdb library
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: libtdb1 = %{version}
|
Requires: %{libtdb_name} = %{version}
|
||||||
|
|
||||||
%description -n python-tdb
|
%description -n python-tdb
|
||||||
This package contains the python bindings for the Tdb library.
|
This package contains the python bindings for the Tdb library.
|
||||||
@ -144,15 +145,15 @@ CONFIGURE_OPTIONS="\
|
|||||||
%install
|
%install
|
||||||
DESTDIR=${RPM_BUILD_ROOT} make install
|
DESTDIR=${RPM_BUILD_ROOT} make install
|
||||||
|
|
||||||
%post -n libtdb1 -p /sbin/ldconfig
|
%post -n %{libtdb_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libtdb1 -p /sbin/ldconfig
|
%postun -n %{libtdb_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n python-tdb -p /sbin/ldconfig
|
%post -n python-tdb -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n python-tdb -p /sbin/ldconfig
|
%postun -n python-tdb -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libtdb1
|
%files -n %{libtdb_name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libtdb.so.*
|
%{_libdir}/libtdb.so.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user