Ignore:
Timestamp:
Apr 9, 2014, 5:17:45 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: updates to python macros.

File:
1 edited

Legend:

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

    r408 r411  
    11%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
    2 
    3 %global pybasever 2.7
    42
    53Summary: A fast, lightweight distributed source control management system
     
    119URL: http://www.selenic.com/mercurial/
    1210Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
    13 Source1: mercurial-os2.zip
     11Source1: python-wrapper.zip
    1412
    1513Patch0: mercurial-os2.diff
     
    2220
    2321Requires: python
    24 Requires: python(abi) = %{pybasever}
     22Requires: python(abi) = %{python_version}
    2523
    2624%description
     
    139137
    140138#build exe wrapper
    141 #cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
    142 gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/hg.exe exec-py.c
     139gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/hg.exe exec-py.c
    143140
    144141
Note: See TracChangeset for help on using the changeset viewer.