# $Id$ Summary: Pluggable utility to administer authentication data Name: cpu Version: 1.4.3 Release: 5%{?dist} License: GPL Group: System Environment/Base Source: cpu-1.4.3.tar.bz2 Patch0: cpu-1.4.3-doc_install.patch Patch1: cpu-1.4.3-rhel5.patch Patch2: cpu-1.4.3-md5crypt.patch Patch3: cpu-1.4.3-read.patch Prefix: %{_prefix} BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildRequires: openldap-devel %description CPU is a utility consisting of a set of plugins that allow an administrator to administer a wide range of different authentication backends. Current plugins include support for LDAP and a partially completed flat file plugin. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" export CFLAGS CXXFLAGS %configure %{?acflags} %{__make} %{?mflags} %install %{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} rm $RPM_BUILD_ROOT/usr/share/cpu.conf.doc rm $RPM_BUILD_ROOT/usr/share/test.ldif %clean test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc README INSTALL COPYING TODO AUTHORS NEWS ChangeLog doc %config %attr(0600, root,root) /etc/cpu.conf %{_libdir}/* /usr/sbin/cpu %doc /usr/share/man/man5/* %doc /usr/share/man/man8/* %changelog * Fri Aug 03 2007 Charlie Brady 1.4.3-5 - Read LDIF files until eof, rather than use stat size. Allows read from, e.g. /dev/stdin. * Fri Aug 03 2007 Charlie Brady 1.4.3-4 - Add md5crypt support (from sourceforge). * Tue Jul 24 2007 Charlie Brady 1.4.3-3 - Portability fixes to allow building on RHEL5/CentOS5. * Wed Sep 27 2006 Charlie Brady 1.4.3-2 - Update file list, and remove world read from cpu.conf. * Tue Sep 26 2006 Charlie Brady - Initial