summaryrefslogtreecommitdiff
path: root/packaging/gdbm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/gdbm.spec')
-rw-r--r--packaging/gdbm.spec146
1 files changed, 59 insertions, 87 deletions
diff --git a/packaging/gdbm.spec b/packaging/gdbm.spec
index df9a8db..9497c3f 100644
--- a/packaging/gdbm.spec
+++ b/packaging/gdbm.spec
@@ -1,111 +1,83 @@
-Name: gdbm
-Url: http://directory.fsf.org/GNU/gdbm.html
-Version: 1.8.3
-Release: 0
-Summary: GNU dbm key/data database
-License: GPL-2.0+
-Group: System/Libraries
-Source: ftp://prep.ai.mit.edu/gnu/gdbm/gdbm-%{version}.tar.bz2
-Source1001: gdbm.manifest
-Patch0: gdbm-%{version}.dif
-Patch1: gdbm-protoize_dbm_headers.patch
-Patch2: gdbm-prototype_static_functions.patch
-Patch3: gdbm-fix_testprogs.patch
-Patch4: gdbm-1.8.3-no-build-date.patch
-BuildRequires: libtool
+#
+# Do NOT Edit the Auto-generated Part!
+# Generated by: spectacle version 0.22
+#
+
+Name: gdbm
+Summary: GNU Database Routines
+Version: 1.8.3
+Release: 1
+Group: System/Libraries
+License: GPL-2.0+
+URL: http://directory.fsf.org/GNU/gdbm.html
+Source0: http://ftp.gnu.org/pub/gnu/gdbm/gdbm-%{version}.tar.bz2
+Source100: gdbm.yaml
+Patch0: gdbm-%{version}.dif
+Patch1: gdbm-protoize_dbm_headers.patch
+Patch2: gdbm-prototype_static_functions.patch
+Patch3: gdbm-fix_testprogs.patch
+Patch4: gdbm-destdir.patch
+Patch5: gdbm-stamp.patch
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
%description
-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
-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 libgdbm
-Summary: GNU dbm key/data database
-License: GPL-2.0+
-Group: System/Libraries
-# O/P added in 12.2
-Obsoletes: gdbm < %version-%release
-Provides: gdbm = %version-%release
-
-%description -n libgdbm
-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
-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.
+A static and dynamic library for the GNU database routines.
+
%package devel
-Summary: Include Files and Libraries mandatory for Development
-License: GPL-2.0+ ; LGPL-2.1+
-Group: Development/Libraries/C and C++
-Requires: gdbm = %{version}
-Provides: gdbm:/usr/lib/libgdbm.so
+Summary: Include Files and Libraries mandatory for Development
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
+
%prep
-%setup -q
-%patch0
-%patch1
-%patch2
-%patch3
-%patch4
+%setup -q -n %{name}-%{version}
+
+# gdbm-%{version}.dif
+%patch0 -p1
+# gdbm-protoize_dbm_headers.patch
+%patch1 -p1
+# gdbm-prototype_static_functions.patch
+%patch2 -p1
+# gdbm-fix_testprogs.patch
+%patch3 -p1
+# gdbm-destdir.patch
+%patch4 -p1
+# gdbm-stamp.patch
+%patch5 -p1
%build
-cp %{S:1001} .
aclocal
-%reconfigure --enable-libgdbm-compat --disable-static
-make %{?_smp_mflags};
+autoreconf --force --install
+export CFLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack"
-%install
-make install INSTALL_ROOT=$RPM_BUILD_ROOT
-make install-compat INSTALL_ROOT=$RPM_BUILD_ROOT
+%configure --disable-static
+make %{?jobs:-j%jobs}
-rm -rf %{buildroot}%{_libdir}/*.la
+%install
+rm -rf %{buildroot}
+%make_install
%remove_docs
-%post -n libgdbm -p /sbin/ldconfig
+%post -p /sbin/ldconfig
-%postun -n libgdbm -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%files -n libgdbm
-%manifest %{name}.manifest
+%files
+%defattr(-,root,root,-)
%doc COPYING
-%_libdir/libgdbm.so.3
-%_libdir/libgdbm.so.3.0.0
-%_libdir/libgdbm_compat.so.3
-%_libdir/libgdbm_compat.so.3.0.0
+%{_libdir}/libgdbm.so.3
+%{_libdir}/libgdbm.so.3.0.0
%files devel
-%manifest %{name}.manifest
-%{_prefix}/include/dbm.h
-%{_prefix}/include/gdbm.h
-%{_prefix}/include/ndbm.h
-%{_prefix}/%{_lib}/libgdbm.so
-%{_prefix}/%{_lib}/libgdbm_compat.so
+%defattr(-,root,root,-)
+%{_libdir}/libgdbm.so
+/usr/include/gdbm.h