forked from pool/perl-JSON-Parse
Accepting request 296307 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/296307 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
9de11bdc1a
commit
3fec526b84
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5050de7545511b10dc3cb2eed9961c50818559fccd350cc399da35e4e5730a23
|
||||
size 72092
|
3
JSON-Parse-0.31.tar.gz
Normal file
3
JSON-Parse-0.31.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5d645f0d8b1a02eff93f23152d361fe16a39d36b783f233a73f51849cbb16a9e
|
||||
size 47830
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 18:14:51 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.31
|
||||
see /usr/share/doc/packages/perl-JSON-Parse/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 26 22:38:35 UTC 2011 - chris@computersalat.de
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-JSON-Parse
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,36 +15,44 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-JSON-Parse
|
||||
Version: 0.07
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Version: 0.31
|
||||
Release: 0
|
||||
%define cpan_name JSON-Parse
|
||||
Summary: Convert JSON into a Perl variable
|
||||
Url: http://search.cpan.org/dist/JSON-Parse/
|
||||
Summary: Read JSON into a Perl variable
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/JSON-Parse/
|
||||
Source: http://www.cpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
%endif
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Convert JSON (JavaScript Object Notation) into Perl.
|
||||
JSON means "JavaScript Object Notation" and it is specified in the /RFC
|
||||
4627 manpage.
|
||||
|
||||
JSON::Parse converts JSON into the nearest equivalent Perl. The function
|
||||
the /parse_json manpage takes one argument, a string containing JSON, and
|
||||
returns a Perl reference. The input to 'parse_json' must be a complete JSON
|
||||
structure.
|
||||
|
||||
The module differs from the the JSON manpage module by simplifying the
|
||||
handling of Unicode. If its input is marked as Unicode characters, the
|
||||
strings in its output are also marked as Unicode characters.
|
||||
|
||||
JSON::Parse also provides two high speed validation functions, the
|
||||
/valid_json manpage and the /assert_valid_json manpage, and a function to
|
||||
read JSON from a file, the /json_file_to_perl manpage.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%if 0%{?suse_version} < 1120 || 0%{?rhel_version} || 0%{?centos_version}
|
||||
%{__perl} -p -i\
|
||||
-e 's|(use Test::More);|\1 qw(no_plan);|,s|(done_testing.*)|#\1|' t/JSON-Parse.t
|
||||
%endif
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
@@ -55,11 +63,8 @@ Convert JSON (JavaScript Object Notation) into Perl.
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user