]> git.pld-linux.org Git - packages/nss_db.git/commitdiff
- initial revision
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 26 Sep 2000 16:31:37 +0000 (16:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nss_db.spec -> 1.1

nss_db.spec [new file with mode: 0644]

diff --git a/nss_db.spec b/nss_db.spec
new file mode 100644 (file)
index 0000000..cd33330
--- /dev/null
@@ -0,0 +1,57 @@
+# $Revision: 1.1 $Date: 2000-09-26 16:31:37 $
+Summary:       Berkeley DB Name Service Switch Module
+Name:          nss_db
+Version:       2.1.92
+Release:       1
+License:       LGPL
+Group:         Base
+Group(de):     Gründsätzlich
+Group(pl):     Podstawowe
+Source0:       iftp://sourceware.cygnus.com/pub/glibc/releases/%{name}-%{version}.tar.gz
+BuildRequires: db3-devel 
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description 
+This is nss_db, a name service switch module that can be used with
+glibc-2.2.xx.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{lib,var/db}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
+
+cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
+#!/bin/sh
+/usr/bin/make -sC /var/db/
+EOF
+
+ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
+
+strip --strip-unneeded $RPM_BUILD_ROOT/lib/*
+strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/makedb
+
+gzip -9nf AUTHORS ChangeLog README NEWS THANKS
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc {AUTHORS,ChangeLog,README,NEWS,THANKS}.gz
+%attr(755,root,root) /lib/*.so
+%attr(755,root,root) %{_bindir}/*
+%config /var/db/Makefile
This page took 0.06833 seconds and 4 git commands to generate.