1 |
slords |
1.9 |
# $Id: cpu.spec,v 1.8 2010/11/06 06:06:39 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.9 |
Release: 11%{?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.6 |
Patch5: cpu-1.4.3-empty-attr.patch |
16 |
|
|
Patch6: cpu-1.4.3-mod-delete.patch |
17 |
slords |
1.1 |
Prefix: %{_prefix} |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
19 |
slords |
1.2 |
BuildRequires: openldap-devel |
20 |
slords |
1.1 |
|
21 |
|
|
%description |
22 |
|
|
CPU is a utility consisting of a set of plugins that allow an administrator to |
23 |
|
|
administer a wide range of different authentication backends. Current plugins |
24 |
|
|
include support for LDAP and a partially completed flat file plugin. |
25 |
|
|
|
26 |
|
|
%prep |
27 |
|
|
%setup -q |
28 |
|
|
%patch0 -p1 |
29 |
|
|
%patch1 -p1 |
30 |
|
|
%patch2 -p1 |
31 |
|
|
%patch3 -p1 |
32 |
slords |
1.5 |
%patch4 -p1 |
33 |
slords |
1.6 |
%patch5 -p1 |
34 |
|
|
%patch6 -p1 |
35 |
slords |
1.1 |
|
36 |
|
|
%build |
37 |
|
|
CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
38 |
|
|
CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
39 |
|
|
export CFLAGS CXXFLAGS |
40 |
|
|
|
41 |
|
|
%configure %{?acflags} |
42 |
|
|
%{__make} %{?mflags} |
43 |
|
|
|
44 |
|
|
%install |
45 |
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} |
46 |
|
|
rm $RPM_BUILD_ROOT/usr/share/cpu.conf.doc |
47 |
|
|
rm $RPM_BUILD_ROOT/usr/share/test.ldif |
48 |
|
|
|
49 |
|
|
%clean |
50 |
|
|
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT |
51 |
|
|
|
52 |
|
|
%files |
53 |
|
|
%defattr(-, root, root) |
54 |
|
|
%doc README INSTALL COPYING TODO AUTHORS NEWS ChangeLog doc |
55 |
|
|
%config %attr(0600, root,root) /etc/cpu.conf |
56 |
slords |
1.3 |
%{_libdir}/* |
57 |
slords |
1.1 |
/usr/sbin/cpu |
58 |
|
|
%doc /usr/share/man/man5/* |
59 |
|
|
%doc /usr/share/man/man8/* |
60 |
|
|
|
61 |
|
|
%changelog |
62 |
slords |
1.9 |
* Sun Nov 7 2010 Shad L. Lords <slords@mail.com> 1.4.3-11.sme |
63 |
|
|
- Treat null attribs in extra file like empty string [SME: 6342] |
64 |
|
|
|
65 |
slords |
1.8 |
* Sat Nov 6 2010 Shad L. Lords <slords@mail.com> 1.4.3-10.sme |
66 |
|
|
- Object might not exist yet which isn't an error [SME: 6342] |
67 |
|
|
|
68 |
slords |
1.7 |
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-9.sme |
69 |
|
|
- Check for attribute before deleting (for extra attrs) [SME: 6342] |
70 |
|
|
|
71 |
slords |
1.6 |
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-8.sme |
72 |
|
|
- If empty value is passed in assume that means delete [SME: 6342] |
73 |
|
|
|
74 |
|
|
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-7.sme |
75 |
|
|
- Ignore attributes that have empty attr [SME: 6341] |
76 |
|
|
|
77 |
slords |
1.5 |
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-6.sme |
78 |
|
|
- Use gecos for cn if available, also modify cn if possible [SME: 6338] |
79 |
|
|
|
80 |
|
|
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-5.sme |
81 |
slords |
1.1 |
- Read LDIF files until eof, rather than use stat size. Allows |
82 |
|
|
read from, e.g. /dev/stdin. |
83 |
|
|
|
84 |
slords |
1.5 |
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-4.sme |
85 |
slords |
1.1 |
- Add md5crypt support (from sourceforge). |
86 |
|
|
|
87 |
slords |
1.5 |
* Tue Jul 24 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-3.sme |
88 |
slords |
1.1 |
- Portability fixes to allow building on RHEL5/CentOS5. |
89 |
|
|
|
90 |
slords |
1.5 |
* Wed Sep 27 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.3-2.sme |
91 |
slords |
1.1 |
- Update file list, and remove world read from cpu.conf. |
92 |
|
|
|
93 |
|
|
* Tue Sep 26 2006 Charlie Brady <charlieb@e-smith.com> |
94 |
|
|
- Initial |
95 |
|
|
|