Files
perl-DateTimeX-Easy/perl-DateTimeX-Easy.spec

83 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-DateTimeX-Easy
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name DateTimeX-Easy
Name: perl-DateTimeX-Easy
Version: 0.92.0
Release: 0
# 0.092 -> normalize -> 0.92.0
%define cpan_version 0.092
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Parse a date/time string using the best method available
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:13:18 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Date::Parse)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::DateManip)
BuildRequires: perl(DateTime::Format::Flexible)
BuildRequires: perl(DateTime::Format::ICal)
BuildRequires: perl(DateTime::Format::Natural)
BuildRequires: perl(DateTime::TimeZone) >= 2.630
BuildRequires: perl(Test::Most)
BuildRequires: perl(Time::Zone)
BuildRequires: perl(YAML)
Requires: perl(Date::Parse)
Requires: perl(DateTime)
Requires: perl(DateTime::Format::DateManip)
Requires: perl(DateTime::Format::Flexible)
Requires: perl(DateTime::Format::ICal)
Requires: perl(DateTime::Format::Natural)
Requires: perl(DateTime::TimeZone) >= 2.630
Requires: perl(Time::Zone)
Requires: perl(YAML)
Provides: perl(DateTimeX::Easy) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
DateTimeX::Easy makes DateTime object creation quick and easy. It uses a
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).
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTORS README
%license LICENSE
%changelog