2 %include /usr/lib/rpm/macros.perl
3 Summary: NetPacket - modules to assemble/disassemble network packets of various Internet protocols
4 Summary(pl.UTF-8): NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych
9 Group: Development/Languages/Perl
10 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
11 # Source0-md5: 17ba0407dada096f046f513387e88818
12 URL: http://search.cpan.org/dist/NetPacket/
13 BuildRequires: perl-devel >= 1:5.8.0
14 BuildRequires: rpm-perlprov >= 4.1-13
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 "NetPacket" provides a base class for a cluster of modules related to
20 decoding and encoding of network protocols. Each "NetPacket"
21 descendent module knows how to encode and decode packets for the
22 network protocol it implements. At present, decoding/encoding for the
23 following protocols has been implemented: Ethernet (802.3 and 802.2),
24 ARP, ICMP, IGMP, IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w)
25 and LACP (not complete yet).
27 %description -l pl.UTF-8
28 "NetPacket" stanowi klasę bazową dla zbioru modułów służących do
29 rozkodowywania i kodowania protokołów sieciowych. Każdy z tych modułów
30 umie rozkodować i zakodować implementowany przez siebie protokół
31 sieciowy. Aktualnie zaimplementowane jest rozkodowywanie/kodowanie
32 następujących protokołów: Ethernet (802.3 i 802.2), ARP, ICMP, IGMP,
33 IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w) i LACP (jeszcze
37 %setup -q -n %{pdir}-%{version}
40 %{__perl} Makefile.PL \
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 DESTDIR=$RPM_BUILD_ROOT
50 find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/*.pm
59 %{perl_vendorlib}/%{pdir}