Ignore:
Timestamp:
Apr 9, 2014, 4:09:33 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: mercurial, build for python 2.7.

File:
1 edited

Legend:

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

    r347 r408  
    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
    24
    35Summary: A fast, lightweight distributed source control management system
     
    2022
    2123Requires: python
    22 Requires: python(abi) = 2.6
     24Requires: python(abi) = %{pybasever}
    2325
    2426%description
     
    3133
    3234%define pkg mercurial
    33 
    34 # If the emacs-el package has installed a pkgconfig file, use that to determine
    35 # install locations and Emacs version at build time, otherwise set defaults.
    36 #if ($(pkgconfig emacs) ; echo $?)
    37 #define emacs_version 22.1
    38 #define emacs_lispdir %{_datadir}/emacs/site-lisp
    39 #define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
    40 #else
    41 #define emacs_version %{expand:%(pkg-config emacs --modversion)}
    42 #define emacs_lispdir %{expand:%(pkg-config emacs --variable sitepkglispdir)}
    43 #define emacs_startdir %{expand:%(pkg-config emacs --variable sitestartdir)}
    44 #endif
    4535
    4636#%package -n emacs-%{pkg}
     
    8272documentation.
    8373
     74%package debug
     75Summary: HLL debug data for exception handling support.
     76
     77%description debug
     78HLL debug data for exception handling support.
     79
    8480%prep
    8581%setup -q -a 1
     
    8783
    8884%build
     85export SHELL="/@unixroot/usr/bin/sh.exe"
     86export EMXSHELL="cmd.exe"
    8987# Building docs is broken due to missing python-docutils package, skip this step
    9088#make SHELL=sh all
    91 make SHELL=sh build
     89make build
    9290
    9391%install
     92export EMXSHELL="cmd.exe"
    9493rm -rf $RPM_BUILD_ROOT
    9594%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files
     
    139138install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
    140139
    141 cp hg.exe $RPM_BUILD_ROOT/%{_bindir}
     140#build exe wrapper
     141#cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
     142gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/hg.exe exec-py.c
    142143
    143144
     
    177178#%{_sysconfdir}/mercurial/hgrc.d/hgk.rc
    178179
     180%files debug
     181%defattr(-,root,root)
     182%{_bindir}/*.dbg
     183
    179184##%%check
    180185##cd tests && %{__python} run-tests.py
    181186
    182187%changelog
     188* Wed Apr 09 2014 yd
     189- build for python 2.7.
     190- added debug package with symbolic info for exceptq.
    183191
    184192* Sat Mar 30 2013 Dmitriy Kuminov <coding@dmik.org> - 2.5.2-1
Note: See TracChangeset for help on using the changeset viewer.