8
0
Files
perl-NetPacket/perl-NetPacket.spec

64 lines
1.9 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
Name: perl-NetPacket
Version: 1.1.1
Release: 0
Summary: Assemble/disassemble network packets at the protocol level
Source: http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-%{version}.tar.gz
URL: http://search.cpan.org/dist/NetPacket
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.94
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Module::Build) >= 0.3601
BuildRequires: perl(Carp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(vars)
BuildRequires: perl(constant)
Requires: perl(vars)
Requires: perl(constant)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
"NetPacket" provides a base class for a cluster of modules related to
decoding and encoding of network protocols. Each "NetPacket" descendent
module knows how to encode and decode packets for the network protocol it
implements. Consult the documentation for the module in question for
protocol-specific implementation.
Note that there is no inheritance in the "NetPacket::" cluster of modules
other than each protocol module being a "NetPacket". This was seen to be
too restrictive as imposing inheritance relationships (for example between
the IP, UDP and TCP protocols) would make things like tunneling or other
unusual situations difficult.
%prep
%setup -q -n "NetPacket-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README LICENSE Changes
%{perl_vendorlib}/NetPacket
%{perl_vendorlib}/NetPacket.pm
%doc %{perl_man3dir}/NetPacket.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/NetPacket::*.%{perl_man3ext}%{ext_man}