⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 python.spec

📁 coldfire MCF5445X基于unix平台的BSP
💻 SPEC
字号:
%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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -