See : https://fedorahosted.org/fpc/ticket/353 So, the %perl_default_filter macro definition could be simplyfy -%global __provides_exclude_from %{perl_vendorarch}/auto/.*\\\\.so$|%{perl_archlib}/.*\\\\.so$|%{_docdir} +%global __provides_exclude_from %{_docdir} This change will be reflected in https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Perl
To be clear "the %perl_default_filter macro definition could be simplify in Fedora >= 20"
We will see. I will do some tests and in case of success, I will implement it in F21.
So it seems to work. However I would like to sanity the filters too: To anchor the expressions and to append them instead of redefining: -%global __provides_exclude_from %{_docdir} -%global __requires_exclude_from %{_docdir} -%global __provides_exclude perl\\\\(VMS|perl\\\\(Win32|perl\\\\(DB\\\\)|perl\\\\(UNIVERSAL\\\\) -%global __requires_exclude perl\\\\(VMS|perl\\\\(Win32 +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir} +%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir} +%global __provides_exclude {?__provides_exclude:%__provides_exclude|}^perl\\\\(VMS|perl\\\\(Win32|perl\\\\(DB\\\\)|^perl\\\\(UNIVERSAL\\\\) +%global __requires_exclude {?__requires_exclude:%__requires_exclude|}^perl\\\\(VMS|^perl\\\\(Win32
(In reply to Petr Pisar from comment #3) > So it seems to work. > > However I would like to sanity the filters too: To anchor the expressions > and to append them instead of redefining: > Correct new values would be: %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir} %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\\\(VMS|^perl\\\\(Win32|^perl\\\\(DB\\\\)|^perl\\\\(UNIVERSAL\\\\) %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\\\(VMS|^perl\\\\(Win32
(In reply to Petr Pisar from comment #3) > However I would like to sanity the filters too: To anchor the expressions > and to append them instead of redefining: > And this works too. I'm going to push this version. I will create automated tests and package them for Fedora to have a canary.