]> git.pld-linux.org Git - packages/nss_db.git/blob - nss_db.spec
- typo in Source url.
[packages/nss_db.git] / nss_db.spec
1 # $Revision: 1.2 $Date: 2000-10-03 22:10:00 $
2 Summary:        Berkeley DB Name Service Switch Module
3 Name:           nss_db
4 Version:        2.1.92
5 Release:        1
6 License:        LGPL
7 Group:          Base
8 Group(de):      Gründsätzlich
9 Group(pl):      Podstawowe
10 Source0:        ftp://sourceware.cygnus.com/pub/glibc/releases/%{name}-%{version}.tar.gz
11 BuildRequires:  db3-devel 
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description 
15 This is nss_db, a name service switch module that can be used with
16 glibc-2.2.xx.
17
18 %prep
19 %setup -q
20
21 %build
22 %configure
23 %{__make}
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT/{lib,var/db}
28
29 %{__make} install \
30         DESTDIR=$RPM_BUILD_ROOT
31
32 install db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
33
34 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
35 #!/bin/sh
36 /usr/bin/make -sC /var/db/
37 EOF
38
39 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
40
41 strip --strip-unneeded $RPM_BUILD_ROOT/lib/*
42 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/makedb
43
44 gzip -9nf AUTHORS ChangeLog README NEWS THANKS
45
46 %post   -p /sbin/ldconfig
47 %postun -p /sbin/ldconfig
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc {AUTHORS,ChangeLog,README,NEWS,THANKS}.gz
55 %attr(755,root,root) /lib/*.so
56 %attr(755,root,root) %{_bindir}/*
57 %config /var/db/Makefile
This page took 0.031923 seconds and 4 git commands to generate.