diff --git a/gdbm.changes b/gdbm.changes index 0249471..36188ea 100644 --- a/gdbm.changes +++ b/gdbm.changes @@ -1,8 +1,9 @@ ------------------------------------------------------------------- -Fri May 11 12:14:06 UTC 2018 - tchvatal@suse.com +Mon May 14 08:56:00 UTC 2018 - tchvatal@suse.com - Put back ndbm compat as the perl testuite seem to have hard time without it +- Require both compat and base in develpkg ------------------------------------------------------------------- Fri May 11 11:52:38 UTC 2018 - tchvatal@suse.com diff --git a/gdbm.spec b/gdbm.spec index 2362bfd..8848a0b 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -17,6 +17,7 @@ %define lname libgdbm5 +%define lcompat libgdbm_compat4 Name: gdbm Version: 1.14.1 Release: 0 @@ -72,11 +73,29 @@ and retrieving the data by its key and deleting a key along with its data. It also supports sequential iteration over all key/data pairs in a database. +%package -n %{lcompat} +Summary: GNU dbm key/data database compat wrapper +License: GPL-3.0-or-later +Group: System/Libraries +Recommends: %{name}-lang = %{version} +# Was provided in older sonames +Conflicts: libgdbm4 +Conflicts: libgdbm3 + +%description -n %{lcompat} +GNU dbm is a library of database functions that use extensible +hashing and work similar to the standard UNIX dbm. These routines are +provided to a programmer needing to create and manipulate a hashed +database. + +This library is providing compatibility wrappers. + %package devel Summary: Include Files and Libraries mandatory for Development License: GPL-3.0-or-later AND LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Requires: gdbm = %{version} +Requires: %{lcompat} = %{version} +Requires: %{lname} = %{version} Requires(pre): %{install_info_prereq} Requires(preun): %{install_info_prereq} @@ -118,12 +137,17 @@ find %{buildroot} -type f -name "*.la" -delete -print %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig +%post -n %{lcompat} -p /sbin/ldconfig +%postun -n %{lcompat} -p /sbin/ldconfig %files lang -f %{name}.lang %files -n %{lname} %license COPYING %{_libdir}/libgdbm.so.* + +%files -n %{lcompat} +%license COPYING %{_libdir}/libgdbm_compat.so.* %files devel