forked from pool/python
Accepting request 48686 from devel:languages:python:Factory
Copy from devel:languages:python:Factory/python based on submit request 48686 from user coolo OBS-URL: https://build.opensuse.org/request/show/48686 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=53
This commit is contained in:
committed by
Git OBS Bridge
parent
12b0f39c97
commit
424f25ca41
13
python.spec
13
python.spec
@@ -32,7 +32,7 @@ Obsoletes: python-64bit
|
||||
Obsoletes: python-nothreads python21 python-elementtree python-sqlite
|
||||
Summary: Python Interpreter
|
||||
Version: 2.7
|
||||
Release: 1
|
||||
Release: 2
|
||||
Requires: python-base = %{version}
|
||||
%define tarversion %{version}
|
||||
%define tarname Python-%{tarversion}
|
||||
@@ -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)
|
||||
|
Reference in New Issue
Block a user