forked from pool/perl-JSON
2.21
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
b9882e050f
commit
3b039d22a6
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7aa086e4c5aecd641df5080e74e6f47be7d10143440f333e4fd87fa39c6113ef
|
||||
size 51093
|
3
JSON-2.21.tar.gz
Normal file
3
JSON-2.21.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:47ee43842b8e0ad36cd474d2928acb0b403ef14573adb420faf7602f4402e0b7
|
||||
size 74923
|
@@ -1,3 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 25 07:04:25 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
- completely rewritten spec file
|
||||
|
||||
- updated to 2.22:
|
||||
* check that to_json and from_json are not called as methods
|
||||
|
||||
- changes from 2.21:
|
||||
* enhanced 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
||||
* renamed eg/bench_pp_xs.pl to eg/bench_decode.pl
|
||||
* added eg/bench_encode.pl
|
||||
|
||||
- changes from 2.20:
|
||||
* added eg/bench_pp_xs.pl for benchmark sample
|
||||
* updated 'INCREMENTAL PARSING' section
|
||||
* decode_prefix() didn't count a consumed text length properly
|
||||
* enhanced XS compatibilty in the case of decoding a white space garbaged text
|
||||
|
||||
- changes from 2.19:
|
||||
* fixed typo (rt#53535 by Angel Abad)
|
||||
* added a recommendation refering to (en|de)code_json to pod
|
||||
* added 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
||||
|
||||
- changs from 2.18:
|
||||
* updated document (compatible with JSON::XS 2.29)
|
||||
* fixed encode an overloaded 'eq' object bug
|
||||
* enhanced an error message compatible to JSON::XS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 13 23:15:16 UTC 2010 - jw@novell.com
|
||||
|
||||
|
@@ -1,7 +1,10 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
# norootforbuild
|
||||
|
||||
#
|
||||
# spec file for package perl-JSON
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009-2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -13,78 +16,64 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
#Distribution: %dist
|
||||
#Packager: %packager
|
||||
#Vendor: %vendor
|
||||
|
||||
Name: perl-JSON
|
||||
%define cpan_name JSON
|
||||
Version: 2.21
|
||||
Release: 0
|
||||
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
||||
Version: 2.17
|
||||
Release: 1
|
||||
License: GPL/Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/JSON/
|
||||
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/%{cpan_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
Requires: perl = %{perl_version}
|
||||
BuildRequires: make perl
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
# other not perl || perl-base
|
||||
BuildRequires: perl(JSON::XS)
|
||||
#BuildRequires: perl-libwww-perl
|
||||
Requires: perl = %{perl_version}
|
||||
#Requires: perl-libwww-perl
|
||||
# other not perl || perl-base
|
||||
Requires: perl(JSON::XS)
|
||||
BuildRequires: perl(JSON::XS) >= 2.27
|
||||
Recommends: perl(JSON::XS) >= 2.27
|
||||
|
||||
%description
|
||||
%{cpan_name} module for perl
|
||||
JSON (JavaScript Object Notation) is a simple data format. See to
|
||||
http://www.json.org/ and RFC4627(http://www.ietf.org/rfc/rfc4627.txt).
|
||||
|
||||
JSON (JavaScript Object Notation) is a simple data format.
|
||||
See to http://www.json.org/ and RFC4627(http://www.ietf.org/rfc/rfc4627.txt).
|
||||
This module converts Perl data structures to JSON and vice versa using either
|
||||
JSON::XS or JSON::PP.
|
||||
|
||||
This module converts Perl data structures to JSON and vice versa using
|
||||
either JSON::XS or JSON::PP.
|
||||
|
||||
JSON::XS is the fastest and most proper JSON module on CPAN which must be
|
||||
compiled and installed in your environment.
|
||||
JSON::PP is a pure-Perl module which is bundled in this distribution and has
|
||||
a strong compatibility to JSON::XS.
|
||||
|
||||
This module try to use JSON::XS by default and fail to it, use JSON::PP instead.
|
||||
So its features completely depend on JSON::XS or JSON::PP.
|
||||
|
||||
Author: Makamaka Hannyaharamitu, <makamaka (at) cpan.org>
|
||||
JSON::XS is the fastest and most proper JSON module on CPAN which must be
|
||||
compiled and installed in your environment. JSON::PP is a pure-Perl module
|
||||
which is bundled in this distribution and has a strong compatibility to
|
||||
JSON::XS.
|
||||
|
||||
This module try to use JSON::XS by default and fail to it, use JSON::PP
|
||||
instead. So its features completely depend on JSON::XS or JSON::PP.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%setup -q -n "JSON-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
||||
%{__make}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files -f %{name}.files
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/JSON.pm
|
||||
%{perl_vendorlib}/JSON
|
||||
%{perl_vendorarch}/auto/JSON
|
||||
%doc %{perl_man3dir}/JSON.%{perl_man3ext}%{ext_man}
|
||||
%doc %{perl_man3dir}/JSON::*.%{perl_man3ext}%{ext_man}
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue Sep 18 2007 - James Oakley <jfunk@funktronics.ca> - 1.14-1
|
||||
- Initial release
|
||||
|
Reference in New Issue
Block a user