Package perl-Net-Packet: Specfile

# BEGIN SourceDeps(oneline):
BuildRequires: perl(Net/IPv4Addr.pm)
# END SourceDeps(oneline)
%define _unpackaged_files_terminate_build 1
%define dist Net-Packet
Name: perl-%dist
Version: 3.28
Release: alt2

Summary: A framework to easily send and receive frames from layer 2 to layer 7
License: Artistic
Group: Development/Perl

URL: %CPAN %dist
Source: http://www.cpan.org/authors/id/G/GO/GOMOR/Net-Packet-%{version}.tar.gz

BuildArch: noarch

# Automatically added by buildreq on Fri Nov 11 2011
BuildRequires: net-tools perl-Bit-Vector perl-Net-IPv6Addr perl-Net-Libdnet perl-Net-Write perl-Test-Pod perl-Test-Pod-Coverage perl(Socket6.pm)

%description
This module is a unified framework to craft, send and receive packets at
layers 2, 3, 4 and 7.

Basically, you forge each layer of a frame (Net::Packet::IPv4 for layer 3,
Net::Packet::TCP for layer 4 ; for example), and pack all of this into a
Net::Packet::Frame object. Then, you can send the frame to the network,
and receive it easily, since the response is automatically searched for
and matched against the request.

*** This framework is obsolete. Use Net::Frame::* now.

%prep
%setup -q -n %dist-%version
rm -f t/[0-9][-_]pod[-_]coverage.t t/[0-9][0-9][-_]pod[-_]coverage.t t/[0-9]pod[-_]coverage.t t/[0-9][0-9]pod[-_]coverage.t t/pod[-_]coverage.t t/[0-9][-_]podcoverage.t t/[0-9][0-9][-_]podcoverage.t t/[0-9]podcoverage.t t/[0-9][0-9]podcoverage.t t/podcoverage.t

#sed -i -e 's,^=head1,=encoding ISO8859-1\n\n=head1,' `find . -name '*.pm'`

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc Changes README
%perl_vendor_privlib/Net

%changelog
* Thu Apr 15 2021 Igor Vlasenko <viy@altlinux.org> 3.28-alt2
- fixed build using logoved

* Sun Oct 11 2015 Igor Vlasenko <viy@altlinux.ru> 3.28-alt1
- automated CPAN update

* Tue Nov 27 2012 Igor Vlasenko <viy@altlinux.ru> 3.27-alt2
- fixed build (pod encoding patch)

* Fri Nov 11 2011 Alexey Tourbin <at@altlinux.ru> 3.27-alt1
- 3.26 -> 3.27

* Sat Nov 07 2009 Denis Smirnov <mithraen@altlinux.ru> 3.26-alt1
- initial build for ALT Linux Sisyphus