]> git.pld-linux.org Git - packages/rpm-build-macros.git/blob - pydebuginfo.patch
autotag: make git complatible (however needs to be in package dir)
[packages/rpm-build-macros.git] / pydebuginfo.patch
1 --- ./rpm.macros~       2008-08-12 20:54:19.000000000 +0300
2 +++ ./rpm.macros        2008-08-18 22:58:42.471609996 +0300
3 @@ -764,9 +764,14 @@
4  # remove python sources, so that check-files won't complain
5  # (idea by glen <at> pld-linux <dot> org)
6  %py_postclean() \
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;}\
14  done \
15 +%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
16  %{nil}
17  
18  # depmod macro
This page took 0.092788 seconds and 3 git commands to generate.