]>
Commit | Line | Data |
---|---|---|
ea78b753 | 1 | Summary: Change Password Utility |
01e66fc2 | 2 | Summary(pl.UTF-8): Narzędzie do zmiany haseł |
ea78b753 | 3 | Name: cpu |
4 | Version: 1.4.3 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/System | |
ea78b753 | 8 | Source0: http://dl.sourceforge.net/cpu/%{name}-%{version}.tar.bz2 |
ea78b753 | 9 | # Source0-md5: 2d128f82261967d41458800752bc943d |
4ac3f594 JB |
10 | URL: http://cpu.sourceforge.net/ |
11 | Patch0: %{name}-DESTDIR.patch | |
eec9287b | 12 | Patch1: %{name}-lbflags.patch |
189f84ff | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
ee6cc253 | 16 | BuildRequires: openldap-devel >= 2.4.6 |
ea78b753 | 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 | ||
41c2ce00 JR |
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. | |
ea78b753 | 30 | |
31 | %prep | |
32 | %setup -q | |
33 | %patch0 -p1 | |
eec9287b | 34 | %patch1 -p1 |
ea78b753 | 35 | |
36 | %build | |
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__automake} | |
eec9287b ER |
41 | %configure \ |
42 | --with-ldap \ | |
43 | --with-cracklib | |
ea78b753 | 44 | %{__make} |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
4ac3f594 | 48 | |
ea78b753 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT \ | |
51 | docdir="../rpm-doc" | |
52 | ||
ea78b753 | 53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
4ac3f594 JB |
56 | %post -p /sbin/ldconfig |
57 | %postun -p /sbin/ldconfig | |
58 | ||
ea78b753 | 59 | %files |
60 | %defattr(644,root,root,755) | |
4ac3f594 | 61 | %doc AUTHORS ChangeLog NEWS README TODO |
ea78b753 | 62 | %attr(755,root,root) %{_sbindir}/* |
63 | %attr(755,root,root) %{_libdir}/libcpu*.so.*.* | |
4ac3f594 | 64 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cpu.conf |
ea78b753 | 65 | %{_mandir}/man?/* |