SOURCES: rpm.macros - in infodir compress only *.info*, omitting i...

qboosh qboosh at pld-linux.org
Sun Jun 3 19:37:42 CEST 2007


Author: qboosh                       Date: Sun Jun  3 17:37:42 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- in infodir compress only *.info*, omitting images

---- Files affected:
SOURCES:
   rpm.macros (1.382 -> 1.383) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.382 SOURCES/rpm.macros:1.383
--- SOURCES/rpm.macros:1.382	Mon Apr  9 18:08:12 2007
+++ SOURCES/rpm.macros	Sun Jun  3 19:37:37 2007
@@ -335,14 +335,20 @@
 #%no_install_post_compress_docs	1
 %__spec_install_post_compress_docs { \
 %{!?no_install_post_compress_docs:__spec_install_post_compress_docs() { \
-	for i in /usr/share/man /usr/X11R6/man /usr/share/info; do \
+	for i in /usr/share/man /usr/X11R6/man; do \
 		if [ -d "$RPM_BUILD_ROOT$i" ]; then \
-			echo "Compress $(basename $i) pages: $i"; \
+			echo "Compress man pages: $i"; \
 			find "$RPM_BUILD_ROOT$i" -name '*.bz2' -print | xargs -r %{__bzip2} -df; \
 			find "$RPM_BUILD_ROOT$i" -name '*.gz' -print | xargs -r %{__gzip} -dnf; \
 			find "$RPM_BUILD_ROOT$i" -type f -size +%{_min_compress_bytes}c -print | xargs -r %{__gzip} -9nf; \
 		fi; \
 	done; \
+	if [ -d "$RPM_BUILD_ROOT$i" ]; then \
+		echo "Compress info pages: $i"; \
+		find "$RPM_BUILD_ROOT$i" -name '*.bz2' -print | xargs -r %{__bzip2} -df; \
+		find "$RPM_BUILD_ROOT$i" -name '*.gz' -print | xargs -r %{__gzip} -dnf; \
+		find "$RPM_BUILD_ROOT$i" -name '*.info*' -type f -size +%{_min_compress_bytes}c -print | xargs -r %{__gzip} -9nf; \
+	fi; \
 }; __spec_install_post_compress_docs } }
 
 #-----------------------------------------------------------------
================================================================

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



More information about the pld-cvs-commit mailing list