1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
%include /usr/lib/rpm/macros.perl
%define pnam NetPacket
Summary: NetPacket do disassembly of network packets of various Internet protocols
Summary(pl): Moduł NetPacket do rozkładania pakietów różnych protokołów internetowych
Name: perl-%{pnam}
Version: 0.03
Release: 2
License: GPL
Group: Development/Languages/Perl
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{pnam}/%{pnam}-%{version}.tar.gz
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildRequires: perl >= 5.6.1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
The NetPacket module do disassembly of network packets of various
Internet protocols. At present, decoding for the following protocols
has been implemented: Ethernet (802.3 and 802.2), ARP, ICMP, IGMP, IP,
UDP and TCP.
%description -l pl
Moduł NetPacket rozkłada pakiety sieciowe różnych internetowych
protokołów. Aktualnie ma zaimplementowane dekodowanie następujących
protokołów: Ethernet (802.3 i 802.2), ARP, ICMP, IGMP, IP, UDP i TCP.
%prep
%setup -q -n %{pnam}-%{version}
%build
perl Makefile.PL
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf README
find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{perl_sitelib}/%{pnam}.pm
%{perl_sitelib}/%{pnam}
%{_mandir}/man3/*
%doc *.gz
|