bcond_with on RHEL4 missing?

From: Patrice Dumas <pertusus free fr>

To: EPEL development disccusion <epel-devel-list redhat com>

Subject: bcond_with on RHEL4 missing?

Date: Wed, 25 Jul 2007 13:46:28 +0200

Hello,
There was discussion about bcond_with not being in RHEL/CENTOS4 and it
seems that it is working in the builders, but what should be done to
be able to make it work on CENTOS/RHEL4? Otherwise it isn't possible to
rebuild a package with a bcond_with on the distro it is supposed to be
installed in.
I tried a construct like:
%if 0%{?rhel}
%if "%rhel" <= "4"
%define bcond_with %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
%endif
%if "%rhel" > "4"
%bcond_without gfortran
%else
%bcond_with gfortran
%endif
%endif
but it fails.
--
Pat