2011-03-24 16:00:48 +00:00
|
|
|
#
|
2011-04-04 10:55:38 +00:00
|
|
|
# spec file for package perl-DateTime-TimeZone
|
2011-03-24 16:00:48 +00:00
|
|
|
#
|
2021-01-26 09:47:26 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-03-24 16:00:48 +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.
|
|
|
|
|
2019-01-02 11:00:38 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-24 16:00:48 +00:00
|
|
|
#
|
|
|
|
|
2011-04-04 10:55:38 +00:00
|
|
|
|
2020-12-25 20:37:00 +00:00
|
|
|
%define cpan_name DateTime-TimeZone
|
2010-04-20 00:44:41 +00:00
|
|
|
Name: perl-DateTime-TimeZone
|
2021-09-30 07:24:23 +00:00
|
|
|
Version: 2.48
|
2012-02-29 16:06:11 +00:00
|
|
|
Release: 0
|
2010-04-20 00:44:41 +00:00
|
|
|
Summary: Time zone object base class and factory
|
2018-05-14 08:47:06 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2020-10-08 09:27:43 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-05-31 07:22:22 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 17:12:59 +00:00
|
|
|
Source1: cpanspec.yml
|
2011-04-01 06:02:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2010-04-20 00:44:41 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-04-01 06:02:22 +00:00
|
|
|
BuildRequires: perl(Class::Singleton) >= 1.03
|
2015-08-23 14:18:09 +00:00
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
2015-02-06 13:48:10 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2017-05-31 07:22:22 +00:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler) >= 0.13
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2015-04-16 17:12:59 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2015-02-06 13:48:10 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2017-05-31 07:22:22 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
2011-04-25 20:47:44 +00:00
|
|
|
BuildRequires: perl(parent)
|
2011-04-01 06:02:22 +00:00
|
|
|
Requires: perl(Class::Singleton) >= 1.03
|
2015-08-23 14:18:09 +00:00
|
|
|
Requires: perl(List::Util) >= 1.33
|
2015-02-06 13:48:10 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2017-05-31 07:22:22 +00:00
|
|
|
Requires: perl(Params::ValidationCompiler) >= 0.13
|
|
|
|
Requires: perl(Specio::Library::Builtins)
|
|
|
|
Requires: perl(Specio::Library::String)
|
2015-02-06 13:48:10 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
2017-05-31 07:22:22 +00:00
|
|
|
Requires: perl(namespace::autoclean)
|
2011-04-25 20:47:44 +00:00
|
|
|
Requires: perl(parent)
|
2011-04-01 06:02:22 +00:00
|
|
|
%{perl_requires}
|
2010-04-20 00:44:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This class is the base class for all time zone objects. A time zone is
|
2011-04-01 06:02:22 +00:00
|
|
|
represented internally as a set of observances, each of which describes the
|
|
|
|
offset from GMT for a given time period.
|
2010-04-20 00:44:41 +00:00
|
|
|
|
2016-02-08 06:34:22 +00:00
|
|
|
Note that without the DateTime module, this module does not do much. It's
|
|
|
|
primary interface is through a DateTime object, and most users will not
|
|
|
|
need to directly use 'DateTime::TimeZone' methods.
|
2011-03-14 22:31:21 +00:00
|
|
|
|
2011-04-01 06:02:22 +00:00
|
|
|
%prep
|
2020-12-25 20:37:00 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-04-28 12:05:14 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-04-20 00:44:41 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-02 11:00:38 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2020-12-25 20:37:00 +00:00
|
|
|
%make_build
|
2011-04-01 06:02:22 +00:00
|
|
|
|
|
|
|
%check
|
2019-01-02 11:00:38 +00:00
|
|
|
make test
|
2010-04-20 00:44:41 +00:00
|
|
|
|
|
|
|
%install
|
2011-03-14 22:31:21 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-01 06:02:22 +00:00
|
|
|
%perl_gen_filelist
|
2010-04-20 00:44:41 +00:00
|
|
|
|
2011-04-01 06:02:22 +00:00
|
|
|
%files -f %{name}.files
|
2019-01-02 11:00:38 +00:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
2017-05-31 07:22:22 +00:00
|
|
|
%license LICENSE
|
2010-04-20 00:44:41 +00:00
|
|
|
|
2011-03-24 16:00:48 +00:00
|
|
|
%changelog
|