summaryrefslogtreecommitdiff
path: root/brp-clean-perl-files
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-26 03:53:26 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-26 03:53:26 +0000
commit86d9b1ad9616e0e4057bb6b7105747185fd85474 (patch)
tree2b7e5f3bb0f5d66a3fd76871d5dc1aae821d64d2 /brp-clean-perl-files
parent82da4aaf5636a13119dcd387c7dafaaf47cc9c28 (diff)
automatic import of openEuler-rpm-config
Diffstat (limited to 'brp-clean-perl-files')
-rw-r--r--brp-clean-perl-files5
1 files changed, 5 insertions, 0 deletions
diff --git a/brp-clean-perl-files b/brp-clean-perl-files
new file mode 100644
index 0000000..92c7c7d
--- /dev/null
+++ b/brp-clean-perl-files
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+find $RPM_BUILD_ROOT/usr/{lib,lib64,share}/perl5 -type f -name ".packlist" -delete
+find $RPM_BUILD_ROOT/usr/{lib,lib64,share}/perl5 -type f -name "*.bs" -size 0 -delete
+find $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod -delete