📄 libnet.spec
字号:
%define name libnet%define dirname Libnet%define version 1.0.2%define release 1%define prefix /usr%define builddir $RPM_BUILD_DIR/%{dirname}-%{version}Summary: Routines to help with network packet contruction and handlingName: %{name}Version: %{version}Release: %{release}Prefix: %{prefix}Copyright: BSDVendor: Mike D. Schiffman <mike@infonexus.com>Packager: Troy Engel <tengel@sonic.net>Group: Development/LibrariesSource: %{name}-%{version}.tgzURL: http://www.packetfactory.com/libnetBuildRoot: /tmp/%{name}-%{version}-root%descriptionLibnet is a collection of routines to help with the construction andhandling of network packets. It provides a portable framework for low-level network packet writing and handling.%preprm -rf %{builddir}%setup -n %{dirname}-%{version}touch `find . -type f`%buildCFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}make%installrm -rf $RPM_BUILD_ROOTmake DESTDIR=$RPM_BUILD_ROOT installcd $RPM_BUILD_ROOTfind . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}%cleanrm -rf $RPM_BUILD_ROOTrm -rf %{builddir}rm -f $RPM_BUILD_DIR/file.list.%{name}%files -f ../file.list.%{name}%doc doc/CHANGELOG* doc/CONTRIB doc/COPYING doc/PORTS doc/README* doc/TODO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -