From 3f06f6ee2d1c9b0341e0c14ac7741b4df227aa47d20c98f748fb1589d49d9ee2 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Wed, 25 Nov 2020 12:12:39 +0000 Subject: [PATCH] Accepting request 850696 from home:M0ses:tmp - re-run cpanspec - adjusted license to MIT OBS-URL: https://build.opensuse.org/request/show/850696 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Template-Plugin-JSON-Escape?expand=0&rev=2 --- cpanspec.yml | 29 ++++++++++++++++++++++++ perl-Template-Plugin-JSON-Escape.changes | 6 +++++ perl-Template-Plugin-JSON-Escape.spec | 26 ++++++++++----------- 3 files changed, 47 insertions(+), 14 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..4d5087f --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,29 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +license: MIT +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module + diff --git a/perl-Template-Plugin-JSON-Escape.changes b/perl-Template-Plugin-JSON-Escape.changes index e38b5aa..7a6af1a 100644 --- a/perl-Template-Plugin-JSON-Escape.changes +++ b/perl-Template-Plugin-JSON-Escape.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 24 09:06:13 UTC 2020 - Frank Schreiner + +- re-run cpanspec +- adjusted license to MIT + ------------------------------------------------------------------- Mon May 11 21:15:07 UTC 2020 - Frank Schreiner diff --git a/perl-Template-Plugin-JSON-Escape.spec b/perl-Template-Plugin-JSON-Escape.spec index 9df4d3a..70ca7a6 100644 --- a/perl-Template-Plugin-JSON-Escape.spec +++ b/perl-Template-Plugin-JSON-Escape.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Template-Plugin-JSON-Escape # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,31 +12,29 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-Template-Plugin-JSON-Escape Version: 0.02 Release: 0 +#Upstream: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. %define cpan_name Template-Plugin-JSON-Escape Summary: Adds a .json vmethod and a json filter -License: Artistic-1.0-Perl +License: MIT Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Template-Plugin-JSON-Escape/ -Source: http://www.cpan.org/authors/id/N/NA/NANTO/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/N/NA/NANTO/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(JSON) >= 2.12 BuildRequires: perl(Template) >= 2.20 -#BuildRequires: perl(JSON::XS) -#BuildRequires: perl(Template::Plugin) -Requires: perl-base = %{perl_version} Requires: perl(JSON) >= 2.12 Requires: perl(Template) >= 2.20 - %{perl_requires} %description @@ -44,18 +42,18 @@ This plugin allows you to embed JSON strings in HTML. In the output, special characters such as '<' and '&' are escaped as '\uxxxx' to prevent XSS attacks. -It also provides decoding function to keep compatibility with the -Template::Plugin::JSON manpage. +It also provides decoding function to keep compatibility with +Template::Plugin::JSON. %prep %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +make test %install %perl_make_install