📄 lmbench.spec
字号:
%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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -