From 23fe62843b4e4dde77d407a9f84cae2a37d032ee5bf52ac16869e1fab482729d Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Mon, 29 Aug 2011 13:13:54 +0000 Subject: [PATCH] fix deps, build OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Formatter?expand=0&rev=2 --- perl-String-Formatter.changes | 8 ++++++++ perl-String-Formatter.spec | 26 ++++++++++++++++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/perl-String-Formatter.changes b/perl-String-Formatter.changes index 16224ea..2ebba07 100644 --- a/perl-String-Formatter.changes +++ b/perl-String-Formatter.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 29 13:12:31 UTC 2011 - chris@computersalat.de + +- fix deps + * ExtUtils::MakeMaker >= 6.31 + * Test::More >= 0.88 +- fix build for CentOS, RHEL, SLE_10, SLE_11 + ------------------------------------------------------------------- Mon Jan 17 20:53:26 UTC 2011 - coolo@novell.com diff --git a/perl-String-Formatter.spec b/perl-String-Formatter.spec index eec4c6a..235f441 100644 --- a/perl-String-Formatter.spec +++ b/perl-String-Formatter.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-String-Formatter (Version 0.102082) +# spec file for package perl-String-Formatter # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 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 @@ -20,19 +20,23 @@ Version: 0.102082 Release: 1 License: GPL+ %define cpan_name String-Formatter -Summary: build sprintf-like functions of your own -Url: http://search.cpan.org/dist/String-Formatter/ +Summary: Build sprintf-like functions of your own Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/String-Formatter/ #Source: http://www.cpan.org/authors/id/R/RJ/RJBS/String-Formatter-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 -BuildRequires: perl(Params::Util) -BuildRequires: perl(Sub::Exporter) +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 +%if 0%{?suse_version} >= 1120 +BuildRequires: perl(Test::More) >= 0.88 +%endif +BuildRequires: perl(Params::Util) +BuildRequires: perl(Sub::Exporter) Requires: perl(Params::Util) Requires: perl(Sub::Exporter) -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %{perl_requires} %description @@ -89,6 +93,12 @@ ways to put String::Formatter to use. %prep %setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 +%if 0%{?suse_version} < 1120 || 0%{?rhel_version} || 0%{?centos_version} + %{__perl} -p -i -e 's|6.31|6.30|' Makefile.PL + %{__perl} -p -i\ + -e 's|(use Test::More).*;|\1 qw(no_plan);|,s|(done_testing.*)|#\1|' t/stringf.t +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor