From cb167f72af27aa8d3bc412351ce6590978135d1c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 3 Feb 2025 10:29:26 +0000 Subject: automatic import of openEuler-rpm-config --- macros.perl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'macros.perl') diff --git a/macros.perl b/macros.perl index 9c1fd0c..1e45bcb 100644 --- a/macros.perl +++ b/macros.perl @@ -31,7 +31,7 @@ export PERL_MM_USE_DEFAULT=1 %perl_default_filter_revision 3 # By default, for perl packages we want to filter all files in _docdir from -# req/prov scanning. +# req/prov scanning, except META.json/yml for scanning requirements. # Filtering out any provides caused by private libs in vendorarch/archlib # (vendor/core) is done by rpmbuild since Fedora 20 # . @@ -40,8 +40,9 @@ export PERL_MM_USE_DEFAULT=1 # "%{?perl_default_filter}", before any %description block. %perl_default_filter %{expand: \ +%global __global_requires_exclude_from %{nil} %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir} -%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir} +%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir}/.*\\\\(?=META.json|\\\\(MY|\\\\)META.yml\\\\)$ %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 } -- cgit v1.2.3