📄 iproute.spec
字号:
%define base %(echo %{_prefix} | sed -e s,/usr.*$,,)%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : Advanced IP routing and network device configuration toolsName : iprouteVersion : 2.6.11Release : 050330License : GPLVendor : FreescalePackager : Jaksa Djordjevic, Stuart HughesGroup : Applications/SystemSource : %{name}2-%{version}-%{release}.tar.gzPatch0 : iproute-2.6.11-socket_h_warning.patchPatch1 : iproute2-paretonormal-overflow.patchBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}The iproute package contains networking utilities (ip and rtmon, forexample) which are designed to use the advanced networkingcapabilities of the Linux kernel.%Prep%setup -n %{name}2-%{version}-%{release}%patch0 -p1%patch1 -p0%Buildmake -j1 KERNEL_INCLUDE=$DEV_IMAGE/usr/src/linux HOSTCC="$BUILDCC"%Installrm -rf $RPM_BUILD_ROOTmake -j1 install SBINDIR=%{base}/sbin DESTDIR=$RPM_BUILD_ROOT/%{pfx}%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -