That would indeed be an interesting addition!

I can see a few problems already. Different dependency names would be a
problem - ie on gentoo a dependency might be named foo, on redhat it
might be named foo2, on SuSE it might be named libfoo and on Mandrivel
it might be named libfoo-2. In other words spec files may be different
on different rpm distros and may use different namings to gentoo. SuSE
installs kde to /opt, others don't etc etc .

So you not only have to create a spec file, but you have to create one
for each distro, and you have to have a lot of knowledge about how
$DISTRO works.

Another strategy for you is to find a src.rpm for the package and adapt
its .spec file. I found an old (0.2) src rpm for netselect (from SuSE
7.3!) via google. If I cared enough I guess I could adapt it's spec file
to another distro. Actually I stumbled on a part of the Mandrake site
once that had just the spec files for all their packages - that might be
worth a look given RH and MD's common (although now distant) origins.

One of the things I like about gentoo is the ease of writing a .ebuild
file as opposed to a spec file or whatever the .deb equivalent is. 


On Mon, 12 Sep 2005 14:54:55 -0700 (PDT)
Bryan Whitehead wrote:

> 
> Does anyone know how to do this? There are some simple pachakes (like 
> netselect) that I'd love to use at work - but don't want to go thru the 
> hastle of making a rpm .spec file.
> 
> "ebuild <file> rpm" only poops out a binary RPM... and using an updated 
> gentoo system doesn't move over well with old versions of redhat...
> 
> -- 
> Bryan Whitehead
> Email:[EMAIL PROTECTED]
> -- 
> [email protected] mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
[email protected] mailing list

Reply via email to