coreutils.spec

来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 58 行

SPEC
58
字号
%define base %(echo %{_prefix} | sed -e s,/usr.*$,,)%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary         : coreutils - GNU core utilities commonly used in shell scriptsName            : coreutilsVersion         : 6.3Release         : 1License         : GPLVendor          : FreescalePackager        : Stuart HughesGroup           : System Environment/BaseSource          : %{name}-%{version}.tar.bz2BuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}Provides        : sh-utils%Description%{summary}%Prep%setup%Build# fu_cv_sys_stat_statfs2_bsize is needed to turn on dfutils_cv_sys_open_max=1019 fu_cv_sys_stat_statfs2_bsize=yes \./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --mandir=%{_mandir}make%Installrm -rf $RPM_BUILD_ROOTmake install DESTDIR=$RPM_BUILD_ROOT/%{pfx}# brutal, but more subtle attempts failed.rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/bin/uptimerm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/man/man1/uptime.1# fix up paths to be compatible with busybox/fileutils/sh-utils etcfor i in bin sbin %_sbindirdo    mkdir -p $RPM_BUILD_ROOT/%{pfx}/$idonefor f in stty pwd df sync echo ln cat chown rmdir ls uname touch true cp chmod sleep mkdir false date mv chgrp mknod dd rmdo    mv $RPM_BUILD_ROOT/%{pfx}/%_bindir/$f $RPM_BUILD_ROOT/%{pfx}/%base/bin/$fdonemv $RPM_BUILD_ROOT/%{pfx}/%_bindir/chroot $RPM_BUILD_ROOT/%{pfx}/%_sbindir/chroot%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?