I am making a package for RHEL7. When I try to install the package, I get
# yum localinstall mypackage-0.0-1.el7.rpm
(...)
--> Running transaction check
---> Package webmin-GPI-init.noarch 0:0.0-1.el7 will be installed
--> Processing Dependency: perl(.::guardian-lib.pl) for package: webmin-GPI-init-0.0-1.el7.noarch
--> Processing Dependency: perl(.::hostconfig-lib.pl) for package: webmin-GPI-init-0.0-1.el7.noarch
--> Processing Dependency: perl(.::init-lib.pl) for package: webmin-GPI-init-0.0-1.el7.noarch
I have in mind that willing to get a perl module named .::init-lib.pl is not desirable. In the code, we can find something like
#! /usr/bin/perl
require './init-lib.pl';
require './guardian-lib.pl';
require './hostconfig-lib.pl';
I have managed to remove the win32 with the following option in my .spec file :
%{?perl_default_filter}
%global __requires_exclude perl\\(VMS|perl\\(Win32|perl\\(\\.
How can I get rid of the dependencies regarding the perl packages that start by a dot?
I have browsed the Internet and found https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering and other mailing lists I have not understood.