forked from pool/perl-String-Formatter
update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Formatter?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
eff5553bac
commit
a66673a7c3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-String-Formatter
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 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
|
||||
@@ -17,24 +17,22 @@
|
||||
|
||||
|
||||
Name: perl-String-Formatter
|
||||
Version: 0.102082
|
||||
Version: 0.102084
|
||||
Release: 0
|
||||
%define cpan_name String-Formatter
|
||||
Summary: Build sprintf-like functions of your own
|
||||
Summary: build sprintf-like functions of your own
|
||||
License: GPL-2.0
|
||||
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/%{cpan_name}-%{version}.tar.gz
|
||||
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)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
#BuildRequires: perl(String::Formatter)
|
||||
Requires: perl(Params::Util)
|
||||
Requires: perl(Sub::Exporter)
|
||||
%{perl_requires}
|
||||
@@ -93,12 +91,6 @@ 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
|
||||
@@ -112,11 +104,8 @@ find . -type f -print0 | xargs -0 chmod 644
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes dist.ini LICENSE README
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user