Break build cycle: perl-Moose → perl-DateTime → perl-Specio

The Specio will replace Moose type constrain system in the future.
Thus Moose will run-require Specio in the future. Therefore the best
place for cutting the build cycle are perl-Specio optional tests.

There is similar issue with perl-Mouse that build-require perl-Moose
for optional tests. The tests make sense there because Mouse tries to
mimic Moose.
This commit is contained in:
Petr Písař 2016-10-20 09:17:36 +02:00
parent 5fe1a9fd14
commit c9bbef927b
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: perl-Specio
Version: 0.30
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Type constraints and coercions for Perl
License: Artistic 2.0
URL: http://search.cpan.org/dist/Specio/
@ -43,8 +43,12 @@ BuildRequires: perl(utf8)
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Moo)
%if !%{defined perl_bootstrap}
# Break cycle: perl-Moose → perl-DateTime → perl-Specio
BuildRequires: perl(Moose) >= 2.1207
# Break cycle: perl-Mouse → perl-Moose → perl-DateTime → perl-Specio
BuildRequires: perl(Mouse)
%endif
BuildRequires: perl(namespace::autoclean)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -133,6 +137,9 @@ make test
%{_mandir}/man3/Test::Specio.3*
%changelog
* Thu Oct 20 2016 Petr Pisar <ppisar@redhat.com> - 0.30-2
- Break build cycle: perl-Moose perl-DateTime perl-Specio
* Sun Oct 16 2016 Paul Howarth <paul@city-fan.org> - 0.30-1
- Update to 0.30
- Fix a bug with the Sub::Quoted sub returned by $type->coercion_sub; if a