python.spec

来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 65 行

SPEC
65
字号
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary         : An interpreted object-oriented programming language.Name            : pythonVersion         : 2.4.4Release         : 1License         : OSI Approved Python LicenseVendor          : FreescalePackager        : Stuart HughesGroup           : Development/LanguagesSource          : Python-%{version}.tar.bz2Patch0          : python-2.4.4-cross-compile.diffPatch1          : python-2.4.4-kill-dbpaths.patchPatch2          : python-2.4.4-cross-compile-missing-modules.diffBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}%Description%{summary}%Prep%setup -n Python-%{version}%patch0 -p1%patch1 -p1%patch2 -p0%Build## Note: This cross compile method is adapted from: #       http://www.ailis.de/~k/docs/crosscompiling/python.php## build a version for the machine we are building on, before we# build for the target#ORIG_PATH=$PATHexport PATH=$UNSPOOF_PATH./configuremake python Parser/pgenmv python hostpythonmv Parser/pgen Parser/hostpgenmake distcleanexport PATH=$ORIG_PATHLDFLAGS="-L$DEV_IMAGE/usr/lib" \./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --enable-shared --without-libdb --without-sslmake HOSTPYTHON=./hostpython  HOSTPGEN=./Parser/hostpgen CROSS_COMPILE=yes%Installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/%{pfx}/%{_prefix}make prefix=$RPM_BUILD_ROOT/%{pfx}/%{_prefix} HOSTPYTHON=./hostpython \     CROSS_COMPILE=yes install  %Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?