]> git.pld-linux.org Git - packages/nss_db.git/blob - nss_db.spec
- perl -pi -e "s/^libtoolize --copy --force/\%\{__libtoolize\}/"
[packages/nss_db.git] / nss_db.spec
1 # $Revision: 1.16 $Date: 2002-06-23 20:32:32 $
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:        8
7 License:        LGPL
8 Group:          Base
9 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-chmod_644.patch
11 Patch1:         %{name}-amfix.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  db3-devel
15 BuildRequires:  glibc-devel >= 2.2
16 BuildRequires:  libtool
17 Requires:       glibc >= 2.2
18 Requires:       make
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This is nss_db, a name service switch module that can be used with
23 glibc-2.2.x.
24
25 %description -l pl
26 To jest nss_db, modu³ do serwisu nazw, który mo¿e byæ u¿ywany z
27 glibc-2.2.x.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32 %patch1 -p1
33
34 %build
35 rm -f missing
36 %{__libtoolize}
37 aclocal
38 %{__autoconf}
39 %{__automake}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/{lib,var/db}
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 install db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
51
52 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
53 #!/bin/sh
54 /usr/bin/make -sC /var/db/
55 EOF
56
57 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
58
59 gzip -9nf AUTHORS ChangeLog README NEWS THANKS
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
68 %defattr(644,root,root,755)
69 %doc *.gz
70 %attr(755,root,root) /lib/*.so
71 %attr(755,root,root) %{_bindir}/*
72 %config /var/db/Makefile
This page took 0.201774 seconds and 3 git commands to generate.