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