The Red Hat Software Collection perl516 contains only a part of the packages which are packed in RHEL or Fedora. It is not hard to add a new package to RHSCL. The following steps show how to convert a conventional spec file into a Software Collection spec file. The SCL spec file can be used in both the conventional package and the Software Collection.

perl-Pod-Perldoc is used for an example.

Before you start, spec2scl rpm has to be installed.

Run following command to convert rpm specfile to be SCL ready:

spec2scl perl-Pod-Perldoc.spec >perl-Pod-Perldoc.spec.scl

Then the list of dependencies has to be checked:
•Remove %{scl_prefix} from all non-perl BuildRequires/Requires.

•Use conditions if requirement is provided by different package on RHEL 6/7.

•Update getting of value for requirement perl(MODULE_COMPAT_).

•If there are any filters of provides or requires valid for rpm >= 4.9, then add also filter which work for rpm < 4.9 to be able build the rpm on RHEL 6.
perldoc looks up a piece of documentation in .pod format that is embedded
in the perl installation tree or in a perl script, and displays it via

NOTE: The macro %{perl_default_filter} works for both RHEL6/7

Increase release and update changelog.

In case that all build-requires and run-requires are already packed at RHSCL, you should be able to build new rpm.

Leave a Reply

Your email address will not be published. Required fields are marked *