[packages/dbh] - updated to 5.0.22

qboosh qboosh at pld-linux.org
Thu Sep 21 22:04:26 CEST 2023


commit e588df2fbc28b158da1a86c172a16a0044eee59a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 21 21:57:22 2023 +0200

    - updated to 5.0.22

 am.patch      | 26 ++++++--------------------
 dbh-bsd.patch | 11 -----------
 dbh.spec      | 48 +++++++++++++++++++++++-------------------------
 3 files changed, 29 insertions(+), 56 deletions(-)
---
diff --git a/dbh.spec b/dbh.spec
index ab8f0aa..ff87927 100644
--- a/dbh.spec
+++ b/dbh.spec
@@ -1,23 +1,23 @@
 #
 # Conditional build:
-%bcond_without	static_libs	# don't build static library
+%bcond_without	static_libs	# static library
 
 Summary:	Disk based hash library
 Summary(pl.UTF-8):	Biblioteka obsługująca tablice haszujące na dysku
 Name:		dbh
-Version:	5.0.7
-Release:	2
-License:	LGPL
+Version:	5.0.22
+Release:	1
+License:	GPL v3+
 Group:		Libraries
-Source0:	http://downloads.sourceforge.net/dbh/%{name}-%{version}.tar.gz
-# Source0-md5:	15e1bd22aca735415dfb5ec60f48181b
+Source0:	https://downloads.sourceforge.net/dbh/libdbh2-%{version}.tar.gz
+# Source0-md5:	f8c592f6fd4d336cbb5529dc52177e4f
 Patch0:		am.patch
-Patch1:		%{name}-bsd.patch
-URL:		http://dbh.sourceforge.net/
+URL:		http://www.gnu.org/software/libdbh/
 BuildRequires:	autoconf >= 2.52
-BuildRequires:	automake
-BuildRequires:	gtk-doc >= 1.15
-BuildRequires:	libtool
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	gtk-doc >= 1.18
+BuildRequires:	libtool >= 2:2
+BuildRequires:	rpm-build >= 4.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -43,7 +43,7 @@ Summary:	Disk based hash library development files
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki dbh
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Obsoletes:	dbh-examples
+Obsoletes:	dbh-examples < 1.0.14-1
 
 %description devel
 Disk based hash library development files.
@@ -76,9 +76,8 @@ API documentation for dbh library.
 Dokumentacja API biblioteki dbh.
 
 %prep
-%setup -q
+%setup -q -n libdbh2-%{version}
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -87,6 +86,7 @@ Dokumentacja API biblioteki dbh.
 %{__autoheader}
 %{__automake}
 %configure \
+	--disable-silent-rules \
 	%{!?with_static_libs:--disable-static} \
 	--without-examples
 
@@ -99,12 +99,10 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-cp -p examples/{filesystem,simple_hash}.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdbh.la
 
-# belongs to man3
-%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/dbh.h.1 $RPM_BUILD_ROOT%{_mandir}/man3/dbh.h.3
-# just a copy of dbh.h.1, useless
-%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/dbh.1
+cp -p examples/{filesystem,simple_hash}.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -114,24 +112,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS
-%attr(755,root,root) %{_libdir}/libdbh2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdbh2.so.0
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libdbh.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdbh.so.2
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libdbh2.so
-%{_libdir}/libdbh2.la
+%attr(755,root,root) %{_libdir}/libdbh.so
 %{_includedir}/dbh
 %{_pkgconfigdir}/dbh2.pc
 %{_examplesdir}/%{name}-%{version}
+%{_mandir}/man3/dbh.3*
 %{_mandir}/man3/dbh.h.3*
 %{_mandir}/man3/dbh_*.3*
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libdbh2.a
+%{_libdir}/libdbh.a
 %endif
 
 %files apidocs
diff --git a/am.patch b/am.patch
index 59f5334..da34166 100644
--- a/am.patch
+++ b/am.patch
@@ -1,25 +1,11 @@
---- dbh-5.0.7/Makefile.am.orig	2014-01-14 18:59:35.943695695 +0100
-+++ dbh-5.0.7/Makefile.am	2014-01-14 18:59:57.690698675 +0100
-@@ -14,7 +14,7 @@ docs = \
-     doc/html/style.css\
-     doc/html/up.png
+--- libdbh2-5.0.22/Makefile.am.orig	2023-09-21 21:39:48.761803426 +0200
++++ libdbh2-5.0.22/Makefile.am	2023-09-21 21:41:00.701413695 +0200
+@@ -35,7 +35,7 @@ docs = \
+ 	    doc/html/style.css\
+ 	    doc/html/up.png
  
 -docdir = $(datadir)/gtk-doc/html/dbh
 +docdir = $(datadir)/doc/gtk-doc/html/dbh
  doc_DATA = $(docs)
  
- EXTRA_DIST =  \
-@@ -56,13 +56,8 @@ test: all
- ACLOCAL_AMFLAGS = -I m4
- 
- 
--if WANT_DEBIAN
--pkgsharedir = $(datadir)/pkgconfig
--pkgshare_DATA = dbh2.pc
--else
- pkgconfigdir = $(libdir)/pkgconfig
- pkgconfig_DATA = dbh2.pc
--endif
- ##################################################################
- #maintainer-clean
- svnclean: 
+ examples = \
diff --git a/dbh-bsd.patch b/dbh-bsd.patch
deleted file mode 100644
index 401ed8b..0000000
--- a/dbh-bsd.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- dbh-5.0.7/configure.ac.orig	2013-07-18 22:55:37.000000000 +0200
-+++ dbh-5.0.7/configure.ac	2014-01-14 22:00:51.501153224 +0100
-@@ -161,7 +161,7 @@
- 
- ac_uname_s=`uname -s`
- echo "system: $ac_uname_s"
--AM_CONDITIONAL(WANT_FREEBSD, [test "$ac_uname_s"=FreeBSD || "$ac_uname_s"=OpenBSD])
-+AM_CONDITIONAL(WANT_FREEBSD, [test "$ac_uname_s" = FreeBSD -o "$ac_uname_s" = OpenBSD])
- 
- AC_CHECK_LIB([pthread],[pthread_create])
- AC_CHECK_LIB([pthread],[pthread_cond_signal],[ac_pthread_ok=yes],[ac_pthread_ok=no])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dbh.git/commitdiff/e588df2fbc28b158da1a86c172a16a0044eee59a



More information about the pld-cvs-commit mailing list