]>
Commit | Line | Data |
---|---|---|
bd8be4e0 | 1 | %define pdir NetPacket |
b052933b | 2 | Summary: NetPacket - modules to assemble/disassemble network packets of various Internet protocols |
320c0d4f | 3 | Summary(pl.UTF-8): NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych |
73f4fa7c | 4 | Name: perl-NetPacket |
b0167f9b | 5 | Version: 1.6.0 |
dce1b6e9 | 6 | Release: 1 |
b052933b | 7 | License: Artistic |
6d5a3ab0 | 8 | Group: Development/Languages/Perl |
73f4fa7c | 9 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz |
b0167f9b | 10 | # Source0-md5: 17ba0407dada096f046f513387e88818 |
53cca5c1 | 11 | Patch0: %{name}-ethernet.patch |
db64c399 | 12 | URL: http://search.cpan.org/dist/NetPacket/ |
f8993c28 | 13 | BuildRequires: perl-devel >= 1:5.8.0 |
db64c399 | 14 | BuildRequires: rpm-perlprov >= 4.1-13 |
6d5a3ab0 | 15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
b052933b | 19 | "NetPacket" provides a base class for a cluster of modules related to |
db64c399 | 20 | decoding and encoding of network protocols. Each "NetPacket" |
b052933b | 21 | descendent module knows how to encode and decode packets for the |
db64c399 | 22 | network protocol it implements. At present, decoding/encoding for the |
b052933b | 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). | |
6d5a3ab0 | 26 | |
3f15ec29 JR |
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ół | |
b052933b | 31 | sieciowy. Aktualnie zaimplementowane jest rozkodowywanie/kodowanie |
3f15ec29 | 32 | następujących protokołów: Ethernet (802.3 i 802.2), ARP, ICMP, IGMP, |
b052933b | 33 | IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w) i LACP (jeszcze |
3f15ec29 | 34 | nie dokończone). |
c853a3ea | 35 | |
6d5a3ab0 | 36 | %prep |
73f4fa7c | 37 | %setup -q -n %{pdir}-%{version} |
53cca5c1 | 38 | %patch0 -p1 |
6d5a3ab0 | 39 | |
40 | %build | |
d404063a | 41 | %{__perl} Makefile.PL \ |
90390451 | 42 | INSTALLDIRS=vendor |
6d5a3ab0 | 43 | %{__make} |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
48 | ||
276bb429 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
6d5a3ab0 | 51 | find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
799c324e | 58 | %doc README |
73f4fa7c | 59 | %{perl_vendorlib}/*.pm |
60 | %{perl_vendorlib}/%{pdir} | |
6d5a3ab0 | 61 | %{_mandir}/man3/* |