2011-03-24 17:00:48 +01:00
|
|
|
#
|
2011-04-04 12:55:38 +02:00
|
|
|
# spec file for package perl-DateTime-TimeZone
|
2011-03-24 17:00:48 +01:00
|
|
|
#
|
2018-02-07 17:00:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-03-24 17:00:48 +01: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 12:00:38 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-24 17:00:48 +01:00
|
|
|
#
|
|
|
|
|
2011-04-04 12:55:38 +02:00
|
|
|
|
2010-04-20 02:44:41 +02:00
|
|
|
Name: perl-DateTime-TimeZone
|
2019-01-02 12:00:38 +01:00
|
|
|
Version: 2.22
|
2012-02-29 17:06:11 +01:00
|
|
|
Release: 0
|
2011-04-01 08:02:22 +02:00
|
|
|
%define cpan_name DateTime-TimeZone
|
2010-04-20 02:44:41 +02:00
|
|
|
Summary: Time zone object base class and factory
|
2018-05-14 10:47:06 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-04-20 02:44:41 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2019-01-02 12:00:38 +01:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-05-31 09:22:22 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 19:12:59 +02:00
|
|
|
Source1: cpanspec.yml
|
2011-04-01 08:02:22 +02:00
|
|
|
BuildArch: noarch
|
2011-03-24 17:00:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-01 08:02:22 +02:00
|
|
|
BuildRequires: perl
|
2010-04-20 02:44:41 +02:00
|
|
|
BuildRequires: perl-macros
|
2011-04-01 08:02:22 +02:00
|
|
|
BuildRequires: perl(Class::Singleton) >= 1.03
|
2015-08-23 16:18:09 +02:00
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
2015-02-06 14:48:10 +01:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2017-05-31 09:22:22 +02:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler) >= 0.13
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2015-04-16 19:12:59 +02:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2015-02-06 14:48:10 +01:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2017-05-31 09:22:22 +02:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
2011-04-25 22:47:44 +02:00
|
|
|
BuildRequires: perl(parent)
|
2011-04-01 08:02:22 +02:00
|
|
|
Requires: perl(Class::Singleton) >= 1.03
|
2015-08-23 16:18:09 +02:00
|
|
|
Requires: perl(List::Util) >= 1.33
|
2015-02-06 14:48:10 +01:00
|
|
|
Requires: perl(Module::Runtime)
|
2017-05-31 09:22:22 +02:00
|
|
|
Requires: perl(Params::ValidationCompiler) >= 0.13
|
|
|
|
Requires: perl(Specio::Library::Builtins)
|
|
|
|
Requires: perl(Specio::Library::String)
|
2015-02-06 14:48:10 +01:00
|
|
|
Requires: perl(Try::Tiny)
|
2017-05-31 09:22:22 +02:00
|
|
|
Requires: perl(namespace::autoclean)
|
2011-04-25 22:47:44 +02:00
|
|
|
Requires: perl(parent)
|
2011-04-01 08:02:22 +02:00
|
|
|
%{perl_requires}
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This class is the base class for all time zone objects. A time zone is
|
2011-04-01 08:02:22 +02:00
|
|
|
represented internally as a set of observances, each of which describes the
|
|
|
|
offset from GMT for a given time period.
|
2010-04-20 02:44:41 +02:00
|
|
|
|
2016-02-08 07:34:22 +01: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 23:31:21 +01:00
|
|
|
|
2011-04-01 08:02:22 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2016-02-08 07:34:22 +01:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%build
|
2019-01-02 12:00:38 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2011-04-01 08:02:22 +02:00
|
|
|
|
|
|
|
%check
|
2019-01-02 12:00:38 +01:00
|
|
|
make test
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%install
|
2011-03-14 23:31:21 +01:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-01 08:02:22 +02:00
|
|
|
%perl_gen_filelist
|
2010-04-20 02:44:41 +02:00
|
|
|
|
2011-04-01 08:02:22 +02:00
|
|
|
%files -f %{name}.files
|
2013-06-04 12:52:54 +02:00
|
|
|
%defattr(-,root,root,755)
|
2019-01-02 12:00:38 +01:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
2017-05-31 09:22:22 +02:00
|
|
|
%license LICENSE
|
2010-04-20 02:44:41 +02:00
|
|
|
|
2011-03-24 17:00:48 +01:00
|
|
|
%changelog
|