File perl-OpenAPI-Modern.spec of Package perl-OpenAPI-Modern
#
# spec file for package perl-OpenAPI-Modern
#
# Copyright (c) 2026 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 OpenAPI-Modern
Name: perl-OpenAPI-Modern
Version: 0.133
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Validate HTTP requests and responses against an OpenAPI v3.0, v3.1 or v3[cut]
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Encode) >= 2.89
BuildRequires: perl(Feature::Compat::Try)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(JSON::Schema::Modern) >= 0.635
BuildRequires: perl(JSON::Schema::Modern::Document) >= 0.619
BuildRequires: perl(JSON::Schema::Modern::Result) >= 0.630
BuildRequires: perl(JSON::Schema::Modern::Utilities) >= 0.628
BuildRequires: perl(JSON::Schema::Modern::Vocabulary)
BuildRequires: perl(List::Util) >= 1.45
BuildRequires: perl(Math::BigInt) >= 1.999701
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(Module::Metadata)
BuildRequires: perl(Mojo::File)
BuildRequires: perl(Mojo::Message::Request)
BuildRequires: perl(Mojo::Message::Response)
BuildRequires: perl(Mojo::Util)
BuildRequires: perl(Mojolicious)
BuildRequires: perl(Moo)
BuildRequires: perl(MooX::TypeTiny) >= 0.002002
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(Test2::API)
BuildRequires: perl(Test2::V0)
BuildRequires: perl(Test2::Warnings) >= 0.038
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::File::ShareDir)
BuildRequires: perl(Test::JSON::Schema::Acceptance) >= 1.014
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::Mojo)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Types::Standard)
BuildRequires: perl(YAML::PP) >= 0.005
BuildRequires: perl(autovivification)
BuildRequires: perl(builtin::compat)
BuildRequires: perl(experimental)
BuildRequires: perl(feature)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(stable) >= 0.031
BuildRequires: perl(strictures) >= 2
Requires: perl(Encode) >= 2.89
Requires: perl(Feature::Compat::Try)
Requires: perl(File::ShareDir)
Requires: perl(Getopt::Long::Descriptive)
Requires: perl(JSON::Schema::Modern) >= 0.635
Requires: perl(JSON::Schema::Modern::Document) >= 0.619
Requires: perl(JSON::Schema::Modern::Result) >= 0.630
Requires: perl(JSON::Schema::Modern::Utilities) >= 0.628
Requires: perl(JSON::Schema::Modern::Vocabulary)
Requires: perl(List::Util) >= 1.45
Requires: perl(Math::BigInt) >= 1.999701
Requires: perl(Mojo::File)
Requires: perl(Mojo::Message::Request)
Requires: perl(Mojo::Message::Response)
Requires: perl(Mojo::Util)
Requires: perl(Moo)
Requires: perl(MooX::TypeTiny) >= 0.002002
Requires: perl(Safe::Isa)
Requires: perl(Types::Standard)
Requires: perl(YAML::PP) >= 0.005
Requires: perl(autovivification)
Requires: perl(builtin::compat)
Requires: perl(experimental)
Requires: perl(feature)
Requires: perl(namespace::clean)
Requires: perl(stable) >= 0.031
Requires: perl(strictures) >= 2
%{perl_requires}
%description
This module provides various tools for working with an at
https://spec.openapis.org/oas/latest#openapi-document within your
application. The JSON Schema evaluator is fully specification-compliant;
the OpenAPI evaluator aims to be but some features are not yet available.
%prep
%autosetup -n %{cpan_name}-%{version}
%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 examples README update-schemas
%license LICENCE
%changelog