Description of problem:
Currently it is required to use rpms from
to build RHEL rpms, because macros like %rhel are not defined otherwise.
In Fedora, these macros have been moved into fedora-release:
Please either include these macros in redhat-release for RHEL 5 or state that you won't do this, both would help me a lot.
Version-Release number of selected component (if applicable):
This is needed to be added to the %install and %files section to fix this:
mkdir -p $RPM_BUILD_ROOT/etc/rpm/
printf %s%b "%" "rhel $VERSION\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag
printf %s%b "%" "dist .el$VERSION\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag
printf %s%b "%" "el$VERSION 1\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag
printf %s%b "%" "__arch_install_post /usr/lib/rpm/check-buildroot\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.checkbuild
we already decided not to add macros to redhat-release in RHEL5.
I recommend you to keep using buildsys-macros.
Closing as duplicate of bz#481023.
*** This bug has been marked as a duplicate of bug 481023 ***