diff --git a/perl-Specio.spec b/perl-Specio.spec index a908032..3b56e18 100644 --- a/perl-Specio.spec +++ b/perl-Specio.spec @@ -1,5 +1,5 @@ Name: perl-Specio -Version: 0.27 +Version: 0.28 Release: 1%{?dist} Summary: Type constraints and coercions for Perl License: Artistic 2.0 @@ -18,6 +18,7 @@ BuildRequires: perl(Carp) BuildRequires: perl(Devel::StackTrace) BuildRequires: perl(Eval::Closure) BuildRequires: perl(Exporter) +BuildRequires: perl(IO::File) BuildRequires: perl(List::Util) >= 1.33 BuildRequires: perl(MRO::Compat) BuildRequires: perl(overload) @@ -28,15 +29,14 @@ BuildRequires: perl(Role::Tiny::With) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Storable) BuildRequires: perl(strict) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(version) >= 0.83 BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(File::Spec) -BuildRequires: perl(IO::File) BuildRequires: perl(lib) BuildRequires: perl(open) -BuildRequires: perl(Test::Fatal) -BuildRequires: perl(Test::More) BuildRequires: perl(Test::Needs) BuildRequires: perl(utf8) # Optional Tests @@ -49,6 +49,9 @@ BuildRequires: perl(namespace::autoclean) # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Avoid provides for private packages +%global __provides_exclude ^perl\\(_T::.*\\) + %description The Specio distribution provides classes for representing type constraints and coercion, along with syntax sugar for declaring them. @@ -61,6 +64,15 @@ type to a variable at all. Instead, you can explicitly check a value against a type, and optionally coerce values to that type. +%package -n perl-Test-Specio +Summary: Test helpers for Specio +License: Artistic 2.0 +Requires: %{name} = %{version}-%{release} + +%description -n perl-Test-Specio +This package provides some helper functions and variables for testing Specio +types. + %prep %setup -q -n Specio-%{version} @@ -116,7 +128,18 @@ make test %exclude %{perl_vendorlib}/TODO.pod %exclude %{_mandir}/man3/TODO.3* +%files -n perl-Test-Specio +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::Specio.3* + %changelog +* Mon Oct 3 2016 Paul Howarth - 0.28-1 +- Update to 0.28 + - Added a Test::Specio module to provide helpers for testing Specio libraries + - Fixed another bug with a subtype of special types and inlining +- Introduce sub-package perl-Test-Specio to avoid dependencies on Test::Fatal + and Test::More in main package + * Sun Oct 2 2016 Paul Howarth - 0.27-1 - Update to 0.27 - Cloning a type with coercions defined on it would cause an exception diff --git a/sources b/sources index 0610ff6..dde5c90 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -33a7ec329c317acb696d533e510a9994 Specio-0.27.tar.gz +11cc6e6b0938f7482c0c9e95e52fb016 Specio-0.28.tar.gz