Name: perl-JSON-Validator Version: 3.02 Release: 1%{?dist} Summary: Validate data against a JSON schema License: Artistic 2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/JSON-Validator/ Source0: http://www.cpan.org/authors/id/J/JH/JHTHORSEN/JSON-Validator-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl-generators perl >= 0:5.010001 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Mojolicious) >= 7.28 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Mojo) #BuildRequires: perl(Data::Validate::Domain) #BuildRequires: perl(Data::Validate::IP) BuildRequires: perl(YAML::XS) Requires: perl(Mojolicious) >= 7.28 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description JSON::Validator is a data structure validation library based around JSON Schema. This module can be used directly with a JSON schema or you can use the elegant DSL schema-builder JSON::Validator::joi to define the schema programmatically. %prep %setup -q -n JSON-Validator-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes META.json README.md %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sat Jan 12 2019 jaromir.talir@nic.cz 3.02-1 - Specfile autogenerated by cpanspec 1.78.