2009-06-22 00:09:59 +02:00
|
|
|
#
|
2011-05-18 10:06:01 +02:00
|
|
|
# spec file for package perl-DateTime-Format-Strptime
|
2010-07-02 17:11:39 +02:00
|
|
|
#
|
2021-05-04 16:39:28 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2009-06-22 00:09:59 +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.
|
|
|
|
|
2019-02-08 19:08:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-06-22 00:09:59 +02:00
|
|
|
#
|
|
|
|
|
2011-05-18 10:06:01 +02:00
|
|
|
|
2021-05-04 16:39:28 +02:00
|
|
|
%define cpan_name DateTime-Format-Strptime
|
2009-06-22 00:09:59 +02:00
|
|
|
Name: perl-DateTime-Format-Strptime
|
2021-05-04 16:39:28 +02:00
|
|
|
Version: 1.79
|
2013-06-10 17:49:31 +02:00
|
|
|
Release: 0
|
2009-06-22 13:43:17 +02:00
|
|
|
Summary: Parse and format strp and strf time patterns
|
2013-06-10 17:49:31 +02:00
|
|
|
License: Artistic-2.0
|
2020-12-17 09:10:06 +01:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-06-01 14:11:56 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-10-06 07:39:16 +02:00
|
|
|
Source1: cpanspec.yml
|
2010-07-02 17:11:39 +02:00
|
|
|
BuildArch: noarch
|
2009-06-22 00:09:59 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-10 17:49:31 +02:00
|
|
|
BuildRequires: perl(DateTime) >= 1.00
|
2020-12-17 09:10:06 +01:00
|
|
|
BuildRequires: perl(DateTime::Locale) >= 1.300000
|
2017-06-01 14:11:56 +02:00
|
|
|
BuildRequires: perl(DateTime::Locale::Base)
|
|
|
|
BuildRequires: perl(DateTime::Locale::FromData)
|
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 2.09
|
|
|
|
BuildRequires: perl(Params::ValidationCompiler)
|
|
|
|
BuildRequires: perl(Specio) >= 0.33
|
|
|
|
BuildRequires: perl(Specio::Declare)
|
|
|
|
BuildRequires: perl(Specio::Exporter)
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2015-11-10 11:42:02 +01:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-10-06 07:39:16 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2015-11-15 14:26:17 +01:00
|
|
|
BuildRequires: perl(Test::Warnings)
|
2015-11-10 11:42:02 +01:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2017-06-01 14:11:56 +02:00
|
|
|
BuildRequires: perl(parent)
|
2013-06-10 17:49:31 +02:00
|
|
|
Requires: perl(DateTime) >= 1.00
|
2020-12-17 09:10:06 +01:00
|
|
|
Requires: perl(DateTime::Locale) >= 1.300000
|
2017-06-01 14:11:56 +02:00
|
|
|
Requires: perl(DateTime::Locale::Base)
|
|
|
|
Requires: perl(DateTime::Locale::FromData)
|
|
|
|
Requires: perl(DateTime::TimeZone) >= 2.09
|
|
|
|
Requires: perl(Params::ValidationCompiler)
|
|
|
|
Requires: perl(Specio) >= 0.33
|
|
|
|
Requires: perl(Specio::Declare)
|
|
|
|
Requires: perl(Specio::Exporter)
|
|
|
|
Requires: perl(Specio::Library::Builtins)
|
|
|
|
Requires: perl(Specio::Library::String)
|
2015-11-10 11:42:02 +01:00
|
|
|
Requires: perl(Try::Tiny)
|
2017-06-01 14:11:56 +02:00
|
|
|
Requires: perl(parent)
|
2013-06-10 17:49:31 +02:00
|
|
|
%{perl_requires}
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%description
|
2013-06-10 17:49:31 +02:00
|
|
|
This module implements most of 'strptime(3)', the POSIX function that is
|
|
|
|
the reverse of 'strftime(3)', for 'DateTime'. While 'strftime' takes a
|
|
|
|
'DateTime' and a pattern and returns a string, 'strptime' takes a string
|
|
|
|
and a pattern and returns the 'DateTime' object associated.
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%prep
|
2021-05-04 16:39:28 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%build
|
2019-02-08 19:08:55 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-05-04 16:39:28 +02:00
|
|
|
%make_build
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%check
|
2019-02-08 19:08:55 +01:00
|
|
|
make test
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2013-06-10 17:49:31 +02:00
|
|
|
%perl_process_packlist
|
2009-06-22 00:09:59 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-05-04 16:39:28 +02:00
|
|
|
%doc azure-pipelines.yml bench Changes CODE_OF_CONDUCT.md CONTRIBUTING.md precious.toml README.md
|
2017-06-01 14:11:56 +02:00
|
|
|
%license LICENSE
|
2009-06-22 00:09:59 +02:00
|
|
|
|
|
|
|
%changelog
|