Defines for detecting build OS?

devzero2000 pinto.elia at gmail.com
Tue Mar 3 17:05:26 UTC 2009


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

>
> On 03-Mar-2009, at 11:41, devzero2000 wrote:
>
>  http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
>>
>
> That page references %centos_version, but that doesn't appear to be defined
> on the CentOS 5 box I've got here.  Nothing in /etc/rpm or /usr/lib/rpm
> defines it, and a quick test in a spec file suggests that it isn't set.
>
>
There are macros defined by the "Build Service": CentoOS or Fedora (or
Debian) don't know it. But i think it is not a problem to put an

%centos_version 501

in your preferite rpm macros file (for example ~/.rpmmacros) .

Regards








>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090303/bb2056c2/attachment.htm>


More information about the Rpm-list mailing list