SOURCES: rpm-build-macros-pydebuginfo.patch (NEW) - initial proof

glen glen at pld-linux.org
Tue Aug 26 15:50:31 CEST 2008


Author: glen                         Date: Tue Aug 26 13:50:31 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- initial proof

---- Files affected:
SOURCES:
   rpm-build-macros-pydebuginfo.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-build-macros-pydebuginfo.patch
diff -u /dev/null SOURCES/rpm-build-macros-pydebuginfo.patch:1.1
--- /dev/null	Tue Aug 26 15:50:31 2008
+++ SOURCES/rpm-build-macros-pydebuginfo.patch	Tue Aug 26 15:50:25 2008
@@ -0,0 +1,18 @@
+--- ./rpm.macros~	2008-08-12 20:54:19.000000000 +0300
++++ ./rpm.macros	2008-08-18 22:58:42.471609996 +0300
+@@ -764,9 +764,14 @@
+ # remove python sources, so that check-files won't complain
+ # (idea by glen <at> pld-linux <dot> org)
+ %py_postclean() \
++%{expand:%%define __sip_%{?_enable_debug_packages} 1} \
++%{?__sip_1:> debugfiles-add.list;}\
+ 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;\
++	[ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' \\\
++	%{?__sip_1:>> debugfiles-add.list;}\
++	%{!?__sip_1:-print0 | xargs -0r %{__rm} -f;}\
+ done \
++%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
+ %{nil}
+ 
+ # depmod macro
================================================================


More information about the pld-cvs-commit mailing list