]> git.ipfire.org Git - pakfire.git/commitdiff
Add cleanup macro for perl modules.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2011 15:07:58 +0000 (17:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2011 15:21:21 +0000 (17:21 +0200)
macros/build.macro

index 2d41de82a42a10669dc09bac8e75089b888cf583..98e0976952d3cfb4abeb21686ae9e890cd424a30 100644 (file)
@@ -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}