From 026ed59b36d63bf40b16e0d9f80368d0e7d134db Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 3 Jun 2007 17:37:37 +0000 Subject: [PATCH] - in infodir compress only *.info*, omitting images Changed files: rpm.macros -> 1.383 --- rpm.macros | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rpm.macros b/rpm.macros index aa29827..938da49 100644 --- a/rpm.macros +++ b/rpm.macros @@ -335,14 +335,20 @@ unset DISPLAY ||:\ #%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 } } #----------------------------------------------------------------- -- 2.43.0