2011-09-28 14:26:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-String-Util
|
|
|
|
#
|
2023-02-13 19:04:48 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-09-28 14:26:25 +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.
|
|
|
|
|
2020-07-28 13:48:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-28 14:26:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-04-09 15:41:23 +00:00
|
|
|
%define cpan_name String-Util
|
2011-09-28 14:26:25 +00:00
|
|
|
Name: perl-String-Util
|
2023-02-13 19:04:48 +00:00
|
|
|
Version: 1.34
|
2015-04-17 18:32:27 +00:00
|
|
|
Release: 0
|
2020-07-28 13:48:16 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-02-13 19:04:48 +00:00
|
|
|
Summary: String processing utility functions
|
2020-07-28 13:48:16 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BA/BAKERSCOT/%{cpan_name}-%{version}.tar.gz
|
2015-04-17 18:32:27 +00:00
|
|
|
Source1: cpanspec.yml
|
2011-09-28 14:26:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2020-07-28 13:48:16 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2011-09-28 14:26:25 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2023-02-13 19:04:48 +00:00
|
|
|
*String::Util* provides a collection of small, handy functions for
|
|
|
|
processing strings in various ways.
|
2011-09-28 14:26:25 +00:00
|
|
|
|
|
|
|
%prep
|
2021-04-09 15:41:23 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2011-09-28 14:26:25 +00:00
|
|
|
|
|
|
|
%build
|
2020-07-28 13:48:16 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-09-28 14:26:25 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-17 18:32:27 +00:00
|
|
|
./Build test
|
2011-09-28 14:26:25 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-28 13:48:16 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-09-28 14:26:25 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2020-07-28 13:48:16 +00:00
|
|
|
%doc Changes docs README
|
|
|
|
%license LICENSE
|
2011-09-28 14:26:25 +00:00
|
|
|
|
|
|
|
%changelog
|