[perl-NetPacket] * Import (review ticket #573848)

Jose Pedro Oliveira jpo at fedoraproject.org
Mon Jan 10 19:41:27 UTC 2011


commit 7952f2414c3c3ea6b779eb48552160222fd138e0
Author: Jose Pedro Oliveira <jpo at di.uminho.pt>
Date:   Mon Jan 10 19:39:10 2011 +0000

     * Import (review ticket #573848)

 .gitignore                                         |    1 +
 ...1-Build.PL-downgrade-modules-requirements.patch |   27 ++++++++
 perl-NetPacket.spec                                |   63 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0dc7f29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/NetPacket-1.0.1.tar.gz
diff --git a/NetPacket-1.0.1-Build.PL-downgrade-modules-requirements.patch b/NetPacket-1.0.1-Build.PL-downgrade-modules-requirements.patch
new file mode 100644
index 0000000..7c0dd49
--- /dev/null
+++ b/NetPacket-1.0.1-Build.PL-downgrade-modules-requirements.patch
@@ -0,0 +1,27 @@
+diff -ruN NetPacket-1.0.1/Build.PL NetPacket-1.0.1-modified/Build.PL
+--- NetPacket-1.0.1/Build.PL	2010-10-20 01:02:15.000000000 +0100
++++ NetPacket-1.0.1-modified/Build.PL	2010-11-10 17:53:40.105097429 +0000
+@@ -2,19 +2,19 @@
+ use strict;
+ use warnings;
+ 
+-use Module::Build 0.3601;
++use Module::Build 0.2807;
+ 
+ 
+ my %module_build_args = (
+   'build_requires' => {
+     'Carp' => '0',
+-    'Module::Build' => '0.3601',
++    'Module::Build' => '0.2807',
+     'Scalar::Util' => '0',
+-    'Test::More' => '0.94',
++    'Test::More' => '0.62',
+     'perl' => '5.004'
+   },
+   'configure_requires' => {
+-    'Module::Build' => '0.3601'
++    'Module::Build' => '0.2807'
+   },
+   'dist_abstract' => 'assemble/disassemble network packets at the protocol level',
+   'dist_author' => [
diff --git a/perl-NetPacket.spec b/perl-NetPacket.spec
new file mode 100644
index 0000000..12f6f3d
--- /dev/null
+++ b/perl-NetPacket.spec
@@ -0,0 +1,63 @@
+Name:           perl-NetPacket
+Version:        1.0.1
+Release:        1%{?dist}
+Summary:        Assemble/disassemble network packets at the protocol level
+License:        Artistic 2.0
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/NetPacket/
+Source0:        http://www.cpan.org/authors/id/Y/YA/YANICK/NetPacket-%{version}.tar.gz
+Patch0:         NetPacket-1.0.1-Build.PL-downgrade-modules-requirements.patch
+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))
+
+%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-%{version}
+%patch0 -p1
+mv t/000-report-versions.t t/000-report-versions.t.disable
+
+%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 LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Dec 24 2010 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.0.1-1
+- Update to 1.0.1.
+- Disable test t/000-report-versions.t and downgrade build requirements
+  (NetPacket-1.0.1-Build.PL-downgrade-modules-requirements.patch) in order
+  to support EPEL >= 5 and Fedora >= 12.
+
+* 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.
diff --git a/sources b/sources
index e69de29..7e7062a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0cc9dbad360096bf002e9673826cf4ef  NetPacket-1.0.1.tar.gz


More information about the scm-commits mailing list