From e4d71427ed5ce82c874aa33a705f2ca266e295ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 17 Feb 2006 15:20:03 +0000 Subject: [PATCH] - remove .packlist and perllocal.pod for perl packages Changed files: rpm.macros -> 1.284 rpm.platform -> 1.7 --- rpm.macros | 6 ++++++ rpm.platform | 1 + 2 files changed, 7 insertions(+) diff --git a/rpm.macros b/rpm.macros index 1112809..3a74608 100644 --- a/rpm.macros +++ b/rpm.macros @@ -326,6 +326,12 @@ fi; } \ fi; \ } } +# Remove common Perl files we don't package +%__spec_install_post_perl_clean {\ +%{!?no_install_post_perl_clean: \ +%{?pdir:rm -f $RPM_BUILD_ROOT{%{perl_archlib}/perllocal.pod,%{perl_vendorarch}/auto/%{pdir}%{?pnam:/%(echo %{pnam} | tr - /)}/.packlist}} \ +} } + #----------------------------------------------------------------- # Update GConf2 schemas # diff --git a/rpm.platform b/rpm.platform index dd5d09c..36d574a 100644 --- a/rpm.platform +++ b/rpm.platform @@ -31,6 +31,7 @@ %{__spec_install_post_compress_docs}\ %{__spec_install_post_compress_modules}\ %{__spec_install_post_py_hardlink}\ +%{__spec_install_post_perl_clean}\ %{__arch_install_post}\ %{nil} -- 2.43.0