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
|
|
|
#
|
2013-02-01 20:53:18 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:16:32 +01:00
|
|
|
#
|
|
|
|
|
2012-02-07 09:02:17 +01:00
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
Name: gdbm
|
2012-09-25 15:47:24 +02:00
|
|
|
%define lname libgdbm4
|
2007-12-31 22:20:59 +01:00
|
|
|
Url: http://directory.fsf.org/GNU/gdbm.html
|
2006-12-19 00:16:32 +01:00
|
|
|
#!BuildIgnore: man
|
2008-11-28 15:00:44 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gdbm-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-09-25 15:47:24 +02:00
|
|
|
Version: 1.10
|
2012-02-05 17:37:14 +01:00
|
|
|
Release: 0
|
2012-09-25 15:47:24 +02:00
|
|
|
Summary: GNU dbm key/data database
|
2013-02-06 11:00:55 +01:00
|
|
|
License: GPL-3.0+
|
2012-02-05 17:37:14 +01:00
|
|
|
Group: System/Libraries
|
2012-09-25 15:47:24 +02:00
|
|
|
Source: ftp://prep.ai.mit.edu/gnu/gdbm/gdbm-%{version}.tar.gz
|
2010-01-14 15:21:55 +01:00
|
|
|
Source2: baselibs.conf
|
2012-09-25 15:47:24 +02:00
|
|
|
# ENHANCE-FOR-UPSTREM i@marguerite.su - add zh_CN translation. And I'll submit it to upstream.
|
2013-02-01 20:53:18 +01:00
|
|
|
Source3: zh_CN.gmo
|
2012-09-25 15:47:24 +02:00
|
|
|
# FIX-FOR-UPSTREAM i@marguerite.su - remove the build date from src/version.c
|
|
|
|
Patch4: gdbm-no-build-date.patch
|
2013-03-06 20:52:09 +01:00
|
|
|
BuildRequires: autoconf >= 2.63
|
|
|
|
BuildRequires: automake >= 1.11
|
2011-10-02 16:43:14 +02:00
|
|
|
BuildRequires: libtool
|
2013-03-04 12:47:29 +01:00
|
|
|
BuildRequires: makeinfo
|
2012-09-25 15:47:24 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
2012-03-02 13:59:43 +01:00
|
|
|
For compatibility with programs using old UNIX dbm functions, the
|
2012-02-06 16:39:31 +01:00
|
|
|
package also provides traditional dbm and ndbm interfaces.
|
|
|
|
|
|
|
|
%package -n %lname
|
2012-09-25 15:47:24 +02:00
|
|
|
Summary: GNU dbm key/data database
|
2013-02-06 11:00:55 +01:00
|
|
|
License: GPL-3.0+
|
2012-02-06 16:39:31 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
# O/P added in 12.2
|
2012-09-25 15:47:24 +02:00
|
|
|
Obsoletes: gdbm < %{version}-%{release}
|
|
|
|
Provides: gdbm = %{version}-%{release}
|
2012-02-06 16:39:31 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
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.
|
|
|
|
|
2012-03-02 13:59:43 +01:00
|
|
|
For compatibility with programs using old UNIX dbm functions, the
|
2012-02-06 16:39:31 +01:00
|
|
|
package also provides traditional dbm and ndbm interfaces.
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%package devel
|
2012-09-25 15:47:24 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2013-02-06 11:00:55 +01:00
|
|
|
License: GPL-3.0+ and LGPL-2.1+
|
2007-12-31 22:20:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-25 15:47:24 +02:00
|
|
|
Requires(pre): %install_info_prereq
|
2007-12-31 22:20:59 +01:00
|
|
|
Requires: gdbm = %{version}
|
|
|
|
Provides: gdbm:/usr/lib/libgdbm.so
|
2008-11-28 15:00:44 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gdbm-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
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
|
2007-12-31 22:20:59 +01:00
|
|
|
%setup -q
|
2012-09-25 15:47:24 +02:00
|
|
|
%patch4 -p1
|
2010-09-06 11:56:59 +02:00
|
|
|
|
2006-12-19 00:16:32 +01:00
|
|
|
%build
|
|
|
|
aclocal
|
|
|
|
autoreconf --force --install
|
|
|
|
%ifarch sparc64
|
|
|
|
export CC="gcc -m64"
|
|
|
|
%endif
|
2012-09-25 15:47:24 +02:00
|
|
|
export CFLAGS="%{optflags} -Wa,--noexecstack"
|
|
|
|
%configure --enable-libgdbm-compat
|
2010-06-28 16:21:03 +02:00
|
|
|
make %{?_smp_mflags};
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%install
|
2012-09-25 15:47:24 +02:00
|
|
|
%make_install
|
2006-12-19 00:16:32 +01:00
|
|
|
echo "/* GNU ld script
|
|
|
|
Use the shared library, but some functions are only in
|
|
|
|
the static library, so try that secondarily. */
|
2012-09-25 15:47:24 +02:00
|
|
|
GROUP ( %{_libdir}/libgdbm.so %{_libdir}/libgdbm_compat.so )" > %{buildroot}/%{_libdir}/libndbm.so
|
2006-12-19 00:16:32 +01:00
|
|
|
echo "/* GNU ld script
|
|
|
|
Use the shared library, but some functions are only in
|
|
|
|
the static library, so try that secondarily. */
|
2012-09-25 15:47:24 +02:00
|
|
|
GROUP ( %{_libdir}/libgdbm.a %{_libdir}/libgdbm_compat.a )" > %{buildroot}/%{_libdir}/libndbm.a
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/locale/zh_CN/LC_MESSAGES/
|
|
|
|
cp -r %{SOURCE3} %{buildroot}%{_datadir}/locale/zh_CN/LC_MESSAGES/%{name}.mo
|
|
|
|
%find_lang %{name}
|
2006-12-19 00:16:32 +01:00
|
|
|
|
2012-02-06 16:39:31 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-12-31 22:20:59 +01:00
|
|
|
|
2012-02-06 16:39:31 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-12-31 22:20:59 +01:00
|
|
|
|
2012-09-25 15:47:24 +02:00
|
|
|
%files -n %lname -f %{name}.lang
|
2006-12-19 00:16:32 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING README NEWS
|
2012-09-25 15:47:24 +02:00
|
|
|
%{_libdir}/libgdbm.so.4
|
|
|
|
%{_libdir}/libgdbm.so.4.0.0
|
|
|
|
%{_libdir}/libgdbm_compat.so.4
|
|
|
|
%{_libdir}/libgdbm_compat.so.4.0.0
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-09-25 15:47:24 +02:00
|
|
|
%{_bindir}/testgdbm
|
|
|
|
%{_includedir}/dbm.h
|
|
|
|
%{_includedir}/gdbm.h
|
|
|
|
%{_includedir}/ndbm.h
|
2007-12-31 22:20:59 +01:00
|
|
|
%{_infodir}/gdbm.info.gz
|
2012-09-25 15:47:24 +02:00
|
|
|
%{_libdir}/libgdbm.a
|
|
|
|
%{_libdir}/libgdbm.so
|
|
|
|
%{_libdir}/libgdbm_compat.a
|
|
|
|
%{_libdir}/libgdbm_compat.so
|
|
|
|
%{_libdir}/libndbm.a
|
|
|
|
%{_libdir}/libndbm.so
|
2007-12-31 22:20:59 +01:00
|
|
|
%{_mandir}/man3/gdbm.3.gz
|
|
|
|
%exclude %{_libdir}/*.la
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
%changelog
|