I've searched but there no %{redhat} or %{centos} macro defined in my CentOS 5 test system. Could you please investigate what is the source of them in your environment?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
without this (%global el5 1) line:
ERROR: Berman need at least python 2.6 to work
I changed
%if 0%{?el5}
to
%if 0%{?redhat} == 5 || 0%{?centos} == 5
and it worked.
Maybe we should make such a change in the spec-file?
assigned_to: Marco Nenciarini
labels: --> rpm
You should install the buildsys-macros package to have it defined. However I'll add the explicit centos5 support in the next release.
I've searched but there no %{redhat} or %{centos} macro defined in my CentOS 5 test system. Could you please investigate what is the source of them in your environment?
Thanks for the reply. With buildsys-macros it worked. May add this in the "Requires" field (and redhat-rpm-config too)?
I found this solution in Google, now can not remember which site.
Last edit: lithium 2012-08-21
I think we can consider this ticket obsolete