From: Michael Tremer Date: Sat, 1 Oct 2011 15:07:58 +0000 (+0200) Subject: Add cleanup macro for perl modules. X-Git-Tag: 0.9.10~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7406cbd0665df343408316736360b4ede5bcda4;p=pakfire.git Add cleanup macro for perl modules. --- diff --git a/macros/build.macro b/macros/build.macro index 2d41de82..98e09769 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}