SHA256
3
0
forked from pool/gdbm

Accepting request 610471 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/610471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdbm?expand=0&rev=35
This commit is contained in:
Dominique Leuenberger 2018-05-20 15:19:07 +00:00 committed by Git OBS Bridge
commit 5e9d41d774
10 changed files with 127 additions and 70 deletions

2
.gitattributes vendored
View File

@ -21,5 +21,3 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
## Specific LFS patterns
zh_CN.gmo filter=lfs diff=lfs merge=lfs -text

View File

@ -1,5 +1,7 @@
libgdbm4
obsoletes "gdbm-<targettype> < <version>"
libgdbm_compat4
conflicts "libgdbm3-<targettype>"
gdbm-devel
requires -gdbm-<targettype>
requires "libgdbm4-<targettype> = <version>"
requires "libgdbm_compat4-<targettype> = <version>"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d97b2166ee867fd6ca5c022efee80702d6f30dd66af0e03ed092285c3af9bcea
size 841213

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iEYEABECAAYFAlc6LZUACgkQNgKwf1XQxzJyxQCeJGERmrV5hLA9gyIkBYJIBfD7
6agAoI1g/meiN8NTYQlrPInjeWuQdjKr
=CQ3h
-----END PGP SIGNATURE-----

3
gdbm-1.13.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d252cbd7d793f7b12bcceaddda98d257c14f4d1890d851c386c37207000a253
size 891987

7
gdbm-1.13.tar.gz.sig Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iEYEABECAAYFAljEKKgACgkQNgKwf1XQxzJI/gCgneIHAy4tfcEhzuNLeVE4PO+D
TxcAoKNkmTk5PwNBHSbsOI8sanQop+F/
=R+s2
-----END PGP SIGNATURE-----

View File

@ -5,7 +5,7 @@ Index: src/version.c
@@ -25,9 +25,6 @@
making the distdir. */
const char * gdbm_version = "GDBM version " PACKAGE_VERSION ". "
"16/05/2016"
"11/03/2017"
-#if defined(__STDC__) && defined(__DATE__) && defined(__TIME__)
- " (built " __DATE__ " " __TIME__ ")"
-#endif

View File

