summaryrefslogtreecommitdiff
path: root/brp-clean-perl-files
diff options
context:
space:
mode:
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