Name: perl-Types-DateTime
Version: 0.002
Release: 2%{?dist}
Summary: Type constraints and coercions for datetime objects
License: (GPL+ or Artistic) and Public Domain
URL: https://metacpan.org/release/Types-DateTime/
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Types-DateTime-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Duration)
BuildRequires: perl(DateTime::Format::ISO8601)
BuildRequires: perl(DateTime::Locale)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Locale::Maketext)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose) >= 2.06
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(strict)
BuildRequires: perl(Test::Modern)
BuildRequires: perl(Type::Library)
BuildRequires: perl(Types::Standard)
BuildRequires: perl(Type::Tiny) >= 0.041
BuildRequires: perl(Type::Utils)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Types::DateTime is a type constraint library suitable for use with
Moo/Moose attributes, Kavorka sub signatures, and so forth.
%prep
%setup -q -n Types-DateTime-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes COPYRIGHT CREDITS README
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Dec 06 2018 Xavier Bachelot <xavier@bachelot.org> 0.002-2
- Fixes from package review.
* Fri Nov 30 2018 Xavier Bachelot <xavier@bachelot.org> 0.002-1
- Initial package.