X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm.platform;h=e49c24a7a905d10bd3f209ec1e89b9701ddee008;hb=ca5b9ca08f8890cbf5d818617a16b61cf547bb7c;hp=b3c9dde732ccd17fe0b38fd4ab4de7e17fe3bf32;hpb=dec701fe79da5ed97a1cb210a62e613757171d03;p=packages%2Frpm.git diff --git a/rpm.platform b/rpm.platform index b3c9dde..e49c24a 100644 --- a/rpm.platform +++ b/rpm.platform @@ -1,4 +1,14 @@ # PLD rpm macros + +%__id /bin/id +%__id_u %{__id} -u +%__chown_Rhf %{__chown} -Rhf +%__chgrp_Rhf %{__chgrp} -Rhf + +%_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root:root +%_fixgroup true +%_fixperms %{__chmod} -Rf -Rf a+rX,u+w,g-w,o-w + %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin @@ -18,8 +28,11 @@ %__os_install_post \ %{__spec_install_post_strip}\ %{__spec_install_post_chrpath}\ +%{__spec_install_post_check_so}\ %{__spec_install_post_compress_docs}\ %{__spec_install_post_compress_modules}\ +%{__spec_install_post_py_hardlink}\ +%{__spec_install_post_perl_clean}\ %{__arch_install_post}\ %{nil}