I have a spec file in which based on the SLES version, i need to change the 'Requires: ' tag as below
#if suse is greated than SLES 11 sp4
%if %0{?suse_version} > 1140
Requires: genisoimage
%else
Requires: mkisofs
%endif
I am building this rpm file on a SLES 10 machine. After generating RPM, irrespective of the OS, if i run,
rpm -qpR mypkg.rpm
I get mkisofs only as a required package. In none if the cases (even on SLES 12), I am getting genisoimage as dependent package.
What might be missing and how can this be fixed.