1 |
slords |
1.5 |
# $Id: cpu.spec,v 1.4 2008/04/09 13:51:45 slords Exp $ |
2 |
slords |
1.4 |
|
3 |
slords |
1.1 |
Summary: Pluggable utility to administer authentication data |
4 |
|
|
Name: cpu |
5 |
|
|
Version: 1.4.3 |
6 |
slords |
1.5 |
Release: 6%{?dist} |
7 |
slords |
1.1 |
License: GPL |
8 |
|
|
Group: System Environment/Base |
9 |
|
|
Source: cpu-1.4.3.tar.bz2 |
10 |
|
|
Patch0: cpu-1.4.3-doc_install.patch |
11 |
|
|
Patch1: cpu-1.4.3-rhel5.patch |
12 |
|
|
Patch2: cpu-1.4.3-md5crypt.patch |
13 |
|
|
Patch3: cpu-1.4.3-read.patch |
14 |
slords |
1.5 |
Patch4: cpu-1.4.3-fix-cn.patch |
15 |
slords |
1.1 |
Prefix: %{_prefix} |
16 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
17 |
slords |
1.2 |
BuildRequires: openldap-devel |
18 |
slords |
1.1 |
|
19 |
|
|
%description |
20 |
|
|
CPU is a utility consisting of a set of plugins that allow an administrator to |
21 |
|
|
administer a wide range of different authentication backends. Current plugins |
22 |
|
|
include support for LDAP and a partially completed flat file plugin. |
23 |
|
|
|
24 |
|
|
%prep |
25 |
|
|
%setup -q |
26 |
|
|
%patch0 -p1 |
27 |
|
|
%patch1 -p1 |
28 |
|
|
%patch2 -p1 |
29 |
|
|
%patch3 -p1 |
30 |
slords |
1.5 |
%patch4 -p1 |
31 |
slords |
1.1 |
|
32 |
|
|
%build |
33 |
|
|
CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
34 |
|
|
CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
35 |
|
|
export CFLAGS CXXFLAGS |
36 |
|
|
|
37 |
|
|
%configure %{?acflags} |
38 |
|
|
%{__make} %{?mflags} |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} |
42 |
|
|
rm $RPM_BUILD_ROOT/usr/share/cpu.conf.doc |
43 |
|
|
rm $RPM_BUILD_ROOT/usr/share/test.ldif |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT |
47 |
|
|
|
48 |
|
|
%files |
49 |
|
|
%defattr(-, root, root) |
50 |
|
|
%doc README INSTALL COPYING TODO AUTHORS NEWS ChangeLog doc |
51 |
|
|
%config %attr(0600, root,root) /etc/cpu.conf |
52 |
slords |
1.3 |
%{_libdir}/* |
53 |
slords |
1.1 |
/usr/sbin/cpu |
54 |
|
|
%doc /usr/share/man/man5/* |
55 |
|
|
%doc /usr/share/man/man8/* |
56 |
|
|
|
57 |
|
|
%changelog |
58 |
slords |
1.5 |
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-6.sme |
59 |
|
|
- Use gecos for cn if available, also modify cn if possible [SME: 6338] |
60 |
|
|
|
61 |
|
|
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-5.sme |
62 |
slords |
1.1 |
- Read LDIF files until eof, rather than use stat size. Allows |
63 |
|
|
read from, e.g. /dev/stdin. |
64 |
|
|
|
65 |
slords |
1.5 |
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-4.sme |
66 |
slords |
1.1 |
- Add md5crypt support (from sourceforge). |
67 |
|
|
|
68 |
slords |
1.5 |
* Tue Jul 24 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-3.sme |
69 |
slords |
1.1 |
- Portability fixes to allow building on RHEL5/CentOS5. |
70 |
|
|
|
71 |
slords |
1.5 |
* Wed Sep 27 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.3-2.sme |
72 |
slords |
1.1 |
- Update file list, and remove world read from cpu.conf. |
73 |
|
|
|
74 |
|
|
* Tue Sep 26 2006 Charlie Brady <charlieb@e-smith.com> |
75 |
|
|
- Initial |
76 |
|
|
|