?? util-linux.spec
字號:
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : A collection of basic system utilitiesName : util-linuxVersion : 2.12Release : 1License : GPLVendor : FreescalePackager : Stuart HughesGroup : System Environment/BaseSource : util-linux-2.12.tar.gzPatch0 : util-linux-2.12a-kernel_headers-1.patchPatch1 : util-linux-2.12-fdiskbsdlabel_h_m68k.patchPatch2 : util-linux-2.12-cf-bitops_h.patchPatch3 : util-linux-2.12-fdisk_alignment.patchPatch4 : util-linux-2.12-iomem-fix.patchPatch5 : util-linux-2.12-gcc4-lvalue.patchPatch6 : util-linux-2.12-umount2-gcc4.patchPatch7 : util-linux-2.12-tqueue-gcc4.patchPatch8 : util-linux-2.12-uclibc-sys_siglist.patchPatch9 : util-linux-2.12-syscall-macro-v02.patchBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}%Prep%setup%patch0 -p1%patch1 -p1%patch2 -p1%patch3 -p1if [ $TOOLCHAIN_PREFIX = "arm_v6_vfp_le-" ]then%patch4 -p1fi%patch5 -p1%patch6 -p1%patch7 -p1%patch8 -p1%patch9 -p1%Build# The first part (INSTALLSUID) is only needed during testing until either# we build using fakeroot or rootperl -pi -e 's,^INSTALLSUID.*,INSTALLSUID=\$(INSTALL) -m \$(SUIDMODE),g; s,^LOCALE_DIR=.*,LOCALE_DIR=%{_prefix}/share/locale,; s,^CPU=.*,CPU=$ENV{GNUTARCH},; s,^ARCH=.*,ARCH=$ENV{GNUTARCH}, ' MCONFIGperl -pi -e 's,echo\s+>\s+swapargs\.h,echo "#define SWAPON_HAS_TWO_ARGS" > swapargs.h,' mount/swap.configure./configure --prefix=%{_prefix}perl -pi -e 's,^CURSESFLAGS=-I[\w/]+\s+,CURSESFLAGS=,;' make_includemake HAVE_SLN=yes%Installrm -rf $RPM_BUILD_ROOT# the USE_TTY_GROUP can be remove after testingmake install DESTDIR=$RPM_BUILD_ROOT/%{pfx} USE_TTY_GROUP="no"%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -