1 Summary: "libpwrite" Network Routine Library
2 Summary(pl): Biblioteka czynno¶ci sieciowych
3 Summary(pt_BR): API para funções de rede de baixo nível
10 Source0: http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
11 # Source0-md5: d72d07923bbe7c547b40c55d1a4df79d
12 Patch0: %{name}-shared.patch
13 Patch1: %{name}-am.patch
14 URL: http://www.packetfactory.net/libnet/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libpcap-devel
18 BuildRequires: libtool
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The Network Library provides a simple API for commonly used low-level
23 network functions (mainly packet injection). Using libnet, it is easy
24 to build and write arbitrary network packets. It provides a portable
25 framework for low-level network packet writing and handling (use
26 libnet in conjunction with libpcap and you can write some really cool
27 stuff). Libnet includes packet creation at the IP layer and at the
28 link layer as well as a host of supplementary and complementary
32 Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
33 sieciowych (g³ównie wstrzykuj±cych pakiety).
36 Este pacote fornece uma API simples para funções de rede de baixo
37 nível comumente usadas (principalmente injeção de pacotes). Usando
38 libnet, é simples construir e enviar pacotes de rede arbitrários.
41 Summary: Header files and develpment documentation for libnet
42 Summary(pl): Pliki nag³ówkowe i dokumetacja do libnet
43 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento
44 Group: Development/Libraries
45 Requires: %{name} = %{epoch}:%{version}
48 Header files and develpment documentation for libnet.
50 %description devel -l pl
51 Pliki nag³ówkowe i dokumetacja do libnet.
53 %description devel -l pt_BR
54 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
55 aplicativos que usam libnet.
58 Summary: Static libnet library
59 Summary(pl): Biblioteka statyczna libnet
60 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento estático
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{epoch}:%{version}
65 Static libnet library.
67 %description static -l pl
68 Biblioteka statyczna libnet.
70 %description static -l pt_BR
71 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
72 aplicativos estáticos que usam libnet.
75 Summary: libnet - example programs
76 Summary(pl): libnet - programy przyk³adowe
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{epoch}:%{version}
79 Requires: %{name}-static = %{epoch}:%{version}
82 libnet - example programs.
84 %description examples -l pl
85 libnet - programy przyk³adowe.
99 %{__make} CFLAGS="%{rpmcflags}"
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_mandir}/man3}
106 DESTDIR=$RPM_BUILD_ROOT
108 ln -sf libnet.so $RPM_BUILD_ROOT%{_libdir}/libpwrite.so
109 ln -sf libnet.a $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
110 install sample/*.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
111 install doc/man/man3/libnet-functions.h.3 $RPM_BUILD_ROOT/%{_mandir}/man3
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc README doc/{CHANGELOG,MIGRATION,PACKET_BUILDING}
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/lib*.so
129 %{_includedir}/libnet
133 %defattr(644,root,root,755)
137 %defattr(644,root,root,755)
138 %{_examplesdir}/%{name}-%{version}