1 Summary: C library for portable packet creation and injection
2 Summary(pl.UTF-8): Biblioteka C do przenośnego tworzenia i wprowadzania pakietów
3 Summary(pt_BR.UTF-8): 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: be845c41170d72c7db524f3411b50256
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: libtool
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The Network Library provides a simple API for commonly used low-level
22 network functions (mainly packet injection). Using libnet, it is easy
23 to build and write arbitrary network packets. It provides a portable
24 framework for low-level network packet writing and handling (use
25 libnet in conjunction with libpcap and you can write some really cool
26 stuff). Libnet includes packet creation at the IP layer and at the
27 link layer as well as a host of supplementary and complementary
30 %description -l pl.UTF-8
31 Biblioteka dostarcza API dla popularnych niskopoziomowych funkcji
32 sieciowych (głównie wprowadzania pakietów). Przy użyciu libnet można
33 łatwo stworzyć dowolne pakiety sieciowe. Biblioteka dostarcza
34 przenośny szkielet do niskopoziomowego zapisu i obsługi pakietów
35 sieciowych (w połączeniu z libpcap można napisać coś naprawdę
36 fajnego). Libnet obejmuje tworzenie pakietów w warstwie IP i
37 połączenia, a także funkcjonalność dodatkową i uzupełniającą.
39 %description -l pt_BR.UTF-8
40 Este pacote fornece uma API simples para funções de rede de baixo
41 nível comumente usadas (principalmente injeção de pacotes). Usando
42 libnet, é simples construir e enviar pacotes de rede arbitrários.
45 Summary: Header files and develpment documentation for libnet
46 Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libnet
47 Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento
48 Group: Development/Libraries
49 Requires: %{name} = %{epoch}:%{version}-%{release}
52 Header files and develpment documentation for libnet.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe i dokumentacja do libnet.
57 %description devel -l pt_BR.UTF-8
58 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
59 aplicativos que usam libnet.
62 Summary: Static libnet library
63 Summary(pl.UTF-8): Biblioteka statyczna libnet
64 Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento estático
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
69 Static libnet library.
71 %description static -l pl.UTF-8
72 Biblioteka statyczna libnet.
74 %description static -l pt_BR.UTF-8
75 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
76 aplicativos estáticos que usam libnet.
79 Summary: libnet - example programs
80 Summary(pl.UTF-8): libnet - programy przykładowe
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
85 libnet - example programs.
87 %description examples -l pl.UTF-8
88 libnet - programy przykładowe.
103 CFLAGS="%{rpmcflags}"
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_mandir}/man3,%{_bindir}}
110 DESTDIR=$RPM_BUILD_ROOT
112 ln -sf libnet.so $RPM_BUILD_ROOT%{_libdir}/libpwrite.so
113 ln -sf libnet.a $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
114 install sample/*.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115 install doc/man/man3/libnet-functions.h.3 $RPM_BUILD_ROOT%{_mandir}/man3
116 install libnet-config $RPM_BUILD_ROOT%{_bindir}
119 rm -rf $RPM_BUILD_ROOT
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc README doc/{CHANGELOG,MIGRATION,PACKET_BUILDING}
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/libnet-config
132 %attr(755,root,root) %{_libdir}/lib*.so
135 %{_includedir}/libnet
139 %defattr(644,root,root,755)
143 %defattr(644,root,root,755)
144 %{_examplesdir}/%{name}-%{version}