merge.spec
来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 52 行
SPEC
52 行
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : Merge files for an embedded root filesystemName : mergeVersion : 0.1Release : 1License : GPLVendor : FreescalePackager : Steve Papacharalambous/Stuart HughesGroup : System Environment/UtilitiesBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}# We have assume the user knows merge file dependencies.Autoreqprov : no%DescriptionDetects the presence of of merge directory in the top level of the rootfile system builder directory, and if it is present creates a rpm containingthe directory structure and files beneath the merge directory.The purpose of this is to allow the user to add files and directoriesthat will get included in the target root file system.%Prep%Build%Installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/%{pfx}mkdir -p $RPM_BUILD_ROOT/%{pfx}/var/tmptouch $RPM_BUILD_ROOT/%{pfx}/var/tmp/dummyfor dir in "$PLATFORM_PATH/merge" "$TOP/merge"do if [ -d $dir -a -n "`ls $dir/`" ] then cd $dir cp -a * $RPM_BUILD_ROOT/%{pfx} rm -rf $(find $RPM_BUILD_ROOT/%{pfx} -name 'CVS') cd - fidone%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?