Changeset 405 for spec/trunk/SPECS/yum.spec
- Timestamp:
- Apr 7, 2014, 12:51:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/yum.spec
r168 r405 1 1 %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 2 3 %global pybasever 2.7 2 4 3 5 Summary: RPM installer/updater 4 6 Name: yum 5 7 Version: 3.2.27 6 Release: 5%{?dist}8 Release: 6%{?dist} 7 9 License: GPLv2+ 8 10 Group: System Environment/Base … … 22 24 23 25 Conflicts: pirut < 1.1.4 26 24 27 Requires: python >= 2.4, rpm-python, rpm >= 0:4.4.2 25 28 #Requires: python-iniparse … … 42 45 43 46 Requires: python 44 Requires: python(abi) = 2.647 Requires: python(abi) = %{pybasever} 45 48 46 49 %description … … 64 67 can notify you when they are available via email, syslog or dbus. 65 68 69 %package debug 70 Summary: HLL debug data for exception handling support. 71 72 %description debug 73 HLL debug data for exception handling support. 74 66 75 %prep 67 76 %setup -q -a 1 … … 69 78 70 79 %build 71 export MAKESHELL="/ bin/sh"72 export PERL_SH_DIR="/ bin"80 export MAKESHELL="/@unixroot/usr/bin/sh" 81 export PERL_SH_DIR="/@unixroot/usr/bin" 73 82 make 74 83 75 84 %install 76 85 rm -rf $RPM_BUILD_ROOT 77 export MAKESHELL="/ bin/sh"78 export PERL_SH_DIR="/ bin"86 export MAKESHELL="/@unixroot/usr/bin/sh" 87 export PERL_SH_DIR="/@unixroot/usr/bin" 79 88 make DESTDIR=$RPM_BUILD_ROOT install 80 89 #install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/yum.conf … … 99 108 touch $RPM_BUILD_ROOT/%{_var}/lib/yum/uuid 100 109 101 cp yum.exe $RPM_BUILD_ROOT/%{_bindir} 110 #build exe wrapper 111 #cp yum.exe $RPM_BUILD_ROOT/%{_bindir} 112 gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/yum.exe exec-py.c 113 102 114 103 115 #%find_lang %name … … 137 149 #%dir /usr/lib/yum-plugins 138 150 %{_usr}/share/locale/* 151 %exclude %{_bindir}/*.dbg 152 153 %files debug 154 %defattr(-,root,root) 155 %{_bindir}/*.dbg 139 156 140 157 %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.