File perl-MooseX-Types-Structured.spec of Package perl-MooseX-Types-Structured
#
# spec file for package perl-MooseX-Types-Structured
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-MooseX-Types-Structured
Version: 0.29
Release: 0
%define cpan_name MooseX-Types-Structured
Summary: Structured Type Constraints for Moose
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-Types-Structured/
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(Devel::PartialDump) >= 0.13
BuildRequires: perl(Module::Build::Tiny) >= 0.030
BuildRequires: perl(Moose) >= 1.08
BuildRequires: perl(Moose::Meta::TypeCoercion)
BuildRequires: perl(Moose::Meta::TypeConstraint)
BuildRequires: perl(Moose::Meta::TypeConstraint::Parameterizable)
BuildRequires: perl(Moose::Util::TypeConstraints) >= 1.06
BuildRequires: perl(MooseX::Types) >= 0.22
BuildRequires: perl(MooseX::Types::DateTime)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Sub::Exporter) >= 0.982
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.94
#BuildRequires: perl(MooseX::Meta::TypeCoercion::Structured)
#BuildRequires: perl(MooseX::Meta::TypeCoercion::Structured::Optional)
#BuildRequires: perl(MooseX::Meta::TypeConstraint::Structured)
#BuildRequires: perl(MooseX::Meta::TypeConstraint::Structured::Optional)
#BuildRequires: perl(MooseX::Types::Structured)
#BuildRequires: perl(MooseX::Types::Structured::MessageStack)
#BuildRequires: perl(MooseX::Types::Structured::OverflowHandler)
#BuildRequires: perl(Pod::Wordlist)
#BuildRequires: perl(Test::Kwalitee)
#BuildRequires: perl(Test::NoTabs)
#BuildRequires: perl(Test::Spelling) >= 0.12
Requires: perl(Devel::PartialDump) >= 0.13
Requires: perl(Moose) >= 1.08
Requires: perl(Moose::Meta::TypeCoercion)
Requires: perl(Moose::Meta::TypeConstraint)
Requires: perl(Moose::Meta::TypeConstraint::Parameterizable)
Requires: perl(Moose::Util::TypeConstraints) >= 1.06
Requires: perl(MooseX::Types) >= 0.22
Requires: perl(Sub::Exporter) >= 0.982
%{perl_requires}
%description
A structured type constraint is a standard container the Moose manpage type
constraint, such as an 'ArrayRef' or 'HashRef', which has been enhanced to
allow you to explicitly name all the allowed type constraints inside the
structure. The generalized form is:
TypeConstraint[@TypeParameters or %TypeParameters]
Where 'TypeParameters' is an array reference or hash references of the
Moose::Meta::TypeConstraint manpage objects.
This type library enables structured type constraints. It is built on top
of the the MooseX::Types manpage library system, so you should review the
documentation for that if you are not familiar with it.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%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
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING LICENSE README README.md weaver.ini
%changelog