Sunday, February 11, 2007

creating cpan rpm packages

Since RedHat does deliver a very small subset of CPAN modules I made lots of RPM packages.
Sometimes the rpm addons for perl based packages which find all necessary dependencies are broken.

This is specially for test scripts that use the eval function of perl to find wether any specific package is necessary on a platform.
The find-provides and find-requires files do not honor the findings of eval.

To disable automatic requirement checking add the following lines to your spec file:

%define _use_internal_dependency_generator 0
%define __find_provides /usr/lib/rpm/redhat/find-provides.sh
%define __find_requires %{nil}

But:

do not forget to set requires and provides manually!!

No comments:

Post a Comment