forked from perl/perl-JSON-Schema-Modern
		
	
		
			
				
	
	
		
			153 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			153 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
| #
 | |
| # spec file for package perl-JSON-Schema-Modern
 | |
| #
 | |
| # Copyright (c) 2025 SUSE LLC and contributors
 | |
| #
 | |
| # 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.620.0
 | |
| Release:        0
 | |
| # 0.620 -> normalize -> 0.620.0
 | |
| %define cpan_version 0.620
 | |
| 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
 | |
| Source100:      README.md
 | |
| 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(Test2::V0)
 | |
| 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::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(YAML::PP)
 | |
| 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(YAML::PP)
 | |
| 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
 |