]> git.pld-linux.org Git - packages/nss_db.git/blob - nss_db.spec
- Added missing br: libstdc gcc-c++ lwp-devel, however as it still doesn't
[packages/nss_db.git] / nss_db.spec
1 Summary:        Berkeley DB Name Service Switch Module
2 Summary(pl):    Modu³ NSS do baz db
3 Name:           nss_db
4 Version:        2.2
5 Release:        8
6 License:        LGPL
7 Group:          Base
8 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.gz
9 # Source0-md5:  c2565cbd4a941ba70e41391693c3252d
10 Patch0:         %{name}-chmod_644.patch
11 Patch1:         %{name}-amfix.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  db-devel
15 BuildRequires:  glibc-devel >= 2.2
16 #BuildRequires: libstdc++-devel
17 #BuildRequires: gcc-c++
18 #Buildrequires: lwp-devel
19 BuildRequires:  libtool
20 Requires:       glibc >= 2.2
21 Requires:       make
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This is nss_db, a name service switch module that can be used with
26 glibc-2.2.x.
27
28 %description -l pl
29 To jest nss_db, modu³ do serwisu nazw, który mo¿e byæ u¿ywany z
30 glibc-2.2.x.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35 %patch1 -p1
36
37 %build
38 rm -f missing
39 %{__libtoolize}
40 %{__aclocal}
41 %{__autoconf}
42 %{__automake}
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/{lib,var/db}
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 install db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
54
55 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
56 #!/bin/sh
57 /usr/bin/make -sC /var/db/
58 EOF
59
60 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post   -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
67
68 %files
69 %defattr(644,root,root,755)
70 %doc AUTHORS ChangeLog README NEWS THANKS
71 %attr(755,root,root) /lib/*.so
72 %attr(755,root,root) %{_bindir}/*
73 %config /var/db/Makefile
This page took 0.087179 seconds and 3 git commands to generate.