X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=rpm.macros;h=b0ebbcb2c3b2e6c5d4cb7cf4c5081c465dad513d;hb=0f82e2800e32c075e764d52daa2c08441ae45f48;hp=1ec9bcc683e52ba6124224f9251ab95949ccfc80;hpb=637b2203d05c271fb6613b70dc24d2d327bf0277;p=packages%2Frpm-build-macros.git diff --git a/rpm.macros b/rpm.macros index 1ec9bcc..b0ebbcb 100644 --- a/rpm.macros +++ b/rpm.macros @@ -508,7 +508,7 @@ done \ # remove python sources, so that check-files won't complain # (idea by glen pld-linux org) %py_postclean() \ -for d in %{py_sitescriptdir} %{py_sitedir}; do \ +for d in %{py_sitescriptdir} %{py_sitedir} %*; do \ [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -print0 | xargs -0r -l512 rm;\ done \ %{nil}