2010-04-20 02:44:06 +02:00
|
|
|
#
|
2011-08-29 23:08:57 +02:00
|
|
|
# spec file for package perl-DateTime-Locale
|
2010-04-20 02:44:06 +02:00
|
|
|
#
|
2023-04-20 13:32:50 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2010-04-20 02:44:06 +02: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.
|
|
|
|
|
2018-11-08 10:50:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-20 02:44:06 +02:00
|
|
|
#
|
|
|
|
|
2011-11-11 12:16:08 +01:00
|
|
|
|
2021-05-04 12:14:05 +02:00
|
|
|
%define cpan_name DateTime-Locale
|
2010-04-20 02:44:06 +02:00
|
|
|
Name: perl-DateTime-Locale
|
2023-11-16 17:37:15 +01:00
|
|
|
Version: 1.400000
|
2015-06-15 07:38:11 +02:00
|
|
|
Release: 0
|
2023-11-16 17:37:15 +01:00
|
|
|
%define cpan_version 1.40
|
2018-04-09 11:20:06 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-04-13 21:20:12 +02:00
|
|
|
Summary: Localization support for DateTime.pm
|
2020-07-07 12:34:15 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-05-31 09:23:23 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-06-15 07:38:11 +02:00
|
|
|
Source1: cpanspec.yml
|
2010-04-20 02:44:06 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
|
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements)
|
2015-06-15 07:38:11 +02:00
|
|
|
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(File::ShareDir)
|
2020-07-07 12:34:15 +02:00
|
|
|
BuildRequires: perl(File::ShareDir::Install) >= 0.06
|
2018-04-23 09:47:18 +02:00
|
|
|
BuildRequires: perl(IPC::System::Simple)
|
2016-06-24 07:00:35 +02:00
|
|
|
BuildRequires: perl(List::Util) >= 1.45
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler) >= 0.13
|
2020-08-31 08:37:36 +02:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(Specio::Declare)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2020-08-31 08:37:36 +02:00
|
|
|
BuildRequires: perl(Test2::Plugin::NoWarnings)
|
|
|
|
BuildRequires: perl(Test2::Plugin::UTF8)
|
|
|
|
BuildRequires: perl(Test2::Require::Module)
|
|
|
|
BuildRequires: perl(Test2::V0)
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(Test::File::ShareDir::Dist)
|
2020-08-31 08:37:36 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 1.302015
|
2017-05-31 09:23:23 +02:00
|
|
|
BuildRequires: perl(namespace::autoclean) >= 0.19
|
2015-06-15 07:38:11 +02:00
|
|
|
Requires: perl(Dist::CheckConflicts) >= 0.02
|
2017-05-31 09:23:23 +02:00
|
|
|
Requires: perl(File::ShareDir)
|
2016-06-24 07:00:35 +02:00
|
|
|
Requires: perl(List::Util) >= 1.45
|
2017-05-31 09:23:23 +02:00
|
|
|
Requires: perl(Params::ValidationCompiler) >= 0.13
|
|
|
|
Requires: perl(Specio::Declare)
|
|
|
|
Requires: perl(Specio::Library::String)
|
|
|
|
Requires: perl(namespace::autoclean) >= 0.19
|
2015-06-15 07:38:11 +02:00
|
|
|
%{perl_requires}
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
DateTime::Locale is primarily a factory for the various locale subclasses.
|
2010-07-19 20:49:44 +02:00
|
|
|
It also provides some functions for getting information on all the
|
|
|
|
available locales.
|
|
|
|
|
2015-06-15 07:38:11 +02:00
|
|
|
If you want to know what methods are available for locale objects, then
|
2021-05-04 12:14:05 +02:00
|
|
|
please read the DateTime::Locale::FromData documentation.
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%prep
|
2021-05-04 12:14:05 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2023-04-20 13:32:50 +02:00
|
|
|
|
2023-06-01 17:23:21 +02:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-08 10:50:36 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-05-04 12:14:05 +02:00
|
|
|
%make_build
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%check
|
2019-03-29 08:31:11 +01:00
|
|
|
make test
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%install
|
2015-06-15 07:38:11 +02:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-04-20 02:44:06 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2023-06-01 17:23:21 +02:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
2017-05-31 09:23:23 +02:00
|
|
|
%license LICENSE LICENSE.cldr
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%changelog
|