Description of problem: Currently it is required to use rpms from http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ to build RHEL rpms, because macros like %rhel are not defined otherwise. In Fedora, these macros have been moved into fedora-release: http://lists.fedoraproject.org/pipermail/devel/2007-June/104640.html 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): redhat-release-5Client-5.4.0.3 This is needed to be added to the %install and %files section to fix this: %install mkdir -p $RPM_BUILD_ROOT/etc/rpm/ VERSION%{base_release_version} 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 %files %defattr(-,root,root) /etc/rpm/macros.disttag /etc/rpm/macros.checkbuild
Till, 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 ***