7 %define builddir $RPM_BUILD_DIR/%{dirname}-%{version}
9 Summary: Routines to help with network packet contruction and handling
15 Vendor: Mike D. Schiffman <mike@infonexus.com>
16 Packager: Troy Engel <tengel@sonic.net>
17 Group: Development/Libraries
18 Source: %{name}-%{version}.tgz
19 URL: http://www.packetfactory.com/libnet
20 BuildRoot: /tmp/%{name}-%{version}-root
23 Libnet is a collection of routines to help with the construction and
24 handling of network packets. It provides a portable framework for low-
25 level network packet writing and handling.
30 %setup -n %{dirname}-%{version}
31 touch `find . -type f`
34 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
38 rm -rf $RPM_BUILD_ROOT
39 make DESTDIR=$RPM_BUILD_ROOT install
42 find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
43 find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
44 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
47 rm -rf $RPM_BUILD_ROOT
49 rm -f $RPM_BUILD_DIR/file.list.%{name}
51 %files -f ../file.list.%{name}
52 %doc doc/CHANGELOG* doc/CONTRIB doc/COPYING doc/PORTS doc/README* doc/TODO