]> git.pld-linux.org Git - packages/gdbm.git/blobdiff - gdbm.spec
- updated to 1.18
[packages/gdbm.git] / gdbm.spec
index ef158421b269a1529608a34a7b12ebae97e2d404..ceba9f5a8c40a0b13dd7ef35df0645ecc48544c6 100644 (file)
--- a/gdbm.spec
+++ b/gdbm.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
 Summary:       GNU database library for C
 Summary(de.UTF-8):     GNU-Datenbank-Library für C
 Summary(fr.UTF-8):     La librairie GNU de bases de données pout le langage C
@@ -5,20 +9,21 @@ Summary(pl.UTF-8):    Biblioteka GNU bazy danych dla języka C
 Summary(ru.UTF-8):     Библиотека базы данных GNU для C
 Summary(uk.UTF-8):     Бібліотека бази даних GNU для C
 Name:          gdbm
-Version:       1.8.3
-Release:       7
-License:       GPL
+Version:       1.18
+Release:       1
+License:       GPL v3+
 Group:         Libraries
-Source0:       ftp://ftp.gnu.org/pub/gnu/gdbm/%{name}-%{version}.tar.gz
-# Source0-md5: 1d1b1d5c0245b1c00aff92da751e9aa1
+Source0:       http://ftp.gnu.org/gnu/gdbm/%{name}-%{version}.tar.gz
+# Source0-md5: e316f8e4a3e7e4f23955be65d54fec48
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-jbj.patch
-Patch2:                %{name}-linking.patch
-Patch3:                %{name}-link-compat.patch
-Patch4:                %{name}-make-jN.patch
-BuildRequires: autoconf
-BuildRequires: automake
+Patch1:                %{name}-link-compat.patch
+Patch2:                %{name}-link.patch
+URL:           http://www.gnu.org/software/gdbm/
+BuildRequires: autoconf >= 2.69
+BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-tools >= 0.18
 BuildRequires: libtool
+BuildRequires: readline-devel
 BuildRequires: texinfo
 Obsoletes:     libgdbm2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -129,28 +134,32 @@ Biblioteka statyczna gdbm.
 Це статична бібліотека gdbm, бази даних GNU.
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
-%patch4 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoheader}
 %{__autoconf}
-%configure
+%{__automake}
+%configure \
+       --enable-libgdbm-compat \
+       --disable-silent-rules
 
 %{__make}
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} -j1 install install-compat \
-       INSTALL_ROOT=$RPM_BUILD_ROOT \
-       BINOWN=`id -u` BINGRP=`id -g`
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -158,25 +167,39 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%post devel    -p      /sbin/postshell
+%post  devel -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun devel  -p      /sbin/postshell
+%postun        devel -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc ChangeLog NEWS README
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc AUTHORS ChangeLog NEWS NOTE-WARNING README
+%attr(755,root,root) %{_bindir}/gdbm_dump
+%attr(755,root,root) %{_bindir}/gdbm_load
+%attr(755,root,root) %{_bindir}/gdbmtool
+%attr(755,root,root) %{_libdir}/libgdbm.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdbm.so.6
+%attr(755,root,root) %{_libdir}/libgdbm_compat.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdbm_compat.so.4
+%{_mandir}/man1/gdbm_dump.1*
+%{_mandir}/man1/gdbm_load.1*
+%{_mandir}/man1/gdbmtool.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_mandir}/man3/*
-%{_includedir}/*
-%{_infodir}/gdbm*
+%attr(755,root,root) %{_libdir}/libgdbm.so
+%attr(755,root,root) %{_libdir}/libgdbm_compat.so
+%{_libdir}/libgdbm.la
+%{_libdir}/libgdbm_compat.la
+%{_includedir}/dbm.h
+%{_includedir}/gdbm.h
+%{_includedir}/ndbm.h
+%{_mandir}/man3/gdbm.3*
+%{_infodir}/gdbm.info*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libgdbm.a
+%{_libdir}/libgdbm_compat.a
This page took 0.07511 seconds and 4 git commands to generate.