Name: perl-NetPacket Version: 0.42.0 Release: 1%{?dist} Summary: Modules to assemble/disassemble network packets at the protocol level License: GPL+ or Artistic 2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/NetPacket/ Source0: http://www.cpan.org/authors/id/Y/YA/YANICK/NetPacket-v%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} %description NetPacket provides a base class for a cluster of modules related to decoding and encoding of network protocols. Each NetPacket descendant 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. %prep %setup -q -n NetPacket-v%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Mar 29 2010 Jan Klepek 0.42.0-1 - Changed license to Artistic 2.0 and updated version * Mon Mar 15 2010 Jan Klepek 0.41.1-1 - Specfile autogenerated by cpanspec 1.78.