[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

i386-redhat-linux prefix on rpm files



Hello,

I'm trying to create a cfengine rpm for redhat. I've created a spec file from a template at freshrpms.net and everything seems to work fine with the exception that many of the files that are placed into the rpm are preceeded by an i386-redhat-linux prefix. Here is a listing of some of the files.

# rpm -qpl ../RPMS/i386/cfengine-2.0.1-1.i386.rpm
/usr/doc/cfengine-2.0.1
/usr/sbin/i386-redhat-linux-cfagent
/usr/sbin/i386-redhat-linux-cfdoc
/usr/sbin/i386-redhat-linux-cfenvd
/usr/sbin/i386-redhat-linux-cfenvgraph
/usr/sbin/i386-redhat-linux-cfexecd
/usr/sbin/i386-redhat-linux-cfkey
/usr/sbin/i386-redhat-linux-cfrun
/usr/sbin/i386-redhat-linux-cfservd
/usr/sbin/i386-redhat-linux-vicf

The version of cfengine is 2.0.1 but an odd thing is that when I modify the spec file to build version 1.6.3 the prefixes don't appear in the build rpm.

# rpm -qpl ../RPMS/i386/cfengine-1.6.3-1.i386.rpm
/usr/sbin/cfcron
/usr/sbin/cfd
/usr/sbin/cfdoc
/usr/sbin/cfengine
/usr/sbin/cfkey
/usr/sbin/cfmail
/usr/sbin/cfmailfilter
/usr/sbin/cfrun
/usr/sbin/cfwrap
/usr/sbin/vicf

My spec files is below.
Can anyone tell me how to get rid of the prefix on these files?

Thank you,
Steven Kroeger.

# cat cfengine.spec
Summary: cfengine helps set up and maintain BSD and System-5-like systems.
Name: cfengine
Version: 2.0.1
Release: 1
#Epoch: 1
License: GPL
Group: Admin
Source0: cfengine-2.0.1.tar.gz
#Source1:
#Patch0:
#Patch1:
URL: ftp://ftp.gnu.org/gnu/cfengine/cfengine-2.0.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
Requires: /sbin/ldconfig
REquires: openssl
Requires: db3

%description
Cfengine is a tool for setting up and maintaining BSD and System-5-like
operating systems optionally attached to a TCP/IP network.  You can think
of cfengine as a very high level language---much higher level than Perl
or shell: a single statement can result in many hundreds of operations
being performed on multiple hosts. Cfengine is good at performing a lot
of common system administration tasks, and allows you to build on its
strengths with your own scripts. You can also use it as a netwide
front-end for cron.  Once you have set up cfengine, you'll be
free to use your time being like a human being, instead of playing R2-D2
with the system.

%prep
%setup -q

%build
%configure i386-redhat-linux --prefix=/usr --with-berkeleydb=/lib
make

%install
rm -rf %{buildroot}
%makeinstall

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
/usr/sbin/*
/usr/doc/*
/usr/share/*

#%doc AUTHORS COPYING ChangeLog NEWS README TODO
#%{_bindir}/*
#%{_libdir}/*.so.*
#%{_datadir}/%{name}
#%{_mandir}/man8/*

#%files devel
#%defattr(-, root, root)
#%doc HACKING
#%{_libdir}/*.a
#%{_libdir}/*.la
#%{_libdir}/*.so
#%{_mandir}/man3/*

%changelog
* Fri May 10 2002 Steven Kroeger
- Initial RPM release.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []