SOURCES: rpm.macros - remove .packlist and perllocal.pod for perl ...

glen glen at pld-linux.org
Fri Feb 17 16:15:14 CET 2006


Author: glen                         Date: Fri Feb 17 15:15:14 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- remove .packlist and perllocal.pod for perl packages

---- Files affected:
SOURCES:
   rpm.macros (1.283 -> 1.284) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.283 SOURCES/rpm.macros:1.284
--- SOURCES/rpm.macros:1.283	Sun Feb  5 17:56:18 2006
+++ SOURCES/rpm.macros	Fri Feb 17 16:15:08 2006
@@ -326,6 +326,12 @@
 	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
 #
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm.macros?r1=1.283&r2=1.284&f=u



More information about the pld-cvs-commit mailing list