Changeset 612 for spec/trunk/SPECS/python.spec
- Timestamp:
- Dec 12, 2015, 1:45:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/python.spec
r561 r612 1 #define svn_url F:/rd/rpm/python/trunk2 %define svn_url http://svn.netlabs.org/repos/rpm/python/trunk3 %define svn_rev 5604 5 1 %{!?__python_ver:%global __python_ver EMPTY} 6 2 #global __python_ver 2.7 … … 40 36 # These errors are ignored by the normal python build, and aren't normally a 41 37 # problem in the buildroots since /usr/bin/python isn't present. 42 # 38 # 43 39 # However, for the case where we're rebuilding the python srpm on a machine 44 40 # that does have python installed we need to set this to avoid … … 50 46 Name: %{python} 51 47 Version: 2.7.6 52 Release: 1 1%{?dist}48 Release: 12%{?dist} 53 49 License: Python 54 50 Group: Development/Languages 55 51 Provides: python-abi = %{pybasever} 56 52 Provides: python(abi) = %{pybasever} 53 54 %define svn_url http://svn.netlabs.org/repos/rpm/python/trunk 55 %define svn_rev 611 56 57 57 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 58 59 BuildRequires: gcc make subversion zip 58 60 59 61 %if %{main_python} 60 62 Obsoletes: Distutils 61 63 Provides: Distutils 62 Obsoletes: python2 64 Obsoletes: python2 63 65 Provides: python2 = %{version} 64 66 Obsoletes: python-elementtree <= 1.2.6 … … 85 87 #BuildRequires: tix-devel 86 88 BuildRequires: bzip2-devel sqlite-devel 87 #BuildRequires: autoconf89 BuildRequires: autoconf 88 90 BuildRequires: db4-devel >= 4.8 89 91 #BuildRequires: libffi-devel … … 96 98 %global tapsetdir /usr/share/systemtap/tapset 97 99 %endif 100 101 # OS/2 specific 102 BuildRequires: mmap urpo-devel 98 103 99 104 URL: http://www.python.org/ … … 131 136 132 137 %description libs 133 The python interpreter can be embedded into applications wanting to 134 use python as an embedded scripting language. The python-libs package 138 The python interpreter can be embedded into applications wanting to 139 use python as an embedded scripting language. The python-libs package 135 140 provides the libraries needed for this. 136 141 … … 169 174 170 175 %description tools 171 This package includes several tools to help with the development of Python 172 programs, including IDLE (an IDE with editing and debugging facilities), a 173 color editor (pynche), and a python gettext program (pygettext.py). 176 This package includes several tools to help with the development of Python 177 programs, including IDLE (an IDE with editing and debugging facilities), a 178 color editor (pynche), and a python gettext program (pygettext.py). 174 179 175 180 %package -n %{tkinter} … … 238 243 #rm -r Modules/zlib || exit 1 239 244 240 mkdir Lib/plat-os2knix241 242 245 # This shouldn't be necesarry, but is right now (2.2a3) 243 246 find -name "*~" |xargs rm -f 247 248 # generate configure & friends 249 autoreconf -fvi 244 250 245 251 %build … … 248 254 export LIBS="-lssl -lcrypto -lurpo -lmmap -lpthread -lintl" 249 255 %configure \ 250 --enable-shared --disable-static\251 256 --enable-shared \ 257 --with-system-expat \ 252 258 --with-system-ffi --with-libs='-lmmap' 253 259 … … 428 434 #%{dynload_dir}/linuxaudiodev.pyd 429 435 %{dynload_dir}/math.pyd 430 #%{dynload_dir}/mmap.pyd436 %{dynload_dir}/mmap.pyd 431 437 #%{dynload_dir}/nis.pyd 432 438 #%{dynload_dir}/operator.pyd … … 512 518 %{_bindir}/python-config 513 519 %endif 514 %{_bindir}/python *-config520 %{_bindir}/python?*-config 515 521 #%{_libdir}/libpython%{pybasever}.pyd 516 522 %{_libdir}/python%{pybasever}_dll.a … … 557 563 # We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from 558 564 # ldconfig (rhbz:562980). 559 # 565 # 560 566 # The /usr/lib/rpm/redhat/macros defines %__debug_package to use 561 567 # debugfiles.list, and it appears that everything below /usr/lib/debug and 562 568 # (/usr/src/debug) gets added to this file (via LISTFILES) in 563 569 # /usr/lib/rpm/find-debuginfo.sh 564 # 570 # 565 571 # Hence by installing it below /usr/lib/debug we ensure it is added to the 566 572 # -debuginfo subpackage 567 # (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py 573 # (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py 568 574 # payload file would be unpackaged) 569 575 … … 574 580 575 581 %changelog 582 * Fri Dec 12 2015 Dmitriy Kuminov <coding@dmik.org> 2.7.6-12 583 - Provide dummy _dlopen in ctypes to make colorama package happy. 584 - Use configured SHELL for subprocess.Popen(shell=True) instead of 585 hardcoded '/bin/sh'. 586 - Make os.path.join replace all altsep (\) with sep (/) on return (to 587 fix joining names with components of PATH-like env. vars and passing 588 the results to a unix shell). 589 - Make os.path.defpath return '$UNIXROOT\\usr\\bin'. 590 576 591 * Thu Feb 26 2015 yd <yd@os2power.com> 2.7.6-11 577 592 - r560, -O3 breaks the build, at least for pentium4 march.
Note:
See TracChangeset
for help on using the changeset viewer.