Ignore:
Timestamp:
Apr 7, 2014, 12:51:04 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: update to python 2.7.6.

File:
1 edited

Legend:

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

    r168 r405  
    11%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
     2
     3%global pybasever 2.7
    24 
    35Summary: RPM installer/updater
    46Name: yum
    57Version: 3.2.27
    6 Release: 5%{?dist}
     8Release: 6%{?dist}
    79License: GPLv2+
    810Group: System Environment/Base
     
    2224
    2325Conflicts: pirut < 1.1.4
     26
    2427Requires: python >= 2.4, rpm-python, rpm >= 0:4.4.2
    2528#Requires: python-iniparse
     
    4245
    4346Requires: python
    44 Requires: python(abi) = 2.6
     47Requires: python(abi) = %{pybasever}
    4548
    4649%description
     
    6467can notify you when they are available via email, syslog or dbus.
    6568
     69%package debug
     70Summary: HLL debug data for exception handling support.
     71
     72%description debug
     73HLL debug data for exception handling support.
     74
    6675%prep
    6776%setup -q -a 1
     
    6978
    7079%build
    71 export MAKESHELL="/bin/sh"
    72 export PERL_SH_DIR="/bin"
     80export MAKESHELL="/@unixroot/usr/bin/sh"
     81export PERL_SH_DIR="/@unixroot/usr/bin"
    7382make
    7483
    7584%install
    7685rm -rf $RPM_BUILD_ROOT
    77 export MAKESHELL="/bin/sh"
    78 export PERL_SH_DIR="/bin"
     86export MAKESHELL="/@unixroot/usr/bin/sh"
     87export PERL_SH_DIR="/@unixroot/usr/bin"
    7988make DESTDIR=$RPM_BUILD_ROOT install
    8089#install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/yum.conf
     
    99108touch $RPM_BUILD_ROOT/%{_var}/lib/yum/uuid
    100109
    101 cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
     110#build exe wrapper
     111#cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
     112gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/yum.exe exec-py.c
     113
    102114
    103115#%find_lang %name
     
    137149#%dir /usr/lib/yum-plugins
    138150%{_usr}/share/locale/*
     151%exclude %{_bindir}/*.dbg
     152
     153%files debug
     154%defattr(-,root,root)
     155%{_bindir}/*.dbg
    139156
    140157%changelog
     158* Mon Apr 07 2014 yd
     159- build for python 2.7.
     160
     161* Fri Mar 21 2014 yd
     162- build wrapper agains pythonX.Y.exe
     163- r396, makefiles updates for unixroot and python virtualenv changes.
     164- added debug package with symbolic info for exceptq.
Note: See TracChangeset for help on using the changeset viewer.