It seems like the RPM spec file macros %{?centos_version} and %{?rhel_version} are not defined in CentOS 7. Is it expected, or am I doing a mistake?
If this is normal, is there a way to discriminate CentOS 7 in a .spec file?
Thanks,
Romain
[SOLVED]RPM macros %{?centos_version} and %{rhel_version}
[SOLVED]RPM macros %{?centos_version} and %{rhel_version}
Last edited by rdeterre on 2014/10/10 16:09:40, edited 1 time in total.
Re: RPM macros %{?centos_version} and %{rhel_version}
I don't see either in el6 or in el7. If you look in /etc/rpm/macros.dist then both have %centos_ver, %centos, %rhel, and %dist defined.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: RPM macros %{?centos_version} and %{rhel_version}
Thank you, it's great to know where those macros are defined.
Romain
Romain