Changeset 408 for spec/trunk/SPECS/mercurial.spec
- Timestamp:
- Apr 9, 2014, 4:09:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/mercurial.spec
r347 r408 1 1 %{!?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 2 4 3 5 Summary: A fast, lightweight distributed source control management system … … 20 22 21 23 Requires: python 22 Requires: python(abi) = 2.624 Requires: python(abi) = %{pybasever} 23 25 24 26 %description … … 31 33 32 34 %define pkg mercurial 33 34 # If the emacs-el package has installed a pkgconfig file, use that to determine35 # install locations and Emacs version at build time, otherwise set defaults.36 #if ($(pkgconfig emacs) ; echo $?)37 #define emacs_version 22.138 #define emacs_lispdir %{_datadir}/emacs/site-lisp39 #define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d40 #else41 #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 #endif45 35 46 36 #%package -n emacs-%{pkg} … … 82 72 documentation. 83 73 74 %package debug 75 Summary: HLL debug data for exception handling support. 76 77 %description debug 78 HLL debug data for exception handling support. 79 84 80 %prep 85 81 %setup -q -a 1 … … 87 83 88 84 %build 85 export SHELL="/@unixroot/usr/bin/sh.exe" 86 export EMXSHELL="cmd.exe" 89 87 # Building docs is broken due to missing python-docutils package, skip this step 90 88 #make SHELL=sh all 91 make SHELL=shbuild89 make build 92 90 93 91 %install 92 export EMXSHELL="cmd.exe" 94 93 rm -rf $RPM_BUILD_ROOT 95 94 %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files … … 139 138 install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc 140 139 141 cp hg.exe $RPM_BUILD_ROOT/%{_bindir} 140 #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 142 143 143 144 … … 177 178 #%{_sysconfdir}/mercurial/hgrc.d/hgk.rc 178 179 180 %files debug 181 %defattr(-,root,root) 182 %{_bindir}/*.dbg 183 179 184 ##%%check 180 185 ##cd tests && %{__python} run-tests.py 181 186 182 187 %changelog 188 * Wed Apr 09 2014 yd 189 - build for python 2.7. 190 - added debug package with symbolic info for exceptq. 183 191 184 192 * Sat Mar 30 2013 Dmitriy Kuminov <coding@dmik.org> - 2.5.2-1
Note:
See TracChangeset
for help on using the changeset viewer.