SHA256
8
0
forked from pool/perl-JSON

update to 2.22, noarch pkg

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON?expand=0&rev=11
This commit is contained in:
Christian Wittmer
2010-09-06 08:23:40 +00:00
committed by Git OBS Bridge
parent 3b039d22a6
commit 52f8e7e43b
4 changed files with 61 additions and 41 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47ee43842b8e0ad36cd474d2928acb0b403ef14573adb420faf7602f4402e0b7
size 74923

3
JSON-2.22.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82b62441ad117dbde91aa222445ad1341a7213f8fbc85f02579cc925c9b93f27
size 55201

View File

@@ -1,27 +1,35 @@
-------------------------------------------------------------------
Mon Sep 6 08:20:25 UTC 2010 - chris@computersalat.de
- update to 2.22
* added JSON::XS installing feature in Makefile.PL
with cpan or cpanm (some points suggested by gfx)
* check that to_json and from_json are not called as methods (CHORNY)
* modified for -Duse64bitall -Duselongdouble compiled perl.
11_pc_expo.t too. (these are patched by H.Merijn Brand)
- recreated by cpanspec 1.78
- noarch pkg
- remove blanks from changes file
-------------------------------------------------------------------
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

View File

@@ -1,10 +1,7 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# spec file for package perl-JSON
# spec file for package perl-JSON (Version 2.22)
#
# Copyright (c) 2009-2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 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
@@ -16,22 +13,34 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%bcond_with pod
Name: perl-JSON
Version: 2.21
Release: 0
%define cpan_name JSON
Summary: JSON (JavaScript Object Notation) encoder/decoder
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
URL: http://search.cpan.org/dist/JSON/
Version: 2.22
Release: 1
License: GPL+ or Artistic
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)
Url: http://search.cpan.org/dist/JSON/
#Source: http://www.cpan.org/modules/by-module/JSON/JSON-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.00
%endif
BuildRequires: perl(JSON::XS) >= 2.27
BuildRequires: perl(Test::More)
Requires: perl = %{perl_version}
Recommends: perl(JSON::XS) >= 2.27
%description
@@ -49,31 +58,34 @@ 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.
Authors:
--------
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
%prep
%setup -q -n "JSON-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%files -f %{name}.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