2006-12-19 00:16:32 +01:00
|
|
|
#
|
|
|
|
# spec file for package gdbm (Version 1.8.3)
|
|
|
|
#
|
2009-12-08 12:48:57 +01:00
|
|
|
# Copyright (c) 2009 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
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-29 23:56:31 +01:00
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
Name: gdbm
|
|
|
|
Url: http://directory.fsf.org/GNU/gdbm.html
|
2006-12-19 00:16:32 +01:00
|
|
|
#!BuildIgnore: man
|
2007-12-31 22:20:59 +01:00
|
|
|
Prefix: /usr
|
2009-12-08 12:48:57 +01:00
|
|
|
License: GPLv2+
|
2007-12-31 22:20:59 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
AutoReqProv: on
|
2008-11-28 15:00:44 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gdbm-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-12-31 22:20:59 +01:00
|
|
|
Version: 1.8.3
|
2009-12-08 12:48:57 +01:00
|
|
|
Release: 372
|
2007-12-31 22:20:59 +01:00
|
|
|
Summary: GNU Database Routines
|
|
|
|
Source: ftp://prep.ai.mit.edu/gnu/gdbm/gdbm-%{version}.tar.bz2
|
|
|
|
Patch: gdbm-%{version}.dif
|
2008-02-29 23:56:31 +01:00
|
|
|
Patch1: gdbm-protoize_dbm_headers.patch
|
|
|
|
Patch2: gdbm-prototype_static_functions.patch
|
|
|
|
Patch3: gdbm-fix_testprogs.patch
|
2007-12-31 22:20:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A static and dynamic library for the GNU database routines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2009-12-08 12:48:57 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2008-02-29 23:56:31 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-12-31 22:20:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: gdbm = %{version}
|
|
|
|
Provides: gdbm:/usr/lib/libgdbm.so
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
AutoReqProv: on
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jason Downs <downsj@downsj.com>
|
|
|
|
Phil Nelson <phil@unicorn.wwu.edu>
|
|
|
|
|
|
|
|
%prep
|
2007-12-31 22:20:59 +01:00
|
|
|
%setup -q
|
2006-12-19 00:16:32 +01:00
|
|
|
%patch
|
2008-02-29 23:56:31 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
aclocal
|
|
|
|
autoreconf --force --install
|
|
|
|
%ifarch sparc64
|
|
|
|
export CC="gcc -m64"
|
|
|
|
%endif
|
2007-12-31 22:20:59 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack"
|
|
|
|
%configure
|
2009-12-08 12:48:57 +01:00
|
|
|
make %{?jobs:-j%jobs};
|
2006-12-19 00:16:32 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
make install-compat INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
echo "/* GNU ld script
|
|
|
|
Use the shared library, but some functions are only in
|
|
|
|
the static library, so try that secondarily. */
|
|
|
|
GROUP ( /usr/%{_lib}/libgdbm.so /usr/%{_lib}/libgdbm_compat.so )" > $RPM_BUILD_ROOT/%{_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 ( /usr/%{_lib}/libgdbm.a /usr/%{_lib}/libgdbm_compat.a )" > $RPM_BUILD_ROOT/%{_libdir}/libndbm.a
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-12-31 22:20:59 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2006-12-19 00:16:32 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{_prefix}/%{_lib}/libgdbm.so.3
|
|
|
|
%{_prefix}/%{_lib}/libgdbm.so.3.0.0
|
|
|
|
%{_prefix}/%{_lib}/libgdbm_compat.so.3
|
|
|
|
%{_prefix}/%{_lib}/libgdbm_compat.so.3.0.0
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/include/dbm.h
|
|
|
|
%{_prefix}/include/gdbm.h
|
|
|
|
%{_prefix}/include/ndbm.h
|
2007-12-31 22:20:59 +01:00
|
|
|
%{_infodir}/gdbm.info.gz
|
2006-12-19 00:16:32 +01:00
|
|
|
%{_prefix}/%{_lib}/libgdbm.a
|
|
|
|
%{_prefix}/%{_lib}/libgdbm.so
|
|
|
|
%{_prefix}/%{_lib}/libgdbm_compat.a
|
|
|
|
%{_prefix}/%{_lib}/libgdbm_compat.so
|
|
|
|
%{_prefix}/%{_lib}/libndbm.a
|
|
|
|
%{_prefix}/%{_lib}/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
|