Description of problem:
When an attempt is made to build a package containing python code, rpm steps in and runs a script called /usr/lib/rpm/brp-python-bytecompile.
rpmbuild then tries to add a dependency on python in the form of a hard dependency on /usr/local/bin/python.
Any attempt to install the resultant rpm fails, as /usr/local/bin/python does not exist.
(The package that contains python code is a java application running python through jython, and so no dependency on python is necessary or desired).
Version-Release number of selected component (if applicable):
rpm-build-4.4.2.3-9.el5
How reproducible:
- Create a spec file for a package containing python code, but do not depend on python.
- Build the package and try to install it:
error: Failed dependencies: /usr/local/bin/python is needed by package-0.0.0.noarch
Description of problem:
When an attempt is made to build a package containing python code, rpm steps in and runs a script called /usr/lib/ rpm/brp- python- bytecompile.
rpmbuild then tries to add a dependency on python in the form of a hard dependency on /usr/local/ bin/python.
Any attempt to install the resultant rpm fails, as /usr/local/ bin/python does not exist.
(The package that contains python code is a java application running python through jython, and so no dependency on python is necessary or desired).
Version-Release number of selected component (if applicable):
rpm-build- 4.4.2.3- 9.el5
How reproducible:
- Create a spec file for a package containing python code, but do not depend on python.
- Build the package and try to install it:
error: Failed dependencies: bin/python is needed by package- 0.0.0.noarch
/usr/local/