[perl-Net-Pcap] update to 0.17
Iain Arnell
iarnell at fedoraproject.org
Fri Jan 18 15:27:53 UTC 2013
commit e2428afa49a43fd7c1f975cd0d2817428405a029
Author: Iain Arnell <iarnell at gmail.com>
Date: Fri Jan 18 08:27:45 2013 -0700
update to 0.17
.gitignore | 1 +
perl-Net-Pcap-ccflags.patch | 12 ++++++------
perl-Net-Pcap.spec | 15 ++++++---------
sources | 2 +-
4 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a246eb1..c7f254d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
Net-Pcap-0.16.tar.gz
+/Net-Pcap-0.17.tar.gz
diff --git a/perl-Net-Pcap-ccflags.patch b/perl-Net-Pcap-ccflags.patch
index 1155a57..a98ac08 100644
--- a/perl-Net-Pcap-ccflags.patch
+++ b/perl-Net-Pcap-ccflags.patch
@@ -1,6 +1,6 @@
-diff -up Net-Pcap-0.16/Makefile.PL.orig Net-Pcap-0.16/Makefile.PL
---- Net-Pcap-0.16/Makefile.PL.orig 2007-12-24 00:06:15.000000000 +0100
-+++ Net-Pcap-0.16/Makefile.PL 2011-06-17 12:11:26.970169054 +0200
+diff -up Net-Pcap-0.17/Makefile.PL.orig Net-Pcap-0.17/Makefile.PL
+--- Net-Pcap-0.17/Makefile.PL.orig 2012-11-27 16:06:02.000000000 -0700
++++ Net-Pcap-0.17/Makefile.PL 2013-01-18 08:20:19.145064264 -0700
@@ -7,6 +7,7 @@ use File::Spec;
@@ -13,8 +13,8 @@ diff -up Net-Pcap-0.16/Makefile.PL.orig Net-Pcap-0.16/Makefile.PL
cygwin_pcap_headers();
}
else {
-- $options{CCFLAGS} = '-Wall -Wwrite-strings' if $Config{ccname} eq 'gcc' and $] >= 5.006;
-+ $options{CCFLAGS} = "-Wall -Wwrite-strings $Config{ccflags}" if $Config{ccname} eq 'gcc' and $] >= 5.006;
+- $options{CCFLAGS} = "-Wall -Wwrite-strings"
++ $options{CCFLAGS} = "-Wall -Wwrite-strings $Config{ccflags}"
+ if $Config{ccname} eq "gcc" and $] >= 5.006;
$options{LIBS} = '-lpcap';
}
-
diff --git a/perl-Net-Pcap.spec b/perl-Net-Pcap.spec
index a23d61e..b27cc81 100644
--- a/perl-Net-Pcap.spec
+++ b/perl-Net-Pcap.spec
@@ -1,6 +1,6 @@
Name: perl-Net-Pcap
-Version: 0.16
-Release: 15%{?dist}
+Version: 0.17
+Release: 1%{?dist}
Summary: Interface to pcap(3) LBL packet capture library
Group: Development/Libraries
@@ -11,7 +11,6 @@ Source0: http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-%{ver
Patch0: net-pcap-0.16-eg-pcapdump.patch
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
Patch1: perl-Net-Pcap-ccflags.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
BuildRequires: libpcap-devel
@@ -41,7 +40,6 @@ make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
@@ -53,12 +51,7 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
%doc Changes README
%doc eg/ t/
%{_bindir}/*
@@ -68,6 +61,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Jan 18 2013 Iain Arnell <iarnell at gmail.com> 0.17-1
+- update to latest upstream version
+- clean up spec for modern rpmbuild
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.16-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index cb596af..e49ea76 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b150d8e0a40137fad2a7df792d80cab4 Net-Pcap-0.16.tar.gz
+fbe911ba5f57d5ba43494434ffb828a0 Net-Pcap-0.17.tar.gz
More information about the scm-commits
mailing list