%define upstream_name MooseX-Validation-Doctypes %define upstream_version 0.05 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Moose type constraint for validating doctypes License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Data::Dumper) BuildRequires: perl(Devel::PartialDump) BuildRequires: perl(File::Find) BuildRequires: perl(File::Temp) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Meta::TypeConstraint) BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::Types::Email) BuildRequires: perl(MooseX::Types::URI) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Requires) BuildRequires: perl(overload) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildArch: noarch %description NOTE: The API for this module is still in flux as I try to decide on how it should work. You have been warned! This module allows you to declare the Moose manpage type constraints to validate nested data structures as you may get back from a JSON web service or something along those lines. The doctype declaration can be any arbitrarily nested structure of hashrefs and arrayrefs, and will be used to validate a data structure which has that same form. The leaf values in the doctype should be Moose type constraints, which will be used to validate the leaf nodes in the given data structure. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %makeinstall_std %files %doc README Changes LICENSE META.yml META.json %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.50.0-2.mga3 + Revision: 370372 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Oct 16 2012 jquelin <jquelin> 0.50.0-1.mga3 + Revision: 307214 - imported package perl-MooseX-Validation-Doctypes