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:
committed by
Git OBS Bridge
parent
3b039d22a6
commit
52f8e7e43b
@@ -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
3
JSON-2.22.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:82b62441ad117dbde91aa222445ad1341a7213f8fbc85f02579cc925c9b93f27
|
||||||
|
size 55201
|
@@ -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
|
Wed Aug 25 07:04:25 UTC 2010 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
- completely rewritten spec file
|
- completely rewritten spec file
|
||||||
|
|
||||||
- updated to 2.22:
|
- updated to 2.22:
|
||||||
* check that to_json and from_json are not called as methods
|
* check that to_json and from_json are not called as methods
|
||||||
|
|
||||||
- changes from 2.21:
|
- changes from 2.21:
|
||||||
* enhanced 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
* enhanced 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
||||||
* renamed eg/bench_pp_xs.pl to eg/bench_decode.pl
|
* renamed eg/bench_pp_xs.pl to eg/bench_decode.pl
|
||||||
* added eg/bench_encode.pl
|
* added eg/bench_encode.pl
|
||||||
|
|
||||||
- changes from 2.20:
|
- changes from 2.20:
|
||||||
* added eg/bench_pp_xs.pl for benchmark sample
|
* added eg/bench_pp_xs.pl for benchmark sample
|
||||||
* updated 'INCREMENTAL PARSING' section
|
* updated 'INCREMENTAL PARSING' section
|
||||||
* decode_prefix() didn't count a consumed text length properly
|
* decode_prefix() didn't count a consumed text length properly
|
||||||
* enhanced XS compatibilty in the case of decoding a white space garbaged text
|
* enhanced XS compatibilty in the case of decoding a white space garbaged text
|
||||||
|
|
||||||
- changes from 2.19:
|
- changes from 2.19:
|
||||||
* fixed typo (rt#53535 by Angel Abad)
|
* fixed typo (rt#53535 by Angel Abad)
|
||||||
* added a recommendation refering to (en|de)code_json to pod
|
* added a recommendation refering to (en|de)code_json to pod
|
||||||
* added 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
* added 'HOW DO I DECODE A DATA FROM OUTER AND ENCODE TO OUTER'
|
||||||
|
|
||||||
- changs from 2.18:
|
- changs from 2.18:
|
||||||
* updated document (compatible with JSON::XS 2.29)
|
* updated document (compatible with JSON::XS 2.29)
|
||||||
* fixed encode an overloaded 'eq' object bug
|
* fixed encode an overloaded 'eq' object bug
|
||||||
|
@@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +13,34 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
%bcond_with pod
|
||||||
|
|
||||||
Name: perl-JSON
|
Name: perl-JSON
|
||||||
Version: 2.21
|
%define cpan_name JSON
|
||||||
Release: 0
|
|
||||||
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
|
Version: 2.22
|
||||||
URL: http://search.cpan.org/dist/JSON/
|
Release: 1
|
||||||
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Perl License
|
Url: http://search.cpan.org/dist/JSON/
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
#Source: http://www.cpan.org/modules/by-module/JSON/JSON-%{version}.tar.gz
|
||||||
Requires: perl = %{perl_version}
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
BuildRequires: make perl
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
|
%if %{with pod}
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
|
%endif
|
||||||
BuildRequires: perl(JSON::XS) >= 2.27
|
BuildRequires: perl(JSON::XS) >= 2.27
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
Recommends: perl(JSON::XS) >= 2.27
|
Recommends: perl(JSON::XS) >= 2.27
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -49,31 +58,34 @@ JSON::XS.
|
|||||||
This module try to use JSON::XS by default and fail to it, use JSON::PP
|
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.
|
instead. So its features completely depend on JSON::XS or JSON::PP.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "JSON-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
# do not perl_process_packlist (noarch)
|
||||||
|
# remove .packlist file
|
||||||
%check
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||||
%__make test
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README
|
%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
|
||||||
|
Reference in New Issue
Block a user