From 1356be48bd35d555754c4d6fe202bf1fe70f480ed5ff15fa76a3430cd9ba7b97 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Wed, 29 Feb 2012 16:09:40 +0000 Subject: [PATCH] - add old_test_more patch to build with sle11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-OptList?expand=0&rev=19 --- old_test_more.patch | 28 ++++++++++++++++++++++++++++ perl-Data-OptList.changes | 5 +++++ perl-Data-OptList.spec | 18 +++++++++++------- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 old_test_more.patch diff --git a/old_test_more.patch b/old_test_more.patch new file mode 100644 index 0000000..76fca56 --- /dev/null +++ b/old_test_more.patch @@ -0,0 +1,28 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -12,7 +12,7 @@ + 'ABSTRACT' => 'parse and validate simple name/value option pairs', + 'AUTHOR' => 'Ricardo Signes ', + 'BUILD_REQUIRES' => { +- 'Test::More' => '0.96' ++ 'Test::More' => '0.01' + }, + 'CONFIGURE_REQUIRES' => { + 'ExtUtils::MakeMaker' => '6.30' +--- t/mkopt.t ++++ t/mkopt.t +@@ -10,7 +10,7 @@ + + use Data::OptList; + use Sub::Install; +-use Test::More 0.88; ++use Test::More qw(no_plan); + + + # let's get a convenient copy to use: +@@ -180,4 +180,4 @@ + ], + ); + +-done_testing; ++#done_testing; diff --git a/perl-Data-OptList.changes b/perl-Data-OptList.changes index 9aeace9..e5a49f0 100644 --- a/perl-Data-OptList.changes +++ b/perl-Data-OptList.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 29 17:09:20 CET 2012 - ro@suse.de + +- add old_test_more patch to build with sle11 + ------------------------------------------------------------------- Sat Nov 19 16:09:00 UTC 2011 - coolo@suse.com diff --git a/perl-Data-OptList.spec b/perl-Data-OptList.spec index 7a95a14..eaf613e 100644 --- a/perl-Data-OptList.spec +++ b/perl-Data-OptList.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-OptList # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,18 +15,19 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Data-OptList %define cpan_name Data-OptList Summary: Parse and validate simple name/value option pairs -Version: 0.107 -Release: 4 License: Artistic-1.0 Group: Development/Libraries/Perl +Version: 0.107 +Release: 0 Url: http://search.cpan.org/dist/Data-OptList Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz +%if 0%{?suse_version} < 1120 +Patch0: old_test_more.patch +%endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} @@ -34,13 +35,13 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(List::Util) >= 0.00 # other not perl || perl-base -BuildRequires: perl(Sub::Install) >= 0.921 BuildRequires: perl(Params::Util) >= 0.14 +BuildRequires: perl(Sub::Install) >= 0.921 # Requires: perl(List::Util) >= 0.00 # other not perl || perl-base -Requires: perl(Sub::Install) >= 0.921 Requires: perl(Params::Util) >= 0.14 +Requires: perl(Sub::Install) >= 0.921 %description Hashes are great for storing named data, but if you want more than one @@ -79,6 +80,9 @@ Requires: perl(Params::Util) >= 0.14 %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} < 1120 +%patch0 +%endif %build %{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"