Accepting request 1298376 from home:tinita:branches:devel:languages:perl:CPAN-J
Dependency for perl-Mojolicious-Plugin-OpenAPI-Modern OBS-URL: https://build.opensuse.org/request/show/1298376 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Schema-Modern?expand=0&rev=1
This commit is contained in:
149
perl-JSON-Schema-Modern.spec
Normal file
149
perl-JSON-Schema-Modern.spec
Normal file
@@ -0,0 +1,149 @@
|
||||
#
|
||||
# spec file for package perl-JSON-Schema-Modern
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name JSON-Schema-Modern
|
||||
Name: perl-JSON-Schema-Modern
|
||||
Version: 0.616.0
|
||||
Release: 0
|
||||
# 0.616 -> normalize -> 0.616.0
|
||||
%define cpan_version 0.616
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Validate data against a schema using a JSON Schema
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(CPAN::Meta::Check) >= 0.11
|
||||
BuildRequires: perl(CPAN::Meta::Requirements)
|
||||
BuildRequires: perl(Cpanel::JSON::XS) >= 4.380
|
||||
BuildRequires: perl(Feature::Compat::Try)
|
||||
BuildRequires: perl(File::ShareDir)
|
||||
BuildRequires: perl(Getopt::Long::Descriptive)
|
||||
BuildRequires: perl(JSON::PP) >= 4.11
|
||||
BuildRequires: perl(List::Util) >= 1.55
|
||||
BuildRequires: perl(Math::BigInt) >= 1.999701
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.34
|
||||
BuildRequires: perl(Module::Metadata)
|
||||
BuildRequires: perl(Mojo::JSON)
|
||||
BuildRequires: perl(Mojo::JSON::Pointer)
|
||||
BuildRequires: perl(Mojo::Message::Response)
|
||||
BuildRequires: perl(Mojo::URL)
|
||||
BuildRequires: perl(Mojolicious) >= 7.870
|
||||
BuildRequires: perl(Moo)
|
||||
BuildRequires: perl(Moo::Role)
|
||||
BuildRequires: perl(MooX::TypeTiny) >= 0.2.2
|
||||
BuildRequires: perl(Path::Tiny)
|
||||
BuildRequires: perl(Ref::Util) >= 0.100
|
||||
BuildRequires: perl(Safe::Isa) >= 1.0.8
|
||||
BuildRequires: perl(Sub::Install)
|
||||
BuildRequires: perl(Test2::API)
|
||||
BuildRequires: perl(Test::Deep)
|
||||
BuildRequires: perl(Test::Deep::UnorderedPairs)
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::File::ShareDir)
|
||||
BuildRequires: perl(Test::JSON::Schema::Acceptance) >= 1.29
|
||||
BuildRequires: perl(Test::Memory::Cycle)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(Test::Warnings)
|
||||
BuildRequires: perl(Test::Without::Module) >= 0.190
|
||||
BuildRequires: perl(Types::Common::Numeric)
|
||||
BuildRequires: perl(Types::Standard) >= 1.16.3
|
||||
BuildRequires: perl(autovivification)
|
||||
BuildRequires: perl(builtin::compat) >= 0.3.3
|
||||
BuildRequires: perl(experimental) >= 0.026
|
||||
BuildRequires: perl(feature)
|
||||
BuildRequires: perl(namespace::clean)
|
||||
BuildRequires: perl(stable) >= 0.031
|
||||
BuildRequires: perl(strictures) >= 2
|
||||
Requires: perl(Cpanel::JSON::XS) >= 4.380
|
||||
Requires: perl(Feature::Compat::Try)
|
||||
Requires: perl(File::ShareDir)
|
||||
Requires: perl(Getopt::Long::Descriptive)
|
||||
Requires: perl(JSON::PP) >= 4.11
|
||||
Requires: perl(List::Util) >= 1.55
|
||||
Requires: perl(Math::BigInt) >= 1.999701
|
||||
Requires: perl(Mojo::JSON)
|
||||
Requires: perl(Mojo::JSON::Pointer)
|
||||
Requires: perl(Mojo::Message::Response)
|
||||
Requires: perl(Mojo::URL)
|
||||
Requires: perl(Mojolicious) >= 7.870
|
||||
Requires: perl(Moo)
|
||||
Requires: perl(Moo::Role)
|
||||
Requires: perl(MooX::TypeTiny) >= 0.2.2
|
||||
Requires: perl(Path::Tiny)
|
||||
Requires: perl(Ref::Util) >= 0.100
|
||||
Requires: perl(Safe::Isa) >= 1.0.8
|
||||
Requires: perl(Sub::Install)
|
||||
Requires: perl(Types::Common::Numeric)
|
||||
Requires: perl(Types::Standard) >= 1.16.3
|
||||
Requires: perl(autovivification)
|
||||
Requires: perl(builtin::compat) >= 0.3.3
|
||||
Requires: perl(experimental) >= 0.026
|
||||
Requires: perl(feature)
|
||||
Requires: perl(namespace::clean)
|
||||
Requires: perl(stable) >= 0.031
|
||||
Requires: perl(strictures) >= 2
|
||||
Provides: perl(JSON::Schema::Modern) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Annotation) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Document) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Error) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Result) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::ResultNode) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Utilities) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::Applicator) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::Content) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::Core) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::FormatAnnotation) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::FormatAssertion) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::MetaData) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::Unevaluated) = %{version}
|
||||
Provides: perl(JSON::Schema::Modern::Vocabulary::Validation) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module aims to be a fully-compliant at https://json-schema.org/
|
||||
evaluator and validator, targeting the currently-latest at
|
||||
https://json-schema.org/specification-links.html#2020-12 version of the
|
||||
specification.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc Changes CONTRIBUTING README update-schemas
|
||||
%license LICENCE
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user