summaryrefslogtreecommitdiff
path: root/macros.perl
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-03 10:29:26 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-03 10:29:26 +0000
commitcb167f72af27aa8d3bc412351ce6590978135d1c (patch)
treedbc8f9c9a4fd475a3bce8a2107650c5496a5a0cd /macros.perl
parent9d624aa4e88e5eb4b0df90060dcd40e518a7458b (diff)
automatic import of openEuler-rpm-config
Diffstat (limited to 'macros.perl')
-rw-r--r--macros.perl5
1 files changed, 3 insertions, 2 deletions
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
# <https://fedorahosted.org/fpc/ticket/353>.
@@ -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
}