From a7406cbd0665df343408316736360b4ede5bcda4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 1 Oct 2011 17:07:58 +0200 Subject: [PATCH] Add cleanup macro for perl modules. --- macros/build.macro | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/macros/build.macro b/macros/build.macro index 2d41de82a..98e097695 100644 --- a/macros/build.macro +++ b/macros/build.macro @@ -51,6 +51,15 @@ def MACRO_PYTHON_COMPILE # XXX TODO end +MACRO_PERL_CLEANUP + # Remove perllocal.pod. + rm -f %{BUILDROOT}/usr/lib/perl*/perllocal.pod + + # Remove all .packlist files. + find %{BUILDROOT}/usr/{lib,share}/perl* -name ".packlist" 2>/dev/null | \ + xargs --no-run-if-empty rm -f +end + # Pre-defined build scripts. build # These variables are used if you have to add some targets @@ -125,6 +134,7 @@ build %{MACRO_INSTALL_FILES} %{MACRO_PYTHON_COMPILE} + %{MACRO_PERL_CLEANUP} %{install_post} -- 2.39.5