]> git.pld-linux.org Git - packages/perl-NetPacket.git/blob - perl-NetPacket.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-NetPacket.git] / perl-NetPacket.spec
1 %define         pdir    NetPacket
2 Summary:        NetPacket - modules to assemble/disassemble network packets of various Internet protocols
3 Summary(pl.UTF-8):      NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych
4 Name:           perl-NetPacket
5 Version:        1.6.0
6 Release:        1
7 License:        Artistic
8 Group:          Development/Languages/Perl
9 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
10 # Source0-md5:  17ba0407dada096f046f513387e88818
11 Patch0:         %{name}-ethernet.patch
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 %patch0 -p1
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
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)
58 %doc README
59 %{perl_vendorlib}/*.pm
60 %{perl_vendorlib}/%{pdir}
61 %{_mandir}/man3/*
This page took 0.085081 seconds and 4 git commands to generate.