Test for redhatness (when building RPM's)

Thomas Cameron thomas.cameron at camerontech.com
Fri Aug 19 21:37:46 UTC 2005


On Fri, 2005-08-19 at 11:58 -0600, Philip Prindeville wrote:
> I'm trying to tweak a package so that it autodetects when it's being
> built under Redhat/Fedora (et al) and does the right thing.
> 
> Is there a simple and foolproof test for this?

Have it depend on the redhat-release RPM.  Using the existance or
contents of /etc/redhat-release is not recommended because it can easily
be removed, renamed, or changed.

Thomas




More information about the fedora-list mailing list