2006-12-19 00:16:32 +01:00
|
|
|
#
|
2011-10-02 16:43:14 +02:00
|
|
|
# spec file for package gdbm
|
2006-12-19 00:16:32 +01:00
|
|
|
#
|
2023-08-12 12:15:29 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-19 00:16:32 +01:00
|
|
|
#
|
2008-11-28 15:00:44 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-31 08:15:52 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:32 +01:00
|
|
|
#
|
|
|
|
|
2012-02-07 09:02:17 +01:00
|
|
|
|
2018-06-19 08:29:44 +02:00
|
|
|
%define lname libgdbm6
|
2018-05-14 10:59:31 +02:00
|
|
|
%define lcompat libgdbm_compat4
|
2015-02-22 12:37:07 +01:00
|
|
|
Name: gdbm
|
2022-02-07 08:11:40 +01:00
|
|
|
Version: 1.23
|
2012-02-05 17:37:14 +01:00
|
|
|
Release: 0
|
2012-09-25 15:47:24 +02:00
|
|
|
Summary: GNU dbm key/data database
|
2018-03-27 13:39:57 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-07-12 11:28:16 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-05-11 15:43:00 +02:00
|
|
|
URL: https://www.gnu.org/software/gdbm/
|
2016-05-19 10:07:46 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
|
2010-01-14 15:21:55 +01:00
|
|
|
Source2: baselibs.conf
|
2015-02-22 12:37:07 +01:00
|
|
|
Source4: %{name}.keyring
|
2017-06-30 14:20:36 +02:00
|
|
|
# PATCH-FIX-SUSE: remove the build date from src/version.c
|
2012-09-25 15:47:24 +02:00
|
|
|
Patch4: gdbm-no-build-date.patch
|
2023-08-12 12:15:29 +02:00
|
|
|
# PATCH-FIX-UPSTREAM danilo.spinella@suse.com bsc#1209583
|
|
|
|
# gdbm_load and gdbm_dump receive a SEGFAULT if run without arguments
|
|
|
|
Patch5: bsc1209583.patch
|
2011-10-02 16:43:14 +02:00
|
|
|
BuildRequires: libtool
|
2013-03-04 12:47:29 +01:00
|
|
|
BuildRequires: makeinfo
|
2018-05-11 15:43:00 +02:00
|
|
|
BuildRequires: readline-devel
|
2017-06-30 14:20:36 +02:00
|
|
|
%lang_package
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%description
|
2012-02-06 16:39:31 +01:00
|
|
|
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.
|
2006-12-19 00:16:32 +01:00
|
|
|
|
2012-02-06 16:39:31 +01:00
|
|
|
The basic use of GDBM is to store key/data pairs in a data file. Each
|
|
|
|
key must be unique and each key is paired with only one data item.
|
2006-12-19 00:16:32 +01:00
|
|
|
|
2012-02-06 16:39:31 +01:00
|
|
|
The library provides primitives for storing key/data pairs, searching
|
|
|
|
and retrieving the data by its key and deleting a key along with its
|
2012-03-02 13:59:43 +01:00
|
|
|
data. It also supports sequential iteration over all key/data pairs in
|
2012-02-06 16:39:31 +01:00
|
|
|
a database.
|
|
|
|
|
2015-02-22 12:37:07 +01:00
|
|
|
%package -n %{lname}
|
2012-09-25 15:47:24 +02:00
|
|
|
Summary: GNU dbm key/data database
|
2020-12-28 14:32:15 +01:00
|
|
|
# O/P added in 12.2
|
2018-03-27 13:39:57 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-02-06 16:39:31 +01:00
|
|
|
Group: System/Libraries
|
2012-09-25 15:47:24 +02:00
|
|
|
Obsoletes: gdbm < %{version}-%{release}
|
|
|
|
Provides: gdbm = %{version}-%{release}
|
2020-03-19 09:42:18 +01:00
|
|
|
# For lang package
|
|
|
|
Provides: %{name} = %{version}
|
2012-02-06 16:39:31 +01:00
|
|
|
|
2015-02-22 12:37:07 +01:00
|
|
|
%description -n %{lname}
|
2012-02-06 16:39:31 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
The basic use of GDBM is to store key/data pairs in a data file. Each
|
|
|
|
key must be unique and each key is paired with only one data item.
|
|
|
|
|
|
|
|
The library provides primitives for storing key/data pairs, searching
|
|
|
|
and retrieving the data by its key and deleting a key along with its
|
2012-03-02 13:59:43 +01:00
|
|
|
data. It also supports sequential iteration over all key/data pairs in
|
2012-02-06 16:39:31 +01:00
|
|
|
a database.
|
|
|
|
|
2018-05-14 10:59:31 +02:00
|
|
|
%package -n %{lcompat}
|
|
|
|
Summary: GNU dbm key/data database compat wrapper
|
2020-12-28 14:32:15 +01:00
|
|
|
# Was provided in older sonames
|
2018-05-14 10:59:31 +02:00
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: System/Libraries
|
2023-12-07 15:30:11 +01:00
|
|
|
Conflicts: libgdbm4
|
2018-05-14 10:59:31 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2006-12-19 00:16:32 +01:00
|
|
|
%package devel
|
2018-05-18 19:44:02 +02:00
|
|
|
Summary: Development files for the dbm key/data database library
|
2018-03-27 13:39:57 +02:00
|
|
|
License: GPL-3.0-or-later AND LGPL-2.1-or-later
|
2007-12-31 22:20:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-05-14 10:59:31 +02:00
|
|
|
Requires: %{lcompat} = %{version}
|
|
|
|
Requires: %{lname} = %{version}
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%prep
|
2023-08-12 12:15:29 +02:00
|
|
|
%autosetup -p1
|
2010-09-06 11:56:59 +02:00
|
|
|
|
2006-12-19 00:16:32 +01:00
|
|
|
%build
|
2018-07-16 11:55:40 +02:00
|
|
|
|
2016-05-19 10:07:46 +02:00
|
|
|
%configure \
|
2017-06-30 14:20:36 +02:00
|
|
|
--disable-static \
|
2016-05-19 10:07:46 +02:00
|
|
|
--disable-silent-rules \
|
2018-05-11 15:43:00 +02:00
|
|
|
--enable-libgdbm-compat \
|
|
|
|
--enable-nls \
|
|
|
|
--with-readline
|
2022-02-07 08:11:40 +01:00
|
|
|
%make_build
|
2015-02-22 12:37:07 +01:00
|
|
|
|
|
|
|
%check
|
2022-02-07 08:11:40 +01:00
|
|
|
%make_build check
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%install
|
2017-06-30 14:20:36 +02:00
|
|
|
%make_install
|
2018-05-11 15:43:00 +02:00
|
|
|
echo "/* GNU ld script
|
|
|
|
Use the shared library, but some functions are only in
|
|
|
|
the static library, so try that secondarily. */
|
|
|
|
GROUP ( %{_libdir}/libgdbm.so %{_libdir}/libgdbm_compat.so )" > %{buildroot}/%{_libdir}/libndbm.so
|
|
|
|
|
2015-02-22 12:37:07 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-09-25 15:47:24 +02:00
|
|
|
%find_lang %{name}
|
2006-12-19 00:16:32 +01:00
|
|
|
|
2016-05-19 10:07:46 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2015-02-22 12:37:07 +01:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2018-05-14 10:59:31 +02:00
|
|
|
%post -n %{lcompat} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lcompat} -p /sbin/ldconfig
|
2007-12-31 22:20:59 +01:00
|
|
|
|
2017-06-30 14:20:36 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%files -n %{lname}
|
2018-03-27 13:39:57 +02:00
|
|
|
%license COPYING
|
2018-05-11 15:43:00 +02:00
|
|
|
%{_libdir}/libgdbm.so.*
|
2018-05-14 10:59:31 +02:00
|
|
|
|
|
|
|
%files -n %{lcompat}
|
|
|
|
%license COPYING
|
2018-05-11 15:43:00 +02:00
|
|
|
%{_libdir}/libgdbm_compat.so.*
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%files devel
|
2018-03-27 13:39:57 +02:00
|
|
|
%doc README NEWS
|
2014-03-31 12:53:50 +02:00
|
|
|
%{_bindir}/*
|
2012-09-25 15:47:24 +02:00
|
|
|
%{_includedir}/dbm.h
|
|
|
|
%{_includedir}/gdbm.h
|
|
|
|
%{_includedir}/ndbm.h
|
2018-05-11 15:43:00 +02:00
|
|
|
%{_infodir}/gdbm.info%{?ext_info}
|
2012-09-25 15:47:24 +02:00
|
|
|
%{_libdir}/libgdbm.so
|
|
|
|
%{_libdir}/libgdbm_compat.so
|
2018-05-11 15:43:00 +02:00
|
|
|
%{_libdir}/libndbm.so
|
2016-05-19 10:07:46 +02:00
|
|
|
%{_mandir}/man1/*%{ext_man}
|
2018-05-11 15:43:00 +02:00
|
|
|
%{_mandir}/man3/gdbm.3%{?ext_man}
|
2006-12-19 00:16:32 +01:00
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
%changelog
|