2010-11-04 22:30:24 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-MooseX-Types-Structured
|
2011-04-30 00:08:39 +00:00
|
|
|
Version: 0.27
|
2010-11-04 22:30:24 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Structured Type Constraints for Moose
|
|
|
|
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
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 13:50:43 +00:00
|
|
|
%{perl_requires}
|
2010-11-04 22:30:24 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:43:49 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-11-04 22:30:24 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
|
|
BuildRequires: perl(MooseX::Types::Moose)
|
|
|
|
BuildRequires: perl(DateTime)
|
2011-04-30 00:08:39 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2010-11-04 22:30:24 +00:00
|
|
|
BuildRequires: perl(MooseX::Types::DateTime)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
BuildRequires: perl(Sub::Exporter) >= 0.982
|
|
|
|
BuildRequires: perl(Moose::Meta::TypeConstraint)
|
|
|
|
BuildRequires: perl(Moose::Util::TypeConstraints) >= 1.06
|
|
|
|
BuildRequires: perl(Moose::Meta::TypeConstraint::Parameterizable)
|
|
|
|
BuildRequires: perl(Moose::Meta::TypeCoercion)
|
|
|
|
BuildRequires: perl(MooseX::Types) >= 0.22
|
|
|
|
BuildRequires: perl(Devel::PartialDump) >= 0.13
|
|
|
|
BuildRequires: perl(Moose) >= 1.08
|
|
|
|
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
|
|
|
|
|
2010-11-04 22:32:31 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-11-04 22:30:24 +00:00
|
|
|
%check
|
|
|
|
%__make test
|
2010-11-04 22:32:31 +00:00
|
|
|
%endif
|
2010-11-04 22:30:24 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
|