Katello/katello — pull request #70 by lzap (2012-05-03 08:29:41+00:00)
Title: 818261 - consumer rpm was not installable on RHEL5

https://bugzilla.redhat.com/show_bug.cgi?id=818261

When configuring katello (katello-configure) on a RHEL system with the
redhat-rpm-config package installed, katello will create a
candlepin-cert-consumer RPM that is not installable on RHEL5 systems.

To avoid this bug, run be sure that redhat-rpm-config is *not* installed when
running 'katello-configure'

After it happens, to work around this problem, run the following commands to
rebuild a RHEL5 installable candlepin-cert-consumer RPM.

> # cd /var/www/html/pub
> # rpmbuild --rebuild --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" --define "_source_payload nil" --define "_binary_payload nil" candlepin-cert-consumer-*.src.rpm
> # cp /root/rpmbuild/RPMS/noarch/candlepin-cert-consumer-*.noarch.rpm .

To prevent this problem from happening in the future, the gen-rpm.sh script
(provided by katello-cert-tools) will need to use the proper rpmbuild
parameters.