[packages/rpm-build-macros] add version info for py.postclean (added in f12c2314)
glen
glen at pld-linux.org
Mon May 26 09:45:50 CEST 2014
commit 6d2f17f328c62e261fa77e164cebcb53fb3c935c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon May 26 10:45:17 2014 +0300
add version info for py.postclean (added in f12c2314)
rpm.macros | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/rpm.macros b/rpm.macros
index f677799..864001c 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -1146,6 +1146,8 @@ fi; \
# -x - comma separated of file basenames to preserve (rpmbuild(macros) >= 1.658)
# ARGS - extra directories to clean for .py sources
#
+# BuildRequires: rpmbuild(macros) >= 1.189
+#
%py_postclean(x:) \
for d in %{py_sitescriptdir} %{py_sitedir} %*; do \
[ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -print0 %{-x:| grep -ZzvE '/(%(echo '%{-x*}' | tr ',' '|'))$'} | xargs -0r -l512 rm;\
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/6d2f17f328c62e261fa77e164cebcb53fb3c935c
More information about the pld-cvs-commit
mailing list