That would be way too easy to get around the dependecy hell. I would go for some project like cpan-dependecy . Somebody already did the work for you.

Here is how it works:

1) How to install Following CPAN modules are required. CPANPLUS

RPM::Specfile 2) How to use To create a rpm of Linux::Smaps bin/cpan-dependency.pl --conf=config/conf.yml Linux::Smaps 3) conf.yml filter_requires .. Remove specified requires from the package.

build_skip .. Skip to build the package.

build_requires .. Build&Install specified packages before building the package.

requires .. Add specified packages to the package's dependency.

You need to adjust conf.yml to satisfy your dependecies.

To build your project you would do the following: