How do I prevent rpmbuild form injecting requirements into RPM package?

Posted by Basilevs on Super User See other posts from Super User or by Basilevs
Published on 2010-02-15T13:25:08Z Indexed on 2010/04/01 9:03 UTC
Read the original article Hit count: 290

Filed under:
|

I'm creating an RPM package from native Python 2.5 one. Out corporate policy is to use python2.4 by default, so I'm adding a string

Requires: python25

to a .spec file. When I look at created RPM file though, i see the following dependencies:

rpm -qR -p ZSI-2.1_a1-py25.noarch.rpm
/usr/bin/python2.5
python(abi) = 2.5
python25  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Dependency added by me is present, but other dependencies are also here. I'm unable to provide python(abi) = 2.5 dependency, because of dumb python25 package generated by our IT department where provides tag is incorrect.

How do I remove automatically added dependencies from generated RPM?

© Super User or respective owner

Related posts about rpmbuild

Related posts about python