]> git.pld-linux.org Git - packages/perl-NetPacket.git/blob - perl-NetPacket.spec
- up to 1.6.0
[packages/perl-NetPacket.git] / perl-NetPacket.spec
1 %define         pdir    NetPacket
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
5 Name:           perl-NetPacket
6 Version:        1.6.0
7 Release:        1
8 License:        Artistic
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
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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).
26
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
34 nie dokończone).
35
36 %prep
37 %setup -q -n %{pdir}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50 find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %{perl_vendorlib}/*.pm
59 %{perl_vendorlib}/%{pdir}
60 %{_mandir}/man3/*
This page took 0.255102 seconds and 4 git commands to generate.