From dc50e1ad5b83d1d1f2df32d5619a7a8ebfb22b927af4f4bf0f694fe73999ca22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 8 Aug 2025 11:48:20 +0000 Subject: [PATCH] Accepting request 1297337 from home:tinita:branches:devel:languages:perl:CPAN-M We will possibly use this for openQA OBS-URL: https://build.opensuse.org/request/show/1297337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mojolicious-Plugin-OpenAPI?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + Mojolicious-Plugin-OpenAPI-5.11.tar.gz | 3 + perl-Mojolicious-Plugin-OpenAPI.changes | 5 ++ perl-Mojolicious-Plugin-OpenAPI.spec | 76 +++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Mojolicious-Plugin-OpenAPI-5.11.tar.gz create mode 100644 perl-Mojolicious-Plugin-OpenAPI.changes create mode 100644 perl-Mojolicious-Plugin-OpenAPI.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Mojolicious-Plugin-OpenAPI-5.11.tar.gz b/Mojolicious-Plugin-OpenAPI-5.11.tar.gz new file mode 100644 index 0000000..1830980 --- /dev/null +++ b/Mojolicious-Plugin-OpenAPI-5.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c29ca9243ced76037feb2ffaddd9ae94f94960c55b3df4a51fb26bf179e6d332 +size 69644 diff --git a/perl-Mojolicious-Plugin-OpenAPI.changes b/perl-Mojolicious-Plugin-OpenAPI.changes new file mode 100644 index 0000000..b7c5c41 --- /dev/null +++ b/perl-Mojolicious-Plugin-OpenAPI.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Aug 3 22:01:10 UTC 2025 - Tina Müller + +- initial package 5.110.0 (5.11) + * created by cpanspec 1.84.01 diff --git a/perl-Mojolicious-Plugin-OpenAPI.spec b/perl-Mojolicious-Plugin-OpenAPI.spec new file mode 100644 index 0000000..1fe1a90 --- /dev/null +++ b/perl-Mojolicious-Plugin-OpenAPI.spec @@ -0,0 +1,76 @@ +# +# spec file for package perl-Mojolicious-Plugin-OpenAPI +# +# 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 Mojolicious-Plugin-OpenAPI +Name: perl-Mojolicious-Plugin-OpenAPI +Version: 5.110.0 +Release: 0 +# 5.11 -> normalize -> 5.110.0 +%define cpan_version 5.11 +License: Artistic-2.0 +Summary: OpenAPI / Swagger plugin for Mojolicious +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(JSON::Validator) >= 5.130 +BuildRequires: perl(Mojolicious) >= 9.0 +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(JSON::Validator) >= 5.130 +Requires: perl(Mojolicious) >= 9.0 +Provides: perl(Mojolicious::Plugin::OpenAPI) = %{version} +Provides: perl(Mojolicious::Plugin::OpenAPI::Cors) +Provides: perl(Mojolicious::Plugin::OpenAPI::Parameters) +Provides: perl(Mojolicious::Plugin::OpenAPI::Security) +Provides: perl(Mojolicious::Plugin::OpenAPI::SpecRenderer) +%undefine __perllib_provides +Recommends: perl(Text::Markdown) >= 1.0.31 +%{perl_requires} + +%description +Mojolicious::Plugin::OpenAPI is Mojolicious::Plugin that add routes and +input/output validation to your Mojolicious application based on a OpenAPI +(Swagger) specification. This plugin supports both version 2.0 and 3.x, +though 3.x _might_ have some missing features. + +Have a look at the SEE ALSO for references to plugins and other useful +documentation. + +Please report in at https://github.com/jhthorsen/json-validator/issues or +open pull requests to enhance the 3.0 support. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes + +%changelog