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
This commit is contained in:
Dirk Stoecker 2020-11-25 12:12:39 +00:00 committed by Git OBS Bridge
parent 22ff1aa088
commit 3f06f6ee2d
3 changed files with 47 additions and 14 deletions

29
cpanspec.yml Normal file
View File

@ -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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 24 09:06:13 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>
- re-run cpanspec
- adjusted license to MIT
-------------------------------------------------------------------
Mon May 11 21:15:07 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>

View File

@ -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