# # rpm spec for cfengine # Summary: Cfengine configuration-management program Name: cfengine Version: 2.1.16 Release: 1%{?redhatvers:.%{redhatvers}} Group: Applications/System License: GPL Packager: Paul Heinlein URL: http://www.cfengine.org/ Source: ftp://ftp.iu.hio.no/pub/cfengine/cfengine-2.1.16.tar.gz BuildRequires: bison, db4-devel, flex, openssl-devel Requires: db4, openssl BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Cfengine is a suite of programs for setting up and maintaining BSD and System-V-like operating system optionally attached to a TCP/IP network. You can think of cfengine as a very high level language and a self-learning software agent---much higher level than Perl or shell: a single statement can result in many hundreds of operations being performed on multiple hosts. The main purpose of cfengine is to allow you to create a single, central system configuration which will define how every host on your network should be configured in an intuitive way. %prep %setup -q %build CFLAGS="%{optflags}" \ ./configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --with-berkeleydb=%{_prefix} \ --with-openssl=%{_prefix} make %{_smp_mflags} # make texinfo docs cd doc make %{_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install-strip cd doc make DESTDIR=%{buildroot} install cd .. install -d %{buildroot}/%{_localstatedir}/%{name} # unused/unwanted files; rpm 4.1 and higher will complain about them /bin/rm -rf %{buildroot}/usr/doc /bin/rm -rf %{buildroot}%{_infodir}/dir # why are some docs installed with execute bits set? find %{buildroot}%{_datadir} -type f -exec chmod 644 {} \; %clean rm -rf %{buildroot} %post for f in Anomalies Reference Tutorial; do /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cfengine-${f}.info.gz done %preun if [ $1 = 0 ]; then for f in Anomalies Reference Tutorial; do /sbin/install-info --delete \ --info-dir=%{_infodir} %{_infodir}/cfengine-${f}.info.gz done fi %files %defattr(-,root,root) %doc AUTHORS ChangeLog INSTALL NEWS README TODO %{_sbindir}/* %doc %{_datadir}/%{name} %doc %{_infodir}/* %doc %{_mandir}/*/* %dir %{_localstatedir}/%{name} %changelog * Tue Oct 25 2005 Paul Heinlein 2.1.16-1 - new upstream version * Mon Apr 18 2005 Paul Heinlein 2.1.14-1 - new upstream version * Sat Mar 5 2005 Paul Heinlein 2.1.13-1 - new upstream version - remove cfshow.8 workaround * Thu Jan 20 2005 Paul Heinlein 2.1.12-1 - new upstream version - add (hopefully temporary) workaround for missing cfshow.8 * Wed Aug 18 2004 Paul Heinlein 2.1.10-0 - new upstream version - specify docs in %%files section so rpm -qd works better * Fri Sep 5 2003 Paul Heinlein 2.0.8-1 - version 2.0.8 - use standard _smp_mflags macro for picking up smp systems * Thu Feb 20 2003 Paul Heinlein - added BuildRequires section (thanks to Adam Jurevicius!) - designated man and info pages as documentation * Mon Feb 17 2003 Paul Heinlein - updated for version 2.0.5 - start weeding out built-but-unused files to keep rpm 4.1 and higher from belly aching * Wed Sep 18 2002 Paul Heinlein - added support for %%redhatvers * Mon Sep 16 2002 Paul Heinlein - added changelog * Mon Sep 2 2002 Paul Heinlein - added smp-aware make options - updated for version 2.0.4 * Wed May 15 2002 Paul Heinlein - initial revision ### ### eof ###