From: Marc Fiuczynski Date: Wed, 24 Oct 2007 20:42:29 +0000 (+0000) Subject: On FC5 and above rpmbuil will run brp on all python files that X-Git-Tag: util-vserver-0.30.214-1~12 X-Git-Url: http://git.onelab.eu/?p=util-vserver.git;a=commitdiff_plain;h=5a433b3bf3569d3af02bd911d6fd64b0efffafd2 On FC5 and above rpmbuil will run brp on all python files that generates the .pyc and .pyo files. The spec file currently accounts for that and explicitly ignores them. However, brp is not run by FC4's version of rpmbuild and so we need to explicitly create them using "touch". This seems like the most harmless way to get things working rather than trying to build in conditionals that check whether we are on FC4. --- diff --git a/util-vserver.spec b/util-vserver.spec index c0ba3cf..a136ebf 100644 --- a/util-vserver.spec +++ b/util-vserver.spec @@ -222,6 +222,9 @@ contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat find "%{buildroot}" -name '*.py' | { while read FILE; do f="${FILE#%{buildroot}}" echo "${f}" + # need to touch these files, as they are not produced on FC4 or below + touch ${FILE}c + touch ${FILE}o echo %%ghost "${f}c" echo %%ghost "${f}o" done } > %name-python.list diff --git a/util-vserver.spec.in b/util-vserver.spec.in index 0e6662b..be2b242 100644 --- a/util-vserver.spec.in +++ b/util-vserver.spec.in @@ -222,6 +222,9 @@ contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat find "%{buildroot}" -name '*.py' | { while read FILE; do f="${FILE#%{buildroot}}" echo "${f}" + # need to touch these files, as they are not produced on FC4 or below + touch ${FILE}c + touch ${FILE}o echo %%ghost "${f}c" echo %%ghost "${f}o" done } > %name-python.list