Description of problem: rebuilding for el5 fails Version-Release number of selected component (if applicable): 2.12-16 How reproducible: 100% Steps to Reproduce: 1. get srpm from epel6 sources 2. rpmbuild-md5 --rebuild for el5 3. mock and brew builds look for package tcp_wrappers-devel Actual results: DEBUG util.py:256: 0:openssl-devel-0.9.8e-12.el5_5.7.x86_64 DEBUG util.py:256: No Package Found for tcp_wrappers-devel Expected results: should look for tcp_wrappers not tcp_wrappers-devel Additional info: %if 0%{?el4}%{?el5} BuildRequires: tcp_wrappers %else BuildRequires: tcp_wrappers-devel %endif I think it should be %if 0%{?.el4}%{?.el5} though that didn't work for me ....
No, you should manually enable the following macro ( %{el5} somewhere where it could be found by rpm-build. Some package in the default EPEL buildroot provides such macro (among others): http://koji.fedoraproject.org/koji/taskinfo?taskID=3370484