]>
Commit | Line | Data |
---|---|---|
6d5a3ab0 | 1 | %include /usr/lib/rpm/macros.perl |
bd8be4e0 | 2 | %define pdir NetPacket |
b052933b | 3 | Summary: NetPacket - modules to assemble/disassemble network packets of various Internet protocols |
3f15ec29 | 4 | Summary(pl.UTF-8): NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych |
73f4fa7c | 5 | Name: perl-NetPacket |
5623dd8a | 6 | Version: 0.04 |
d404063a | 7 | Release: 2 |
b052933b | 8 | License: Artistic |
6d5a3ab0 | 9 | Group: Development/Languages/Perl |
73f4fa7c | 10 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz |
135c20c7 | 11 | # Source0-md5: 3bf136cd3b555d50ba4b1ce81968f695 |
d404063a | 12 | BuildRequires: rpm-perlprov >= 4.1-13 |
f8993c28 | 13 | BuildRequires: perl-devel >= 1:5.8.0 |
6d5a3ab0 | 14 | BuildArch: noarch |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
b052933b | 18 | "NetPacket" provides a base class for a cluster of modules related to |
19 | decoding and encoding of network protocols. Each "NetPacket" | |
20 | descendent module knows how to encode and decode packets for the | |
21 | network protocol it implements. At present, decoding/encoding for the | |
22 | following protocols has been implemented: Ethernet (802.3 and 802.2), | |
23 | ARP, ICMP, IGMP, IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w) | |
24 | and LACP (not complete yet). | |
6d5a3ab0 | 25 | |
3f15ec29 JR |
26 | %description -l pl.UTF-8 |
27 | "NetPacket" stanowi klasę bazową dla zbioru modułów służących do | |
28 | rozkodowywania i kodowania protokołów sieciowych. Każdy z tych modułów | |
29 | umie rozkodować i zakodować implementowany przez siebie protokół | |
b052933b | 30 | sieciowy. Aktualnie zaimplementowane jest rozkodowywanie/kodowanie |
3f15ec29 | 31 | następujących protokołów: Ethernet (802.3 i 802.2), ARP, ICMP, IGMP, |
b052933b | 32 | IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w) i LACP (jeszcze |
3f15ec29 | 33 | nie dokończone). |
c853a3ea | 34 | |
6d5a3ab0 | 35 | %prep |
73f4fa7c | 36 | %setup -q -n %{pdir}-%{version} |
6d5a3ab0 | 37 | |
38 | %build | |
d404063a | 39 | %{__perl} Makefile.PL \ |
90390451 | 40 | INSTALLDIRS=vendor |
6d5a3ab0 | 41 | %{__make} |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46 | ||
276bb429 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
6d5a3ab0 | 49 | find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
799c324e | 56 | %doc README |
73f4fa7c | 57 | %{perl_vendorlib}/*.pm |
58 | %{perl_vendorlib}/%{pdir} | |
6d5a3ab0 | 59 | %{_mandir}/man3/* |