2015-04-16 17:04:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-DateTime-Format-Flexible
|
|
|
|
#
|
2025-01-09 16:31:25 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2015-04-16 17:04:33 +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.
|
|
|
|
|
2018-09-20 07:22:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-16 17:04:33 +00:00
|
|
|
#
|
|
|
|
|
2010-08-22 23:41:49 +00:00
|
|
|
|
2021-06-02 06:32:53 +00:00
|
|
|
%define cpan_name DateTime-Format-Flexible
|
2010-08-22 23:41:49 +00:00
|
|
|
Name: perl-DateTime-Format-Flexible
|
2025-01-09 16:31:25 +00:00
|
|
|
Version: 0.370.0
|
2010-08-22 23:41:49 +00:00
|
|
|
Release: 0
|
2025-01-09 16:31:25 +00:00
|
|
|
# 0.37 -> normalize -> 0.370.0
|
|
|
|
%define cpan_version 0.37
|
2018-02-24 07:02:52 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-01-09 16:31:25 +00:00
|
|
|
Summary: DateTime::Format::Flexible - Flexibly parse strings and turn them into D[cut]
|
2021-06-02 06:32:53 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-09 16:31:25 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TH/THINC/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 17:04:33 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:15 +02:00
|
|
|
Source100: README.md
|
2015-04-16 17:04:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-08-22 23:41:49 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
2015-04-16 17:04:33 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Builder) >= 0.74
|
2010-08-22 23:41:49 +00:00
|
|
|
BuildRequires: perl(DateTime::TimeZone)
|
2018-03-10 13:09:34 +00:00
|
|
|
BuildRequires: perl(Test::Exception)
|
2015-04-16 17:04:33 +00:00
|
|
|
BuildRequires: perl(Test::MockTime)
|
2018-03-10 13:09:34 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2010-08-22 23:41:49 +00:00
|
|
|
Requires: perl(DateTime)
|
2015-04-16 17:04:33 +00:00
|
|
|
Requires: perl(DateTime::Format::Builder) >= 0.74
|
2010-08-22 23:41:49 +00:00
|
|
|
Requires: perl(DateTime::TimeZone)
|
2025-01-09 16:31:25 +00:00
|
|
|
Provides: perl(DateTime::Format::Flexible) = %{version}
|
|
|
|
Provides: perl(DateTime::Format::Flexible::lang)
|
|
|
|
Provides: perl(DateTime::Format::Flexible::lang::de)
|
|
|
|
Provides: perl(DateTime::Format::Flexible::lang::en)
|
|
|
|
Provides: perl(DateTime::Format::Flexible::lang::es)
|
|
|
|
%undefine __perllib_provides
|
2015-04-16 17:04:33 +00:00
|
|
|
%{perl_requires}
|
2010-08-22 23:41:49 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-16 17:04:33 +00:00
|
|
|
If you have ever had to use a program that made you type in the date a
|
|
|
|
certain way and thought "Why can't the computer just figure out what date I
|
|
|
|
wanted?", this module is for you.
|
2010-08-22 23:41:49 +00:00
|
|
|
|
2015-04-16 17:04:33 +00:00
|
|
|
_DateTime::Format::Flexible_ attempts to take any string you give it and
|
|
|
|
parse it into a DateTime object.
|
2010-08-22 23:41:49 +00:00
|
|
|
|
|
|
|
%prep
|
2025-01-09 16:31:25 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2010-08-22 23:41:49 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-17 09:46:14 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-06-02 06:32:53 +00:00
|
|
|
%make_build
|
2015-04-16 17:04:33 +00:00
|
|
|
|
|
|
|
%check
|
2019-09-17 09:46:14 +00:00
|
|
|
make test
|
2010-08-22 23:41:49 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-04-16 17:04:33 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-22 23:41:49 +00:00
|
|
|
|
2015-04-16 17:04:33 +00:00
|
|
|
%files -f %{name}.files
|
2017-03-13 06:19:21 +00:00
|
|
|
%doc Changes example README TODO
|
|
|
|
%license LICENSE
|
2010-08-22 23:41:49 +00:00
|
|
|
|
2015-04-16 17:04:33 +00:00
|
|
|
%changelog
|