From abb2a85b9c4c9ab177110ccb5636c2fc5358b69a0817d0f410198f7e19b291cc Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Fri, 2 Mar 2012 00:42:54 +0000 Subject: [PATCH] - fix build on sle11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Section-Simple?expand=0&rev=3 --- perl-Data-Section-Simple.changes | 5 +++++ perl-Data-Section-Simple.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/perl-Data-Section-Simple.changes b/perl-Data-Section-Simple.changes index 0c7561e..a40a5fc 100644 --- a/perl-Data-Section-Simple.changes +++ b/perl-Data-Section-Simple.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 2 01:42:33 CET 2012 - ro@suse.de + +- fix build on sle11 + ------------------------------------------------------------------- Mon Dec 19 12:31:26 UTC 2011 - coolo@suse.de diff --git a/perl-Data-Section-Simple.spec b/perl-Data-Section-Simple.spec index 5f8849e..69b5241 100644 --- a/perl-Data-Section-Simple.spec +++ b/perl-Data-Section-Simple.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Section-Simple # -# 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,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: perl-Data-Section-Simple Version: 0.03 Release: 0 @@ -48,6 +49,11 @@ section of the file. %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} <= 1110 +for i in `find t -type f` ; do + sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i +done +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor