]> git.pld-linux.org Git - packages/perl-NetPacket.git/blame - perl-NetPacket.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-NetPacket.git] / perl-NetPacket.spec
CommitLineData
bd8be4e0 1%define pdir NetPacket
b052933b 2Summary: NetPacket - modules to assemble/disassemble network packets of various Internet protocols
320c0d4f 3Summary(pl.UTF-8): NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych
73f4fa7c 4Name: perl-NetPacket
b0167f9b 5Version: 1.6.0
dce1b6e9 6Release: 1
b052933b 7License: Artistic
6d5a3ab0 8Group: Development/Languages/Perl
73f4fa7c 9Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
b0167f9b 10# Source0-md5: 17ba0407dada096f046f513387e88818
53cca5c1 11Patch0: %{name}-ethernet.patch
db64c399 12URL: http://search.cpan.org/dist/NetPacket/
f8993c28 13BuildRequires: perl-devel >= 1:5.8.0
db64c399 14BuildRequires: rpm-perlprov >= 4.1-13
6d5a3ab0 15BuildArch: noarch
16BuildRoot: %{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 20decoding and encoding of network protocols. Each "NetPacket"
b052933b 21descendent module knows how to encode and decode packets for the
db64c399 22network protocol it implements. At present, decoding/encoding for the
b052933b 23following protocols has been implemented: Ethernet (802.3 and 802.2),
24ARP, ICMP, IGMP, IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w)
25and 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
29rozkodowywania i kodowania protokołów sieciowych. Każdy z tych modułów
30umie rozkodować i zakodować implementowany przez siebie protokół
b052933b 31sieciowy. Aktualnie zaimplementowane jest rozkodowywanie/kodowanie
3f15ec29 32następujących protokołów: Ethernet (802.3 i 802.2), ARP, ICMP, IGMP,
b052933b 33IP, UDP, TCP, LLC, Spanning Tree (802.1D and 802.1w) i LACP (jeszcze
3f15ec29 34nie 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
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
276bb429 49%{__make} install \
50 DESTDIR=$RPM_BUILD_ROOT
6d5a3ab0 51find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
52
53%clean
54rm -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/*
This page took 0.075719 seconds and 4 git commands to generate.