Files
perl-MooseX-Types-ISO8601/perl-MooseX-Types-ISO8601.spec
2025-08-12 18:15:48 +02:00

96 lines
3.3 KiB
RPMSpec

#
# spec file for package perl-MooseX-Types-ISO8601
#
# Copyright (c) 2024 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 MooseX-Types-ISO8601
Name: perl-MooseX-Types-ISO8601
Version: 0.200.0
Release: 0
# 0.20 -> normalize -> 0.200.0
%define cpan_version 0.20
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: ISO8601 date and duration string type constraints and coercions for Moose
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime) >= 0.41
BuildRequires: perl(DateTime::Duration)
BuildRequires: perl(DateTime::Format::Duration) >= 1.30.0
BuildRequires: perl(DateTime::Format::ISO8601)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(Module::Metadata)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types) >= 0.10
BuildRequires: perl(MooseX::Types::DateTime) >= 0.03
BuildRequires: perl(MooseX::Types::DateTime::MySQL)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(aliased)
BuildRequires: perl(namespace::autoclean)
Requires: perl(DateTime) >= 0.41
Requires: perl(DateTime::Duration)
Requires: perl(DateTime::Format::Duration) >= 1.30.0
Requires: perl(DateTime::Format::ISO8601)
Requires: perl(DateTime::TimeZone)
Requires: perl(Module::Runtime)
Requires: perl(MooseX::Types) >= 0.10
Requires: perl(MooseX::Types::DateTime) >= 0.03
Requires: perl(MooseX::Types::DateTime::MySQL)
Requires: perl(MooseX::Types::Moose)
Requires: perl(Safe::Isa)
Requires: perl(Try::Tiny)
Requires: perl(aliased)
Provides: perl(MooseX::Types::ISO8601) = %{version}
%undefine __perllib_provides
Recommends: perl(MooseX::Types::DateTime::MySQL)
%{perl_requires}
%description
This module packages several TypeConstraints with coercions for working
with ISO8601 date strings and the DateTime suite of objects.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING README
%license LICENCE
%changelog