diff --git a/python-base.spec b/python-base.spec index 801d724..e768578 100644 --- a/python-base.spec +++ b/python-base.spec @@ -160,6 +160,11 @@ autoreconf -f -i . # Modules/_ctypes/libffi # prevent make from trying to rebuild asdl stuff, which requires existing # python installation touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h +# use just gcc instead of [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292].. +echo '#define COMPILER "[GCC]"' >> pyconfig.h.in +# use a compilation date equivalent to the source tarball. +printf '#define DATE "%s %s %s"\n' $(date -u -r %{SOURCE0} +"%b %d %Y") >> pyconfig.h.in +printf '#define TIME "%s"\n' $(date -u -r %{SOURCE0} +"%T") >> pyconfig.h.in ######################################## # configure ######################################## diff --git a/python.changes b/python.changes index 7a9d9e3..96f91a2 100644 --- a/python.changes +++ b/python.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Aug 31 02:51:56 UTC 2010 - cristian.rodriguez@opensuse.org + +- Provide "fake" build enviroment information +* build date replaced by source tarball modify date +* compiler string replaced by "GCC" +* This is intended to avoid republishing the packages + over and over again. + ------------------------------------------------------------------- Thu Aug 26 11:42:44 UTC 2010 - jmatejek@novell.com diff --git a/python.spec b/python.spec index c72dfe6..caa3e7b 100644 --- a/python.spec +++ b/python.spec @@ -202,6 +202,11 @@ autoreconf -f -i . # Modules/_ctypes/libffi # prevent make from trying to rebuild asdl stuff, which requires existing # python installation touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h +# use just gcc instead of [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292].. +echo '#define COMPILER "[GCC]"' >> pyconfig.h.in +# use a compilation date equivalent to the source tarball. +printf '#define DATE "%s %s %s"\n' $(date -u -r %{SOURCE0} +"%b %d %Y") >> pyconfig.h.in +printf '#define TIME "%s"\n' $(date -u -r %{SOURCE0} +"%T") >> pyconfig.h.in ######################################## # configure ######################################## @@ -380,11 +385,9 @@ install -m 644 %{S:3} %{S:4} $RPM_BUILD_ROOT/etc/profile.d %clean rm -rf $RPM_BUILD_ROOT -%post -%{run_ldconfig} +%post -p /sbin/ldconfig -%postun -%{run_ldconfig} +%postun -p /sbin/ldconfig %files idle %defattr(644, root, root, 755)