packages: nss_db/nss_db.spec - update berkdb to 4.6.21.4 - more specific li...
glen
glen at pld-linux.org
Mon Feb 22 18:13:28 CET 2010
Author: glen Date: Mon Feb 22 17:13:28 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- update berkdb to 4.6.21.4
- more specific license
- glibc epoch
- disable cryptography, hash, queue, replication, statistics, verify from db build
- ghost soname symlink
- verbose files
- rel 10
---- Files affected:
packages/nss_db:
nss_db.spec (1.38 -> 1.39)
---- Diffs:
================================================================
Index: packages/nss_db/nss_db.spec
diff -u packages/nss_db/nss_db.spec:1.38 packages/nss_db/nss_db.spec:1.39
--- packages/nss_db/nss_db.spec:1.38 Sat Dec 6 20:25:42 2008
+++ packages/nss_db/nss_db.spec Mon Feb 22 18:13:23 2010
@@ -1,16 +1,20 @@
# $Revision$, $Date$
-
+# 4.8 makes libpthread a hard requirement
+# 4.7 has a heavier footprint
%define db_version 4.6.21
+%define subver pre1
+%define rel 10
Summary: Berkeley DB Name Service Switch Module
Summary(pl.UTF-8): Moduł NSS do baz db
Name: nss_db
Version: 2.2.3
-%define bver pre1
-Release: 0.%{bver}.9
-License: LGPL
+Release: 0.%{subver}.%{rel}
+# DB is under the Sleepycat (Oracle) license.
+# nss_db is under the LGPLv2+ license.
+License: Sleepycat and LGPL v2+
Group: Base
-Source0: ftp://sources.redhat.com/pub/glibc/old-releases/%{name}-%{version}%{bver}.tar.gz
+Source0: ftp://sources.redhat.com/pub/glibc/old-releases/%{name}-%{version}%{subver}.tar.gz
# Source0-md5: b4440ba2865d28e9068e465426c19ede
Source1: http://download.oracle.com/berkeley-db/db-%{db_version}.tar.gz
# Source1-md5: 718082e7e35fc48478a2334b0bc4cd11
@@ -24,13 +28,17 @@
Patch7: %{name}-uniqdb.patch
Patch8: %{name}-initialize.patch
Patch9: %{name}-selinux.patch
+Patch101: http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/patch.4.6.21.1
+Patch102: http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/patch.4.6.21.2
+Patch103: http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/patch.4.6.21.3
+Patch104: http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/patch.4.6.21.4
BuildRequires: autoconf
BuildRequires: automake >= 1.4
BuildRequires: gettext-devel
BuildRequires: glibc-devel >= 2.3
-BuildRequires: libtool
BuildRequires: libselinux-devel
-Requires: glibc >= 2.3
+BuildRequires: libtool
+Requires: glibc >= 6:2.3
Requires: make
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -47,7 +55,7 @@
glibc-2.2.x.
%prep
-%setup -q -n %{name}-%{version}%{bver} -a1
+%setup -q -n %{name}-%{version}%{subver} -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -60,9 +68,14 @@
%patch9 -p1
mkdir db-build
+cd db-%{db_version}
+%patch101 -p0
+%patch102 -p0
+%patch103 -p0
+%patch104 -p0
%build
-dbdir=`pwd`/db-instroot
+dbdir=$(pwd)/db-instroot
cd db-build
CC="%{__cc}"
@@ -82,6 +95,12 @@
--disable-rpc \
--disable-tcl \
--disable-shared \
+ --disable-cryptography \
+ --disable-hash \
+ --disable-queue \
+ --disable-replication \
+ --disable-statistics \
+ --disable-verify \
--with-pic \
--with-uniquename=_nssdb \
--prefix=$dbdir \
@@ -128,11 +147,12 @@
slibdir=/%{_lib} \
DESTDIR=$RPM_BUILD_ROOT
-install db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
+rm $RPM_BUILD_ROOT%{_libdir}/libnss_db.so
+cp -a db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
-cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
+cat << EOF -> $RPM_BUILD_ROOT%{_bindir}/create-db
#!/bin/sh
-/usr/bin/make -sC /var/db
+%{__make} -sC /var/db
EOF
ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
@@ -148,8 +168,12 @@
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS
-%attr(755,root,root) /%{_lib}/*.so
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) /%{_lib}/libnss_db-*.so
+%attr(755,root,root) %ghost /%{_lib}/libnss_db.so.2
+%attr(755,root,root) %{_bindir}/create-db
+%attr(755,root,root) %{_bindir}/makedb
+%attr(755,root,root) %{_bindir}/update-db
+
%config(noreplace) %verify(not md5 mtime size) /var/db/Makefile
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -158,6 +182,15 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.39 2010/02/22 17:13:23 glen
+- update berkdb to 4.6.21.4
+- more specific license
+- glibc epoch
+- disable cryptography, hash, queue, replication, statistics, verify from db build
+- ghost soname symlink
+- verbose files
+- rel 10
+
Revision 1.38 2008/12/06 19:25:42 baggins
- rel .9
- filter out GLIBC_PRIVATE deps/provs but check if compiled library
@@ -172,7 +205,7 @@
Revision 1.35 2007/10/10 15:17:09 baggins
- rel .7
- build with private copy of libdb (BAD things happen when linked
- with system db, like static programs suddenly sigsegving)
+ with system db, like static programs suddenly sigsegving)
- added selinux support for makedb
- some bugfixes from FC (descriptions in patches)
@@ -230,7 +263,7 @@
- s/db3-devel/db-devel/
Revision 1.18 2002/11/27 22:06:25 juandon
-- new %%doc
+- new %doc
Revision 1.17 2002/10/09 13:14:41 kloczek
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
@@ -239,9 +272,9 @@
- perl -pi -e "s/^libtoolize --copy --force/\%\{__libtoolize\}/"
Revision 1.15 2002/05/21 23:14:15 kloczek
-perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
+- perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
s/^automake -a -c -f/\%\{__automake\}/; \
- s/^autoconf/\%\{__autoconf\}/"
+ s/^autoconf/\%\{__autoconf\}/"
Revision 1.14 2002/03/24 23:28:22 kloczek
- perl -pi -e "s/^automake -a -c$/automake -a -c -f/"
@@ -254,7 +287,7 @@
Group field using gettext).
Revision 1.11 2002/01/18 02:14:03 kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
Revision 1.10 2001/10/20 16:50:33 qboosh
- release 8: amfix patch for automake 1.5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nss_db/nss_db.spec?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list