On Jan 27, 2011, at 7:34 AM, [email protected] wrote:

> Forum: Cfengine Help
> Subject: cfengine rpm spec file
> Author: BSDmachine
> Link to topic: https://cfengine.com/forum/read.php?3,20297,20297#msg-20297
> 
> Is it possible to get the spec file that is used to create the RPM I 
> currently download from the engine room for the free version of cfengine.  I 
> would rather roll my own RPM's, however i do not want to attempt to reinvent 
> the wheel creating a new spec file.  Or even letting us download the src rpm 
> would work well too.
> 
> Thanks,
> 
> Sean
> 
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine

A partial RPM spec follows that excludes the %files contents.  You'll have to 
add the file manifest and add any init scripts that you want.  My preference is 
to bootstrap the cfengine configuration separately.  It worked with 
cfengine-3.0.3.  I'm not affiliated with the cfengine.com, though I had to 
package cfengine for a project I worked on.  Your milage may vary:

Summary: System administration tool for networks
Name: cfengine
Version: 3.0.3
Release: 1
License: GPL
Group: System Environment/Base
URL: http://www.cfengine.org/

Packager: Robert Bruce Carleton <[email protected]>
Vendor: cfengine.com

Source: http://www.cfengine.org/downloads/cfengine-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: bison, flex, m4, openssl-devel, db4-devel, pcre-devel
Requires: openssl

%description
Cfengine, or the configuration engine is an agent/software robot and a
very high level language for building expert systems to administrate
and configure large computer networks. Cfengine uses the idea of
classes and a primitive form of intelligence to define and automate
the configuration and maintenance of system state, for small to huge
configurations. Cfengine is designed to be a part of a computer immune
system.

%prep
%setup


%build
%configure
%{__make}

%install
%{__rm} -rf %{buildroot}
%makeinstall
### Clean up buildroot
%{__rm} -f %{buildroot}%{_infodir}/dir

%post

%preun

%clean
%{__rm} -rf %{buildroot}

%files

%changelog
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to