1 Summary: "libpwrite" Network Routine Library
2 Summary(pl): Biblioteka czynno¶ci sieciowych
10 Group(es): Bibliotecas
13 Source0: http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
14 Patch0: %{name}-shared.patch
15 URL: http://www.packetfactory.net/libnet/
16 BuildRequires: libpcap-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The Network Library provides a simple API for commonly used low-level
21 network functions (mainly packet injection). Using libnet, it is easy
22 to build and write arbitrary network packets. It provides a portable
23 framework for low-level network packet writing and handling (use
24 libnet in conjunction with libpcap and you can write some really cool
25 stuff). Libnet includes packet creation at the IP layer and at the
26 link layer as well as a host of supplementary and complementary
30 Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
31 sieciowych (g³ównie wstrzykuj±cych pakiety).
34 Summary: Header files and develpment documentation for libnet
35 Summary(pl): Pliki nag³ówkowe i dokumetacja do libnet
36 Group: Development/Libraries
37 Group(de): Entwicklung/Libraries
38 Group(fr): Development/Librairies
39 Group(pl): Programowanie/Biblioteki
40 Requires: %{name} = %{version}
43 Header files and develpment documentation for libnet.
45 %description -l pl devel
46 Pliki nag³ówkowe i dokumetacja do libnet.
49 Summary: Static libnet library
50 Summary(pl): Biblioteka statyczna libnet
51 Group: Development/Libraries
52 Group(de): Entwicklung/Libraries
53 Group(fr): Development/Librairies
54 Group(pl): Programowanie/Biblioteki
55 Requires: %{name}-devel = %{version}
58 Static libnet library.
60 %description -l pl static
61 Biblioteka statyczna libnet.
64 %setup -q -n Libnet-%{version}
70 %{__make} CFLAGS="%{rpmcflags}"
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT \
77 MAN_PREFIX=%{_mandir}/man3
79 (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libnet.so.*.* libnet.so )
80 ln -sf libnet.so $RPM_BUILD_ROOT%{_libdir}/libpwrite
82 gzip -9nf README doc/CHANGELOG*
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/lib*.so.*.*
94 %attr(755,root,root) %{_libdir}/libpwrite
97 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) %{_libdir}/lib*.so
102 %{_includedir}/libnet
106 %defattr(644,root,root,755)