Ignore:
Timestamp:
Dec 12, 2015, 1:45:07 PM (10 years ago)
Author:
dmik
Message:

spec: python: Release 2.7.6-12.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/python.spec

    r561 r612  
    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 
    51%{!?__python_ver:%global __python_ver EMPTY}
    62#global __python_ver 2.7
     
    4036# These errors are ignored by the normal python build, and aren't normally a
    4137# problem in the buildroots since /usr/bin/python isn't present.
    42 # 
     38#
    4339# However, for the case where we're rebuilding the python srpm on a machine
    4440# that does have python installed we need to set this to avoid
     
    5046Name: %{python}
    5147Version: 2.7.6
    52 Release: 11%{?dist}
     48Release: 12%{?dist}
    5349License: Python
    5450Group: Development/Languages
    5551Provides: python-abi = %{pybasever}
    5652Provides: python(abi) = %{pybasever}
     53
     54%define svn_url     http://svn.netlabs.org/repos/rpm/python/trunk
     55%define svn_rev     611
     56
    5757Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     58
     59BuildRequires: gcc make subversion zip
    5860
    5961%if %{main_python}
    6062Obsoletes: Distutils
    6163Provides: Distutils
    62 Obsoletes: python2 
     64Obsoletes: python2
    6365Provides: python2 = %{version}
    6466Obsoletes: python-elementtree <= 1.2.6
     
    8587#BuildRequires: tix-devel
    8688BuildRequires: bzip2-devel sqlite-devel
    87 #BuildRequires: autoconf
     89BuildRequires: autoconf
    8890BuildRequires: db4-devel >= 4.8
    8991#BuildRequires: libffi-devel
     
    9698%global tapsetdir      /usr/share/systemtap/tapset
    9799%endif
     100
     101# OS/2 specific
     102BuildRequires: mmap urpo-devel
    98103
    99104URL: http://www.python.org/
     
    131136
    132137%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 
     138The python interpreter can be embedded into applications wanting to
     139use python as an embedded scripting language.  The python-libs package
    135140provides the libraries needed for this.
    136141
     
    169174
    170175%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). 
     176This package includes several tools to help with the development of Python
     177programs, including IDLE (an IDE with editing and debugging facilities), a
     178color editor (pynche), and a python gettext program (pygettext.py).
    174179
    175180%package -n %{tkinter}
     
    238243#rm -r Modules/zlib || exit 1
    239244
    240 mkdir Lib/plat-os2knix
    241 
    242245# This shouldn't be necesarry, but is right now (2.2a3)
    243246find -name "*~" |xargs rm -f
     247
     248# generate configure & friends
     249autoreconf -fvi
    244250
    245251%build
     
    248254export LIBS="-lssl -lcrypto -lurpo -lmmap -lpthread -lintl"
    249255%configure \
    250         --enable-shared --disable-static \
    251         --with-system-expat \
     256        --enable-shared \
     257        --with-system-expat \
    252258        --with-system-ffi --with-libs='-lmmap'
    253259
     
    428434#%{dynload_dir}/linuxaudiodev.pyd
    429435%{dynload_dir}/math.pyd
    430 #%{dynload_dir}/mmap.pyd
     436%{dynload_dir}/mmap.pyd
    431437#%{dynload_dir}/nis.pyd
    432438#%{dynload_dir}/operator.pyd
     
    512518%{_bindir}/python-config
    513519%endif
    514 %{_bindir}/python*-config
     520%{_bindir}/python?*-config
    515521#%{_libdir}/libpython%{pybasever}.pyd
    516522%{_libdir}/python%{pybasever}_dll.a
     
    557563# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from
    558564# ldconfig (rhbz:562980).
    559 # 
     565#
    560566# The /usr/lib/rpm/redhat/macros defines %__debug_package to use
    561567# debugfiles.list, and it appears that everything below /usr/lib/debug and
    562568# (/usr/src/debug) gets added to this file (via LISTFILES) in
    563569# /usr/lib/rpm/find-debuginfo.sh
    564 # 
     570#
    565571# Hence by installing it below /usr/lib/debug we ensure it is added to the
    566572# -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
    568574# payload file would be unpackaged)
    569575
     
    574580
    575581%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
    576591* Thu Feb 26 2015 yd <yd@os2power.com> 2.7.6-11
    577592- r560, -O3 breaks the build, at least for pentium4 march.
Note: See TracChangeset for help on using the changeset viewer.