forked from pool/perl-String-Formatter
fix deps, build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Formatter?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
a0a73c8b02
commit
23fe62843b
@@ -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
|
Mon Jan 17 20:53:26 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -20,19 +20,23 @@ Version: 0.102082
|
|||||||
Release: 1
|
Release: 1
|
||||||
License: GPL+
|
License: GPL+
|
||||||
%define cpan_name String-Formatter
|
%define cpan_name String-Formatter
|
||||||
Summary: build sprintf-like functions of your own
|
Summary: Build sprintf-like functions of your own
|
||||||
Url: http://search.cpan.org/dist/String-Formatter/
|
|
||||||
Group: Development/Libraries/Perl
|
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: http://www.cpan.org/authors/id/R/RJ/RJBS/String-Formatter-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
BuildRequires: perl(Params::Util)
|
BuildArch: noarch
|
||||||
BuildRequires: perl(Sub::Exporter)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
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(Params::Util)
|
||||||
Requires: perl(Sub::Exporter)
|
Requires: perl(Sub::Exporter)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -89,6 +93,12 @@ ways to put String::Formatter to use.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%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
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
Reference in New Issue
Block a user