lmbench.spec
来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 66 行
SPEC
66 行
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : LMbench performance analysis toolsName : lmbench-3.0Version : a4Release : 1License : GPL + restrictionsVendor : FreescalePackager : John FaithGroup : TestingSource : lmbench-3.0-a4.tgz#Patch0 : lmbench-fsl-3.0-a4.patchPatch1 : lmbench-3.0-a4-cc.patchPatch2 : lmbench-3.0-a4-llseek.patchBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}URL : http://lmbench.sourceforge.net/whatis_lmbench.html%Description%{summary}%Prep%setup#%patch0 -p1%patch1 -p1%patch2 -p1%Buildmake%InstallinstDir=$RPM_BUILD_ROOT/%{pfx}/opt/lmbenchrm -rf $instDirmkdir -p $instDircd srcmake install BASE=$instDircd -# Also install the lmbench scriptscp -a scripts results $instDir# Install webpages for http testsmkdir -p $instDir/srccp src/webpage-lm.tar $instDir/src# Force os script to just say "linux", and move# binaries to bin/linux/.cd $RPM_BUILD_ROOT/%{pfx}/opt/lmbenchcp scripts/lmbench binmv bin linux; mkdir bin; mv linux bincd scriptschmod 755 oscat >os <<TEXT#!/bin/shecho linuxTEXT%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?