upstream rpm specs (was Re: FC2 initial schedule posted

Richard June rjune at bravegnuworld.com
Tue Dec 16 21:12:35 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 16 December 2003 13:35, Karl DeBisschop wrote:
> > it's a problem when upstream packages don't have a rpm .spec file
> > included.
> > Many applications not included in Fedora/RedHat don't have .spec files
> > in their releases. Also, rpms from rpm-based distros don't usually work
> > in Fedora as they have different file locations or different package
> > names for libraries.
> >
> > Maybe Eric's proposal will get more developers to build and maintain a
> > rpm spec file with their applications.
>
> This is as much an RFE for rpm, but as a developer and package
> maintainer, I find that I lack a good mechanism for packaging for
> different distributions.
>
> For instance, the same build dep may have a different name depending on
> whether it is a RedHat or Mandrake build. Personally, I slant towards
> RedHat, but I do try to be compatible with other RPM distros as well. I
> don't know if others are in the same position, but a good way to handle
> those issues would help. If there is a good method for this, I don't
> know it yet. And I don't feel like building some now hack for it into my
> spec files - there should be a standard, well documented approach.
I found this in GCompris, it's not great, but it's at least a way to do it.

%define canvaspackage   %(if rpm -q redhat-release &> /dev/null; then echo 
gdk-pixbuf-gnome; elif rpm -q fedora-release &>/dev/null; then echo 
gdk-pixbuf-gnome; elif rpm -q mandrake-release &> /dev/null; then echo 
gdk-pixbuf-gnomecanvas; else echo; fi)



- -- 
Public Key available Here:
http://www.bravegnuworld.com/~rjune/rjune.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/33VDoEoft/7GAvIRAvM7AJ44GC+HSoQzldCdKRH7P49igShbHwCeNy6D
IuxKrtK3Dj2Pt0CupfXa03A=
=YkyF
-----END PGP SIGNATURE-----





More information about the fedora-devel-list mailing list