[Fedora-packaging] disttag

Tom 'spot' Callaway tcallawa at redhat.com
Fri Feb 25 22:23:29 UTC 2005

On Fri, 2005-02-25 at 17:19 -0500, Bill Nottingham wrote:
>Tom 'spot' Callaway (tcallawa at redhat.com) said: 
>> On Fri, 2005-02-25 at 21:26 +0200, Ville Skyttä wrote:
>> >On Fri, 2005-02-25 at 19:43 +0100, Dag Wieers wrote:
>> >
>> >> You can use:
>> >> 
>> >> 	rpm -qf /etc/redhat-release --qf '%{RPMTAG_VERSION}\n'
>> >
>> >...or just %{VERSION} (in uppercase).
>> Ok. New macros:
>So, every package BuildRequires: redhat-release?
>Frankly, I think it's somewhat gross. Not that I have better
>solutions off of the top of my head.

No properly installed system should be missing a package which Provides:
redhat-release. This has been true for at least the last 5 years.

If our buildroots don't have it, then thats a serious failure (its in
System Environment/Base).

And I don't disagree with your "gross" assessment, but its the least
evil solution I could find.

Tom "spot" Callaway: Red Hat Sales Engineer || GPG Fingerprint: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!

More information about the Fedora-packaging mailing list