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

RE: [cobalt-developers] RPM tools



> -----Original Message-----
> From: Tim Hockin [mailto:thockin@xxxxxxx]
>
> Mat Schaffer wrote:
> > does anyone know of any good linux based tools out there
> for creating
> > rpms from a source tarball?  rpm does it, but I figure there's just
> > gotta be something better out there.  At least in alpha stages.
>
> nope - you have to tell RPM what you want in teh package -
> how you want
> it installed, what the description etc is.  You have to build a .spec
> file.

Ok, well since that's the case, maybe you can help me with the spec
file, cause the documentation at rpm.org is pretty bad.
The big problem I'm having here is getting rpm to properly look for the
files.
First off, I'm building an rpm for LPRng on the Qube3, in hopes that it
will properly install on other Qube3s.
rpm insists on looking for all the files in $RPM_BUILD_ROOT.  So I
figured, "well, I'll just use --prefix=$RPM_BUILD_ROOT" during the
./configure, and that should help it.  And for the most part it did.
BUT:
LPRng's "make install" places a script into /etc/rc.d/init.d and links
have to be created to allow for proper startup and shutdown.  These go
in /etc... regardless of --prefix.
Is there any way I can tell rpm to look somewhere other than buildroot
for the files?  Or do I have to do the only answer I could think of,
which is to build all the links and the script from within the %post
section of the spec file.
Or, can I not have a %clean section, and copy /etc... into
$RPM_BUILD_ROOT.
And ALSO.  Ok, so I ran "rpm -ba <spec>" where exactally IS the rpm.
-Mat