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