[packages/perl-NetPacket] Up to 1.8.0

arekm arekm at pld-linux.org
Thu Nov 19 12:13:59 CET 2026


commit aa51391676ca95b0595fc10959aaae3211ddf579
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 00:52:24 2026 +0100

    Up to 1.8.0

 perl-NetPacket-ethernet.patch | 14 --------------
 perl-NetPacket.spec           | 16 ++++++++++------
 2 files changed, 10 insertions(+), 20 deletions(-)
---
diff --git a/perl-NetPacket.spec b/perl-NetPacket.spec
index e37a76f..48fcb2d 100644
--- a/perl-NetPacket.spec
+++ b/perl-NetPacket.spec
@@ -1,14 +1,17 @@
+#
+# Conditional build:
+%bcond_without	tests		# perform "make test"
+#
 %define		pdir	NetPacket
 Summary:	NetPacket - modules to assemble/disassemble network packets of various Internet protocols
 Summary(pl.UTF-8):	NetPacket - moduły składania/rozkładania pakietów różnych protokołów internetowych
 Name:		perl-NetPacket
-Version:	1.6.0
-Release:	2
+Version:	1.8.0
+Release:	1
 License:	Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
-# Source0-md5:	17ba0407dada096f046f513387e88818
-Patch0:		%{name}-ethernet.patch
+Source0:	https://www.cpan.org/authors/id/Y/YA/YANICK/%{pdir}-%{version}.tar.gz
+# Source0-md5:	5f46d21898d14ab4ca80a86f3ce5263b
 URL:		http://search.cpan.org/dist/NetPacket/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -35,13 +38,14 @@ nie dokończone).
 
 %prep
 %setup -q -n %{pdir}-%{version}
-%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
diff --git a/perl-NetPacket-ethernet.patch b/perl-NetPacket-ethernet.patch
deleted file mode 100644
index 8ed9ad1..0000000
--- a/perl-NetPacket-ethernet.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ruN NetPacket-1.6.0.orig/lib/NetPacket/Ethernet.pm NetPacket-1.6.0/lib/NetPacket/Ethernet.pm
---- NetPacket-1.6.0.orig/lib/NetPacket/Ethernet.pm	2015-03-13 23:20:07.000000000 +0100
-+++ NetPacket-1.6.0/lib/NetPacket/Ethernet.pm	2018-10-07 15:31:17.126294738 +0200
-@@ -127,8 +127,8 @@
- sub encode {
-     my ($self) = shift; 
- 
--    (my $dest = $self->{src_mac}) =~ s/://g;
--    (my $src = $self->{dest_mac}) =~ s/://g;
-+    (my $src = $self->{src_mac}) =~ s/://g;
-+    (my $dest = $self->{dest_mac}) =~ s/://g;
- 
-     my $frame = pack('H12H12n a*', $dest, $src, 0x0800, $self->{data});
-     return $frame;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-NetPacket.git/commitdiff/aa51391676ca95b0595fc10959aaae3211ddf579



More information about the pld-cvs-commit mailing list