]>
Commit | Line | Data |
---|---|---|
d310be62 | 1 | Summary: "libpwrite" Network Routine Library |
7adb3d27 ER |
2 | Summary(pl.UTF-8): Biblioteka czynności sieciowych |
3 | Summary(pt_BR.UTF-8): API para funções de rede de baixo nível | |
d310be62 | 4 | Name: libnet1 |
5 | Version: 1.0.2a | |
47da18dc | 6 | Release: 4 |
d310be62 | 7 | License: BSD |
8 | Group: Libraries | |
292cc962 | 9 | Source0: http://www.packetfactory.net/libnet/dist/deprecated/libnet-%{version}.tar.gz |
d310be62 | 10 | # Source0-md5: ddf53f0f484184390e8c2a1bd0853667 |
11 | Patch0: %{name}-shared.patch | |
12 | Patch1: %{name}-include.patch | |
13 | Patch2: %{name}-name.patch | |
14 | URL: http://www.packetfactory.net/libnet/ | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: libpcap-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
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 | |
28 | functionality. | |
29 | ||
0963a4cc | 30 | %description -l pl.UTF-8 |
292cc962 JB |
31 | Biblioteka sieciowa (Network Library, libnet) dostarcza proste API |
32 | dla często używanych niskopoziomowych funkcji sieciowych (głównie | |
33 | wstrzykujących pakiety). Przy użyciu libnet można łatwo tworzyć | |
34 | dowolne pakiety sieciowe. Biblioteka jest przenośnym szkieletem do | |
35 | niskopoziomowego tworzenia i obsługi pakietów sieciowych (szczególnie | |
36 | w połączeniu z libpcap). Zawiera funkcje do tworzenia pakietów w | |
37 | warstwie IP oraz w warstwie połączenia, a także wiele funkcji | |
38 | uzupełniających. | |
d310be62 | 39 | |
0963a4cc JR |
40 | %description -l pt_BR.UTF-8 |
41 | Este pacote fornece uma API simples para funções de rede de baixo | |
42 | nível comumente usadas (principalmente injeção de pacotes). Usando | |
43 | libnet, é simples construir e enviar pacotes de rede arbitrários. | |
d310be62 | 44 | |
45 | %package devel | |
46 | Summary: Header files and develpment documentation for libnet | |
7adb3d27 ER |
47 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libnet |
48 | Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento | |
d310be62 | 49 | Group: Development/Libraries |
c33ed2ee | 50 | Requires: %{name} = %{version}-%{release} |
d310be62 | 51 | |
52 | %description devel | |
53 | Header files and develpment documentation for libnet. | |
54 | ||
0963a4cc JR |
55 | %description devel -l pl.UTF-8 |
56 | Pliki nagłówkowe i dokumentacja do libnet. | |
d310be62 | 57 | |
0963a4cc JR |
58 | %description devel -l pt_BR.UTF-8 |
59 | Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de | |
d310be62 | 60 | aplicativos que usam libnet. |
61 | ||
62 | %package static | |
63 | Summary: Static libnet library | |
7adb3d27 ER |
64 | Summary(pl.UTF-8): Biblioteka statyczna libnet |
65 | Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento estático | |
d310be62 | 66 | Group: Development/Libraries |
c33ed2ee | 67 | Requires: %{name}-devel = %{version}-%{release} |
d310be62 | 68 | |
69 | %description static | |
70 | Static libnet library. | |
71 | ||
0963a4cc | 72 | %description static -l pl.UTF-8 |
d310be62 | 73 | Biblioteka statyczna libnet. |
74 | ||
0963a4cc JR |
75 | %description static -l pt_BR.UTF-8 |
76 | Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de | |
77 | aplicativos estáticos que usam libnet. | |
d310be62 | 78 | |
79 | %prep | |
80 | %setup -q -n Libnet-%{version} | |
81 | %patch0 -p1 | |
82 | %patch1 -p1 | |
83 | %patch2 -p1 | |
84 | mv include/libnet include/libnet1 | |
85 | ||
86 | %build | |
87 | install %{_datadir}/automake/config.* . | |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %configure \ | |
91 | --with-pf_packet=yes | |
92 | %{__make} CFLAGS="%{rpmcflags}" | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | mv include/libnet.h include/libnet1.h | |
98 | mv doc/libnet.3 doc/libnet1.3 | |
99 | mv libnet-config libnet1-config | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT \ | |
103 | MAN_PREFIX=%{_mandir}/man3 | |
104 | ||
105 | ln -sf libnet1.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libnet1.so | |
106 | ln -sf libnet1.so $RPM_BUILD_ROOT%{_libdir}/libpwrite1.so | |
107 | ln -sf libnet1.a $RPM_BUILD_ROOT%{_libdir}/libpwrite1.a | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc README doc/CHANGELOG* | |
292cc962 | 118 | %attr(755,root,root) %{_libdir}/libnet1.so.*.* |
d310be62 | 119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
292cc962 JB |
122 | %attr(755,root,root) %{_bindir}/libnet1-config |
123 | %attr(755,root,root) %{_libdir}/libnet1.so | |
124 | %attr(755,root,root) %{_libdir}/libpwrite1.so | |
125 | %{_includedir}/libnet1.h | |
d310be62 | 126 | %{_includedir}/libnet1 |
292cc962 | 127 | %{_mandir}/man3/libnet1.3* |
d310be62 | 128 | |
129 | %files static | |
130 | %defattr(644,root,root,755) | |
292cc962 JB |
131 | %{_libdir}/libnet1.a |
132 | %{_libdir}/libpwrite1.a |