File perl-MooseX-Types-Structured.spec of Package perl-MooseX-Types-Structured

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-MooseX-Types-Structured
#
# Copyright (c) 2011 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.28
Release:        0
Summary:        Structured Type Constraints for Moose
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Source:         http://search.cpan.org/CPAN/authors/id/J/JJ/JJNAPIORK/MooseX-Types-Structured-%{version}.tar.gz
Url:            http://search.cpan.org/dist/MooseX-Types-Structured
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(DateTime)
BuildRequires:  perl(Devel::PartialDump) >= 0.13
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.31
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(Scalar::Util)
BuildRequires:  perl(Sub::Exporter) >= 0.982
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.94
BuildRequires:  perl(overload)
Requires:       perl(Scalar::Util)
Requires:       perl(overload)
Requires:       perl(Sub::Exporter) >= 0.982
Requires:       perl(Moose::Meta::TypeConstraint)
Requires:       perl(Moose::Util::TypeConstraints) >= 1.06
Requires:       perl(Moose::Meta::TypeConstraint::Parameterizable)
Requires:       perl(Moose::Meta::TypeCoercion)
Requires:       perl(MooseX::Types) >= 0.22
Requires:       perl(Devel::PartialDump) >= 0.13
Requires:       perl(Moose) >= 1.08

%description
A structured type constraint is a standard container Moose 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.

This type library enables structured type constraints. It is built on top
of the MooseX::Types library system, so you should review the
documentation for that if you are not familiar with it.

%prep
%setup -q -n "MooseX-Types-Structured-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}

%install
%perl_make_install
%perl_process_packlist

%if 0%{?suse_version} >= 1120
%check
%__make test
%endif

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/MooseX
%dir %{perl_vendorlib}/MooseX/Types
%{perl_vendorlib}/MooseX/Types/Structured.pm
%{perl_vendorlib}/MooseX/Types/Structured
%dir %{perl_vendorlib}/MooseX/Meta
%dir %{perl_vendorlib}/MooseX/Meta/TypeCoercion
%{perl_vendorlib}/MooseX/Meta/TypeCoercion/Structured
%{perl_vendorlib}/MooseX/Meta/TypeCoercion/Structured.pm
%dir %{perl_vendorlib}/MooseX/Meta/TypeConstraint
%{perl_vendorlib}/MooseX/Meta/TypeConstraint/Structured
%{perl_vendorlib}/MooseX/Meta/TypeConstraint/Structured.pm
%dir %{perl_vendorarch}/auto/MooseX
%dir %{perl_vendorarch}/auto/MooseX/Types
%{perl_vendorarch}/auto/MooseX/Types/Structured
%doc %{perl_man3dir}/MooseX::*.%{perl_man3ext}%{ext_man}

%changelog
openSUSE Build Service is sponsored by