[packages/rpm] - proper use of ifnarch macro inside os_install_post

baggins baggins at pld-linux.org
Wed Sep 5 11:51:09 CEST 2012


commit 2fc2b0f567554567078a1d8721477fb8c26b8f72
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Sep 5 11:50:51 2012 +0200

    - proper use of ifnarch macro inside os_install_post

 macros.pld.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/macros.pld.in b/macros.pld.in
index 2c69f1d..8cc429c 100644
--- a/macros.pld.in
+++ b/macros.pld.in
@@ -47,12 +47,12 @@
 %__compress_doc		@prefix@/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
 
 %__os_install_post \
-%ifnarch noarch\
+%{?ifnarch noarch:\
 %{__spec_install_post_strip}\
 %{__spec_install_post_chrpath}\
 %{__spec_install_post_compress_modules}\
-%endif\
 %{__spec_install_post_check_so}\
+%endif}\
 %{__spec_install_post_check_tmpfiles}\
 %{__spec_install_post_compress_docs}\
 %{__spec_install_post_py_hardlink}\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/2fc2b0f567554567078a1d8721477fb8c26b8f72



More information about the pld-cvs-commit mailing list