@ -1,3 +1,64 @@
-------------------------------------------------------------------
Fri May 18 16:35:12 UTC 2018 - jengelh@inai.de
- Fix boilerplate summary.
-------------------------------------------------------------------
Fri May 18 07:28:56 UTC 2018 - tchvatal@suse.com
- Fix missing dash in baselibs.conf
-------------------------------------------------------------------
Mon May 14 17:55:17 UTC 2018 - tchvatal@suse.com
- Revert to release 1.13 to allow migration to split compat package
first. Otherwise OBS can't get heads or tails on conflicts
-------------------------------------------------------------------
Mon May 14 09:13:07 UTC 2018 - tchvatal@suse.com
- Fix baselibs.conf that got hammered with the compat split from
main library
-------------------------------------------------------------------
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
- Version update to 1.14.1:
* Manpage formating issues
* Make gdbm_error thread-safe
* Improve database reproducibility
* Fix build with --enable-gdbm-export
- Rebase patch gdbm-no-build-date.patch
-------------------------------------------------------------------
Tue Mar 27 13:17:38 CEST 2018 - kukuk@suse.de
- Use %license instead of %doc [bsc#1082318]
- Move docu to -devel subpackage, where it fits better
-------------------------------------------------------------------
Mon Jul 10 21:22:06 UTC 2017 - jengelh@inai.de
- Fix RPM groups.
-------------------------------------------------------------------
Wed Jun 28 14:20:34 UTC 2017 - tchvatal@suse.com
- Version update to 1.13:
* Various few fixes
- Cleanup the spec a bit
- Refresh patch gdbm-no-build-date.patch
- Remove chinese language support patched in house, if anything it
should be merged in the upstream git repo
- Drop the ndbm compats as it is not provided by any other distro
-------------------------------------------------------------------
Wed May 18 18:04:35 UTC 2016 - mpluskal@suse.com

105
gdbm.spec
View File

@ -1,7 +1,7 @@
#
# spec file for package gdbm
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,27 +17,24 @@
%define lname libgdbm4
%define lcompat libgdbm_compat4
Name: gdbm
Version: 1.12
Version: 1.13
Release: 0
Summary: GNU dbm key/data database
License: GPL-3.0+
Group: System/Libraries
Url: https://www.gnu.org.ua/software/gdbm/
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.gnu.org/software/gdbm/
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
Source2: baselibs.conf
# ENHANCE-FOR-UPSTREM i@marguerite.su - add zh_CN translation. And I'll submit it to upstream.
Source3: zh_CN.gmo
Source4: %{name}.keyring
# FIX-FOR-UPSTREAM i@marguerite.su - remove the build date from src/version.c
# PATCH-FIX-SUSE: remove the build date from src/version.c
Patch4: gdbm-no-build-date.patch
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1.11
BuildRequires: libtool
BuildRequires: makeinfo
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!BuildIgnore: man
BuildRequires: readline-devel
%lang_package
%description
GNU dbm is a library of database functions that use extensible
@ -53,13 +50,11 @@ 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.
For compatibility with programs using old UNIX dbm functions, the
package also provides traditional dbm and ndbm interfaces.
%package -n %{lname}
Summary: GNU dbm key/data database
License: GPL-3.0+
License: GPL-3.0-or-later
Group: System/Libraries
Recommends: %{name}-lang = %{version}
# O/P added in 12.2
Obsoletes: gdbm < %{version}-%{release}
Provides: gdbm = %{version}-%{release}
@ -78,17 +73,30 @@ 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.
For compatibility with programs using old UNIX dbm functions, the
package also provides traditional dbm and ndbm interfaces.
%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: 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+ and LGPL-2.1+
Summary: Development files for the dbm key/data database library
License: GPL-3.0-or-later AND LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Requires: gdbm = %{version}
Requires(postun): %{install_info_prereq}
Requires: %{lcompat} = %{version}
Requires: %{lname} = %{version}
Requires(pre): %{install_info_prereq}
Provides: gdbm:%{_libexecdir}/libgdbm.so
Requires(preun): %{install_info_prereq}
%description devel
This package contains all necessary include files and libraries needed
@ -99,68 +107,59 @@ to develop applications that require these.
%patch4
%build
aclocal
autoreconf -fiv
%ifarch sparc64
export CC="gcc -m64"
%endif
export CFLAGS="%{optflags} -Wa,--noexecstack"
%configure \
--disable-static \
--disable-silent-rules \
--enable-libgdbm-compat
--enable-libgdbm-compat \
--enable-nls \
--with-readline
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%make_install
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
echo "/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
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
# do not ship these
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%preun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%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 -n %{lname} -f %{name}.lang
%defattr(-,root,root)
%doc COPYING README NEWS
%{_libdir}/libgdbm.so.4
%{_libdir}/libgdbm.so.4.0.0
%{_libdir}/libgdbm_compat.so.4
%{_libdir}/libgdbm_compat.so.4.0.0
%files lang -f %{name}.lang
%files -n %{lname}
%license COPYING
%{_libdir}/libgdbm.so.*
%files -n %{lcompat}
%license COPYING
%{_libdir}/libgdbm_compat.so.*
%files devel
%defattr(-,root,root)
%doc README NEWS
%{_bindir}/*
%{_includedir}/dbm.h
%{_includedir}/gdbm.h
%{_includedir}/ndbm.h
%{_infodir}/gdbm.info%{ext_info}
%{_libdir}/libgdbm.a
%{_infodir}/gdbm.info%{?ext_info}
%{_libdir}/libgdbm.so
%{_libdir}/libgdbm_compat.a
%{_libdir}/libgdbm_compat.so
%{_libdir}/libndbm.a
%{_libdir}/libndbm.so
%{_mandir}/man1/*%{ext_man}
%{_mandir}/man3/gdbm.3%{ext_man}
%{_mandir}/man3/gdbm.3%{?ext_man}
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d33b6a30150d94b457854a149f61218b1ddc96fbbcb875e1ac23d0af77bff228
size 9770