Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
python(abi) = 2.5
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?

share|improve this question
up vote 1 down vote accepted

You can fix it up afterwards with rpmrebuild:

rpmrebuild --package --edit-requires ZSI-2.1_a1-py25.noarch.rpm

share|improve this answer

You can turn off automatic dependency processing in the .spec with:

AutoReqProv: no

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .