Defines for detecting build OS?

devzero2000 pinto.elia at gmail.com
Tue Mar 3 16:41:12 UTC 2009


On Tue, Mar 3, 2009 at 3:45 PM, Matthew Pounsett <matt at conundrum.com> wrote:

>
> Hi there.  My apologies if this is something that's covered in
> documentation somewhere... but, due to the inability to google for
> punctuation, I'm finding it a bit hard to locate the appropriate docs.  I've
> done what I think is a reasonable amount of manual searching of
> documentation without coming up with anything.
>
> I often see spec files that reference defines which appear to be set by the
> OS... for example, phrases like "%if 0%{?rhel}".  Where are these defined?
>  I can't find references in the files in /usr/lib/rpm/ or /etc/rpm/, and
> can't see a list of these defines in the available documentation.
>
> Is there a relatively complete list of these defines somewhere?  Is there a
> config file in each RPM-using OS where a local one is defined?  Pointers
> would be quite welcome.
>

I am not sure it you are seeing spec file born for the "SUSE build system".
But if yes the list you are looking is described here for example:

http://en.opensuse.org/Build_Service/cross_distribution_package_how_to

hth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090303/fdd719f0/attachment.htm>


More information about the Rpm-list mailing list