python-2.2.1.spec
来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 62 行
SPEC
62 行
%define pfx /opt/freescale/rootfs/%{_target_cpu}%define version 2.2.1%define release 1Summary : An interpreted object-oriented programming language.Name : pythonVersion : %{version}Release : %{release}License : OSI Approved Python LicenseVendor : FreescalePackager : Stuart HughesGroup : Development/LanguagesSource : Python-%{version}.tgzPatch0 : python-cross-compile.diffBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}%Prep%setup -n Python-%{version}%patch0 -p1%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_PATH./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --enable-shared --without-libdb --without-sslmake HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen%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 + -
显示快捷键?