2021-09-27 16:09:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-DateTimeX-Easy
|
|
|
|
#
|
2025-01-09 16:31:32 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2021-09-27 16:09:11 +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.
|
2010-08-23 00:10:42 +00:00
|
|
|
|
2021-09-27 16:09:11 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define cpan_name DateTimeX-Easy
|
2010-08-23 00:10:42 +00:00
|
|
|
Name: perl-DateTimeX-Easy
|
2025-01-09 16:31:32 +00:00
|
|
|
Version: 0.92.0
|
2010-08-23 00:10:42 +00:00
|
|
|
Release: 0
|
2025-01-09 16:31:32 +00:00
|
|
|
# 0.092 -> normalize -> 0.92.0
|
|
|
|
%define cpan_version 0.092
|
2021-09-27 16:09:11 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-08-23 00:10:42 +00:00
|
|
|
Summary: Parse a date/time string using the best method available
|
2021-09-27 16:09:11 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-08 19:41:50 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/%{cpan_name}-%{cpan_version}.tar.gz
|
2021-09-27 16:09:11 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:18 +02:00
|
|
|
Source100: README.md
|
2021-09-27 16:09:11 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:01:52 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-08-23 00:10:42 +00:00
|
|
|
BuildRequires: perl(Date::Parse)
|
|
|
|
BuildRequires: perl(DateTime)
|
2022-08-28 15:01:44 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::DateManip)
|
2010-08-23 00:10:42 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Flexible)
|
|
|
|
BuildRequires: perl(DateTime::Format::ICal)
|
2021-09-27 16:09:11 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Natural)
|
2025-01-09 16:31:32 +00:00
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 2.630
|
2021-09-27 16:09:11 +00:00
|
|
|
BuildRequires: perl(Test::Most)
|
|
|
|
BuildRequires: perl(Time::Zone)
|
2022-08-28 15:01:44 +00:00
|
|
|
BuildRequires: perl(YAML)
|
2010-08-23 00:10:42 +00:00
|
|
|
Requires: perl(Date::Parse)
|
|
|
|
Requires: perl(DateTime)
|
2022-08-28 15:01:44 +00:00
|
|
|
Requires: perl(DateTime::Format::DateManip)
|
2010-08-23 00:10:42 +00:00
|
|
|
Requires: perl(DateTime::Format::Flexible)
|
|
|
|
Requires: perl(DateTime::Format::ICal)
|
2021-09-27 16:09:11 +00:00
|
|
|
Requires: perl(DateTime::Format::Natural)
|
2025-01-09 16:31:32 +00:00
|
|
|
Requires: perl(DateTime::TimeZone) >= 2.630
|
2021-09-27 16:09:11 +00:00
|
|
|
Requires: perl(Time::Zone)
|
2022-08-28 15:01:44 +00:00
|
|
|
Requires: perl(YAML)
|
2024-08-08 19:41:50 +00:00
|
|
|
Provides: perl(DateTimeX::Easy) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2021-09-27 16:09:11 +00:00
|
|
|
%{perl_requires}
|
2010-08-23 00:10:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
DateTimeX::Easy makes DateTime object creation quick and easy. It uses a
|
2021-09-27 16:09:11 +00:00
|
|
|
variety of DateTime::Format packages to do the bulk of the parsing, with
|
|
|
|
some custom tweaks to smooth out the rough edges (mainly concerning
|
|
|
|
timezone detection and selection).
|
2010-08-23 00:10:42 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-08 19:41:50 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2010-08-23 00:10:42 +00:00
|
|
|
|
|
|
|
%build
|
2022-08-28 15:01:44 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-09-27 16:09:11 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
2010-08-23 00:10:42 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2021-09-27 16:09:11 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-23 00:10:42 +00:00
|
|
|
|
2021-09-27 16:09:11 +00:00
|
|
|
%files -f %{name}.files
|
2022-09-27 15:45:55 +00:00
|
|
|
%doc Changes CONTRIBUTORS README
|
2022-08-28 15:01:44 +00:00
|
|
|
%license LICENSE
|
2010-08-23 00:10:42 +00:00
|
|
|
|
2021-09-27 16:09:11 +00:00
|
|
|
%changelog
|