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