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