%define upstream_name Socket-Packet %define upstream_version 0.09 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Object interface to C<AF_PACKET> domain sockets License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Socket/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Exporter) >= 5.570.0 BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CChecker) BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Test::More) BuildRequires: perl-devel %description To quote 'packet(7)': Packet sockets are used to receive or send raw packets at the device driver (OSI Layer 2) level. They allow the user to implement protocol modules in user space on top of the physical layer. Sockets in the 'PF_PACKET' family get direct link-level access to the underlying hardware (i.e. Ethernet or similar). They are usually used to implement packet capturing, or sending of specially-constructed packets or to implement protocols the underlying kernel does not recognise. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %makeinstall_std %files %doc Changes LICENSE META.json META.yml MYMETA.yml README examples %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sat Jun 02 2012 kharec <kharec> 0.90.0-1.mga3 + Revision: 253295 - update to 0.09 * Wed May 30 2012 jquelin <jquelin> 0.80.0-2.mga3 + Revision: 251117 - rebuild for perl 5.16 * Sat Nov 19 2011 kharec <kharec> 0.80.0-1.mga2 + Revision: 169418 - imported package perl-Socket-Packet * Sat Nov 19 2011 cpan2dist 0.08-1mga - initial mageia release, generated with cpan2dist