On FC5 and above rpmbuil will run brp on all python files that
authorMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 24 Oct 2007 20:42:29 +0000 (20:42 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 24 Oct 2007 20:42:29 +0000 (20:42 +0000)
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.

util-vserver.spec
util-vserver.spec.in

index c0ba3cf..a136ebf 100644 (file)
@@ -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
index 0e6662b..be2b242 100644 (file)
@@ -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