1 --- ./rpm.macros~ 2008-08-12 20:54:19.000000000 +0300
2 +++ ./rpm.macros 2008-08-18 22:58:42.471609996 +0300
4 # remove python sources, so that check-files won't complain
5 # (idea by glen <at> pld-linux <dot> org)
7 +%{expand:%%define __sip_%{?_enable_debug_packages} 1} \
8 +%{?__sip_1:> debugfiles-add.list;}\
9 for d in %{py_sitescriptdir} %{py_sitedir} %*; do \
10 - [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -print0 | xargs -0r -l512 rm;\
11 + [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' \\\
12 + %{?__sip_1:>> debugfiles-add.list;}\
13 + %{!?__sip_1:-print0 | xargs -0r %{__rm} -f;}\
15 +%{expand:%%undefine __sip_%{?_enable_debug_packages}}\