/[packages]/cauldron/perl-MooseX-Validation-Doctypes/current/SPECS/perl-MooseX-Validation-Doctypes.spec
ViewVC logotype

Contents of /cauldron/perl-MooseX-Validation-Doctypes/current/SPECS/perl-MooseX-Validation-Doctypes.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1778100 - (show annotations) (download)
Wed Feb 16 17:01:34 2022 UTC (3 years, 4 months ago) by danf
File size: 1914 byte(s)
SILENT: Switch to https URLs
1 %define upstream_name MooseX-Validation-Doctypes
2 %define upstream_version 0.05
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 Release: %mkrel 3
7
8 Summary: Moose type constraint for validating doctypes
9 License: GPL+ or Artistic
10 Group: Development/Perl
11 Url: https://metacpan.org/dist/%{upstream_name}
12 Source0: https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz
13
14 BuildRequires: perl(Data::Dumper)
15 BuildRequires: perl(Devel::PartialDump)
16 BuildRequires: perl(File::Find)
17 BuildRequires: perl(File::Temp)
18 BuildRequires: perl(Moose)
19 BuildRequires: perl(Moose::Meta::TypeConstraint)
20 BuildRequires: perl(Moose::Util::TypeConstraints)
21 BuildRequires: perl(MooseX::Types::Email)
22 BuildRequires: perl(MooseX::Types::URI)
23 BuildRequires: perl(Scalar::Util)
24 BuildRequires: perl(Sub::Exporter)
25 BuildRequires: perl(Test::More)
26 BuildRequires: perl(Test::Requires)
27 BuildRequires: perl(overload)
28 BuildRequires: perl(strict)
29 BuildRequires: perl(warnings)
30 BuildArch: noarch
31
32 %description
33 NOTE: The API for this module is still in flux as I try to decide on how it
34 should work. You have been warned!
35
36 This module allows you to declare the Moose manpage type constraints to
37 validate nested data structures as you may get back from a JSON web service
38 or something along those lines. The doctype declaration can be any
39 arbitrarily nested structure of hashrefs and arrayrefs, and will be used to
40 validate a data structure which has that same form. The leaf values in the
41 doctype should be Moose type constraints, which will be used to validate
42 the leaf nodes in the given data structure.
43
44 %prep
45 %setup -q -n %{upstream_name}-%{upstream_version}
46
47 %build
48 %{__perl} Makefile.PL INSTALLDIRS=vendor
49
50 %make
51
52 %check
53 %make test
54
55 %install
56 %make_install
57
58 %files
59 %doc README Changes LICENSE META.yml META.json
60 %{_mandir}/man3/*
61 %perl_vendorlib/*
62
63

  ViewVC Help
Powered by ViewVC 1.1.30