8
0
Christian Wittmer
2011-08-29 13:13:54 +00:00
committed by Git OBS Bridge
parent a0a73c8b02
commit 23fe62843b
2 changed files with 26 additions and 8 deletions

View File

@@ -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