Helper variables like %{rhel} on CentOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I'm trying to use helper variables like %{rhel} in a .SPEC file on 
CentOS (as they are defined in RHEL and Fedora [1]), but it seems they 
are not available.

Is there any way to detect automatically CentOS release from a .SPEC 
file in a RPM build process?

As a workaround, I use this hack:

     %if 0%{?rhel} >= 5
         (..)
     %endif

And when calling rpmbuild I use a conditional build, like:

     $ rpmbuild -ba --clean --define "rhel 5"

Regards,

[1] http://goo.gl/dkGUg

-- 
Santi Saez
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux