]> git.pld-linux.org Git - SPECS.git/blob - pwdb.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / pwdb.spec
1 Summary:        Password Database Library
2 Summary(de.UTF-8):      Passwortdatenbank-Library
3 Summary(fr.UTF-8):      Bibliothèque de la base de données des mots de passe
4 Summary(pl.UTF-8):      Biblioteka danych o użytkownikach
5 Summary(tr.UTF-8):      Parola veri tabanı arşivi
6 Name:           pwdb
7 Version:        0.62
8 Release:        4
9 License:        BSD or GPL
10 Group:          Base
11 Source0:        http://pkgs.fedoraproject.org/repo/pkgs/compat-pwdb/pwdb-0.62.tar.gz/1a1fd0312040ef37aa741d09465774b4/%{name}-%{version}.tar.gz
12 # Source0-md5:  1a1fd0312040ef37aa741d09465774b4
13 Patch0:         %{name}-pld.patch
14 BuildRequires:  libnsl-devel
15 BuildRequires:  libtirpc-devel
16 BuildRequires:  pkgconfig
17 BuildRequires:  sgml-tools
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 The pwdb package contains libpwdb, the password database library.
22 Libpwdb is a library which implements a generic user information
23 database. Libpwdb was specifically designed to work with Linux's PAM
24 (Pluggable Authentication Modules). Libpwdb allows configurable access
25 to and management of security tools like /etc/passwd, /etc/shadow and
26 network authentication systems including NIS and Radius.
27
28 %description -l de.UTF-8
29 Das pwdb-Paket enthält libpwdb, die Passwortdatenbank-Library. Libpwdb
30 ist eine Library, die eine Userinformations-Datenbank implementiert,
31 und mit Linux-PAM (Pluggable Authentication Modules) zusammenarbeited.
32 Libpwdb erlaubt konfigurierbaren Zugriff auf /etc/passwd, /etc/shadow
33 und Netzwerkauthentifizierungssysteme wie NIS und Radius.
34
35 %description -l fr.UTF-8
36 pwdb (Password Database Library) permet un accès configurable à (et la
37 gestion de) /etc/passwd, /etc/shadow ainsi que des systèmes
38 d'authentification réseau, dont NIS et Radius.
39
40 %description -l pl.UTF-8
41 Pwdb (Password Database Library) zapewnia spójny interfejs dostępu do
42 zarządzania bazami danych o użytkownikach. Biblioteka zwalnia
43 aplikacje z konieczności samodzielnego przetwarzania baz danych oraz
44 daje administratorowi możliwość wyboru poprzez prosty plik
45 konfiguracyjny, czy dane będą pochodzić z /etc/passwd, /etc/shadow czy
46 baz sieciowych, takich jak NIS lub RADIUS.
47
48 %description -l tr.UTF-8
49 pwdb, /etc/passwd ve /etc/shadow dosyalarının yönetimine ve erişimine,
50 NIS ve Radius içeren sistemlerde ağ doğrulamasına izin verir.
51
52 %package devel
53 Summary:        PWDB header files
54 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki PWDB
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57
58 %description devel
59 Header files for developing PWDB based applications.
60
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki PWDB, przeznaczone do tworzenia aplikacji
63 opartych na PWDB.
64
65 %package static
66 Summary:        PWDB static library
67 Summary(pl.UTF-8):      Biblioteka statyczna PWDB
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 PWDB static library.
73
74 %description static -l pl.UTF-8
75 Biblioteka statyczna PWDB.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80
81 %build
82 ln -sf defs/pld.defs default.defs
83
84 %{__make} \
85         CC="%{__cc}" \
86         OPTIMIZE="%{rpmcflags} $(pkg-config --cflags libtirpc libnsl)"
87
88 %{__make} -C doc
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/%{_lib},%{_includedir}/pwdb,%{_libdir}}
93
94 %{__make} install \
95         INCLUDED=$RPM_BUILD_ROOT%{_includedir}/pwdb \
96         LIBDIR=$RPM_BUILD_ROOT/%{_lib}
97
98 cp -p conf/pwdb.conf $RPM_BUILD_ROOT%{_sysconfdir}/pwdb.conf
99
100 %{__mv} $RPM_BUILD_ROOT/%{_lib}/libpwdb.a $RPM_BUILD_ROOT%{_libdir}
101
102 %{__rm} $RPM_BUILD_ROOT/%{_lib}/libpwdb.so
103 ln -sf /%{_lib}/libpwdb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libpwdb.so
104 /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc CHANGES CREDITS Copyright README doc/pwdb.txt doc/html/*.html
115 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pwdb.conf
116 %attr(755,root,root) /%{_lib}/libpwdb.so.*.*
117 %attr(755,root,root) %ghost /%{_lib}/libpwdb.so.0
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libpwdb.so
122 %{_includedir}/pwdb
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libpwdb.a
This page took 0.624374 seconds and 3 git commands to generate.