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