?? python-2.2.1.spec
字號:
%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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -