1 Summary: Packet creation and handling library
2 Summary(pl): Biblioteka do generacji i obróbki pakietów
6 Copyright: distributable
7 Group: Development/Libraries
8 Group(fr): Development/Librairies
9 Group(pl): Programowanie/Biblioteki
10 Source0: http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tgz
11 Patch0: libnet-autoconf.patch
12 URL: http://www.packetfactory.net/libnet
13 BuildRequires: libpcap-devel
14 Requires: libpcap-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Libnet is a collection of routines to help with the construction and
19 sending of network packets at the link layer and the IP layer. Use
20 libnet in conjunction with packet capture library (libpcap) and you
21 can write some really cool stuff!.
24 Libnet jest bibliotek± na któr± sk³adaj± siê procedury pomagaj±ce w
25 tworzeniu i wysy³aniu pakietów w sieciowych warstwach: danych oraz IP.
26 W po³±czeniu z bibliotek± do przechwytywania pakietów (libpcap),
27 libnet pozwoli Ci na napisanie naprawdê fajnych rzeczy!.
30 Summary: Libnet library - source code of demo programs
31 Summary(pl): Biblioteka libnet - ¼ród³a programów demonstracyjnych
32 Group: Development/Libraries
33 Group(fr): Development/Librairies
34 Group(pl): Programowanie/Biblioteki
35 Requires: %{name} = %{version}
38 Libnet library - source code of demo programs
40 %description demo -l pl
41 Biblioteka libnet - wersje ¼ród³owe programów demonstracyjnych
45 %setup -q -n Libnet-%{version}
48 rm -rf doc/{.#CHANGELOG.1.13,CVS,html/CVS}
49 rm -rf example/{CVS,html/CVS}
50 rm -rf test/CVS test/*/CVS
57 %{__make} CFLAGS="$RPM_OPT_FLAGS -funroll-loops -fomit-frame-pointer -Wall"
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/libnet/libnet-examples
63 %{__make} install DESTDIR=$RPM_BUILD_ROOT
65 ln -sf libnet.a $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
66 cp -r example/* $RPM_BUILD_ROOT%{_prefix}/src/examples/libnet/libnet-examples
67 cp -r test/* $RPM_BUILD_ROOT%{_prefix}/src/examples/libnet/
69 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
70 doc/{CHANGELOG*,README*,COPYING,TODO*}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/*
85 %defattr(644,root,root,755)
86 %{_prefix}/src/examples/libnet