2015-04-14 18:50:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-String-Print
|
|
|
|
#
|
2017-06-20 06:27:36 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-14 18:50:45 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-String-Print
|
2017-06-29 07:56:45 +00:00
|
|
|
Version: 0.91
|
2015-04-14 18:50:45 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name String-Print
|
2017-06-20 06:27:36 +00:00
|
|
|
Summary: Printf Alternative
|
2015-04-14 18:50:45 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/String-Print/
|
2017-06-20 06:27:36 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2015-04-14 18:50:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-06-29 07:56:45 +00:00
|
|
|
BuildRequires: perl(Date::Parse) >= 2.3
|
2017-06-20 06:27:36 +00:00
|
|
|
BuildRequires: perl(HTML::Entities)
|
2015-04-14 18:50:45 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.86
|
|
|
|
BuildRequires: perl(Unicode::GCString)
|
2017-06-29 07:56:45 +00:00
|
|
|
Requires: perl(Date::Parse) >= 2.3
|
2017-06-20 06:27:36 +00:00
|
|
|
Requires: perl(HTML::Entities)
|
2015-04-14 18:50:45 +00:00
|
|
|
Requires: perl(Test::More) >= 0.86
|
|
|
|
Requires: perl(Unicode::GCString)
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2017-06-29 07:56:45 +00:00
|
|
|
This module inserts values into (format) strings. It provides 'printf' and
|
|
|
|
'sprintf' alternatives via both an object oriented and a functional
|
2015-04-14 18:50:45 +00:00
|
|
|
interface.
|
|
|
|
|
2017-06-20 06:27:36 +00:00
|
|
|
Read in the DETAILS chapter below, why this module provides a better
|
|
|
|
alternative for 'printf()'. Also, some extended *examples* can be found
|
2017-06-29 07:56:45 +00:00
|
|
|
down there. Take a look at them first, when you start using this module!
|
2015-04-14 18:50:45 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc ChangeLog README
|
|
|
|
|
|
|
|
%changelog
|