]>
Commit | Line | Data |
---|---|---|
1 | Summary: Change Password Utility | |
2 | Summary(pl.UTF-8): Narzędzie do zmiany haseł | |
3 | Name: cpu | |
4 | Version: 1.4.3 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/System | |
8 | Source0: http://dl.sourceforge.net/cpu/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 2d128f82261967d41458800752bc943d | |
10 | URL: http://cpu.sourceforge.net/ | |
11 | Patch0: %{name}-DESTDIR.patch | |
12 | Patch1: %{name}-lbflags.patch | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
16 | BuildRequires: openldap-devel | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | CPU is an LDAP user management tool written in C and loosely based on | |
21 | FreeBSD's pw(8). The goal of CPU is to be a suitable replacement of | |
22 | the useradd/usermod/userdel utilities for administrators using an LDAP | |
23 | backend and wishing to have a suite of command line tools for doing | |
24 | the administration. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | CPU to narzędzie do zarządzania użytkownikami w LDAP, napisane w C i | |
28 | bazujące na pw(8) z FreeBSD. Celem CPU jest zastąpienie narzędzi | |
29 | useradd/usermod/userdel, korzystając z LDAP. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | %patch0 -p1 | |
34 | %patch1 -p1 | |
35 | ||
36 | %build | |
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__automake} | |
41 | %configure \ | |
42 | --with-ldap \ | |
43 | --with-cracklib | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT \ | |
51 | docdir="../rpm-doc" | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post -p /sbin/ldconfig | |
57 | %postun -p /sbin/ldconfig | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog NEWS README TODO | |
62 | %attr(755,root,root) %{_sbindir}/* | |
63 | %attr(755,root,root) %{_libdir}/libcpu*.so.*.* | |
64 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cpu.conf | |
65 | %{_mandir}/man?/* |