1 |
slords |
1.1 |
# $Id: cpu.spec,v 1.11 2010/11/08 05:11:15 slords Exp $ |
2 |
|
|
|
3 |
|
|
Summary: Pluggable utility to administer authentication data |
4 |
|
|
Name: cpu |
5 |
|
|
Version: 1.4.3 |
6 |
|
|
Release: 13%{?dist} |
7 |
|
|
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 |
|
|
Patch4: cpu-1.4.3-fix-cn.patch |
15 |
|
|
Patch5: cpu-1.4.3-empty-attr.patch |
16 |
|
|
Patch6: cpu-1.4.3-mod-delete.patch |
17 |
|
|
Patch7: cpu-1.4.3-supp-groups.patch |
18 |
|
|
Patch8: cpu-1.4.3-gid-not-supp.patch |
19 |
|
|
Prefix: %{_prefix} |
20 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
21 |
|
|
BuildRequires: openldap-devel |
22 |
|
|
|
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 |
|
|
%patch4 -p1 |
35 |
|
|
%patch5 -p1 |
36 |
|
|
%patch6 -p1 |
37 |
|
|
%patch7 -p1 |
38 |
|
|
%patch8 -p1 |
39 |
|
|
|
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 |
|
|
%{_libdir}/* |
61 |
|
|
/usr/sbin/cpu |
62 |
|
|
%doc /usr/share/man/man5/* |
63 |
|
|
%doc /usr/share/man/man8/* |
64 |
|
|
|
65 |
|
|
%changelog |
66 |
|
|
* Sun Nov 7 2010 Shad L. Lords <slords@mail.com> 1.4.3-12.sme |
67 |
|
|
- 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 |
|
|
- Retrieve supplimential groups if not specified [SME: 6347] |
71 |
|
|
- Fix memory leak introduced in revision 9 [SME: 6342] |
72 |
|
|
|
73 |
|
|
* 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 |
|
|
* 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 |
|
|
* Fri Nov 5 2010 Shad L. Lords <slords@mail.com> 1.4.3-9.sme |
80 |
|
|
- Check for attribute before deleting [SME: 6342] |
81 |
|
|
|
82 |
|
|
* 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 |
|
|
* 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 |
|
|
- Read LDIF files until eof, rather than use stat size. Allows |
93 |
|
|
read from, e.g. /dev/stdin. |
94 |
|
|
|
95 |
|
|
* Fri Aug 03 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-4.sme |
96 |
|
|
- Add md5crypt support (from sourceforge). |
97 |
|
|
|
98 |
|
|
* Tue Jul 24 2007 Charlie Brady <charlie_brady@mitel.com> 1.4.3-3.sme |
99 |
|
|
- Portability fixes to allow building on RHEL5/CentOS5. |
100 |
|
|
|
101 |
|
|
* Wed Sep 27 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.3-2.sme |
102 |
|
|
- 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 |
|
|
|