Changeset 561 for spec/trunk/SPECS/python.spec
- Timestamp:
- Feb 26, 2015, 5:38:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/python.spec
r405 r561 1 #define svn_url F:/rd/rpm/python/trunk 2 %define svn_url http://svn.netlabs.org/repos/rpm/python/trunk 3 %define svn_rev 560 4 1 5 %{!?__python_ver:%global __python_ver EMPTY} 2 6 #global __python_ver 2.7 … … 46 50 Name: %{python} 47 51 Version: 2.7.6 48 Release: 1 0%{?dist}52 Release: 11%{?dist} 49 53 License: Python 50 54 Group: Development/Languages 51 55 Provides: python-abi = %{pybasever} 52 56 Provides: python(abi) = %{pybasever} 53 Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz 54 55 Patch0: Python-%{version}-os2.diff 56 Patch1: Python-%{version}-os2knix.diff 57 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 57 58 58 59 %if %{main_python} … … 74 75 # YD unix adds this automatically by parsing elf binaries 75 76 Requires: %{name}-libs = %{version}-%{release} 76 Requires: pthread77 Requires: gettext-libs78 77 79 78 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 80 #BuildRequires: readline-devel, openssl-devel, gmp-devel 81 BuildRequires: readline-devel, openssl-devel 79 BuildRequires: readline-devel, openssl-devel, gmp-devel 82 80 #BuildRequires: gdbm-devel, zlib-devel, expat-devel 83 BuildRequires: ncurses-devel, zlib-devel 81 BuildRequires: ncurses-devel, zlib-devel, expat-devel 84 82 #BuildRequires: libGL-devel tk tix gcc-c++ libX11-devel glibc-devel 85 83 #BuildRequires: tar findutils pkgconfig tcl-devel tk-devel … … 214 212 215 213 %prep 216 %setup -q -n Python-%{version} 214 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 215 %setup -q 216 %else 217 %setup -n "%{name}-%{version}" -Tc 218 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 219 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 220 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 221 %endif 217 222 218 223 %if 0%{?with_systemtap} … … 233 238 #rm -r Modules/zlib || exit 1 234 239 235 #236 # Apply patches:237 #238 %patch0 -p1 -b .os2~239 %patch1 -p1 -b .os2knix~240 241 240 mkdir Lib/plat-os2knix 242 241 … … 245 244 246 245 %build 247 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 248 export SHELL=$CONFIG_SHELL 249 export EMXSHELL=$CONFIG_SHELL 250 export MAKESHELL=$CONFIG_SHELL 251 252 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 246 export CONFIG_SITE="/@unixroot/usr/share/config.legacy" 247 export LDFLAGS="-g -Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 253 248 export LIBS="-lssl -lcrypto -lurpo -lmmap -lpthread -lintl" 254 249 %configure \ 255 250 --enable-shared --disable-static \ 256 --with-system-ffi --with-libs='-lmmap'\257 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"251 --with-system-expat \ 252 --with-system-ffi --with-libs='-lmmap' 258 253 259 254 make OPT="$CFLAGS" %{?_smp_mflags} … … 579 574 580 575 %changelog 576 * Thu Feb 26 2015 yd <yd@os2power.com> 2.7.6-11 577 - r560, -O3 breaks the build, at least for pentium4 march. 578 - r529, use unixroot path for script path replacement. Fixes ticket#114. 579 581 580 * Mon Apr 07 2014 yd 582 581 - build for python 2.7.
Note:
See TracChangeset
for help on using the changeset viewer.