This looks closely related to a question of my own that I just posted. I think that it *may* be possible to define your distro in your ~/.rpmmacros, then use the following. Whether this is supported or not is not documented in any of the 'manuals'. Someone else might be able to give you more authoritative answer. %if %dist=="fc5" Name: xorg-X11-devel %else ... %endif Cheers JP Devrim GUNDUZ wrote: > > Hi, > > I'm currently doing an RPM packaging and want to use same spec file > for all distros. However, sometimes filenames may change between > releases. For example, xorg-X11-devel (FC4) became libX11-devel at > FC5. Is there an easy way to merge all these buildrequires(or other > requirements) in one spec file, like "if distro=fc5, then > buildrequires is this..." > > Regards, > -- > Devrim GUNDUZ > devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr > http://www.gunduz.org _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list