diff --git a/noswitch.patch b/noswitch.patch new file mode 100644 index 0000000..54ac233 --- /dev/null +++ b/noswitch.patch @@ -0,0 +1,12 @@ +Index: yast2-network-2.20.10/src/lan/YaPI/NETWORK.pm +=================================================================== +--- yast2-network-2.20.10.orig/src/lan/YaPI/NETWORK.pm 2010-12-20 15:31:59.000000000 +0100 ++++ yast2-network-2.20.10/src/lan/YaPI/NETWORK.pm 2011-05-26 17:41:03.734911340 +0200 +@@ -4,7 +4,6 @@ use strict; + use YaST::YCP qw(:LOGGING); + use YaPI; + use Data::Dumper; +-use Switch; + + # ------------------- imported modules + YaST::YCP::Import ("LanItems"); diff --git a/yast2-network.changes b/yast2-network.changes index 01ff498..e1ebb30 100644 --- a/yast2-network.changes +++ b/yast2-network.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 26 15:44:14 UTC 2011 - coolo@novell.com + +- Switch is not used, so don't require it (removed from perl 5.13.1) + ------------------------------------------------------------------- Thu Dec 23 00:32:23 CET 2010 - mzugec@suse.cz diff --git a/yast2-network.spec b/yast2-network.spec index 37a3744..098e005 100644 --- a/yast2-network.spec +++ b/yast2-network.spec @@ -24,6 +24,7 @@ Release: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: yast2-network-2.20.10.tar.bz2 +Patch0: noswitch.patch Prefix: /usr @@ -74,6 +75,7 @@ This package contains autogenerated documentation for yast2-network %prep %setup -n yast2-network-2.20.10 +%patch0 -p1 %build %{prefix}/bin/y2tool y2autoconf