File project.diff of Package perl-JSON-XS

--- perl-JSON-XS.changes.orig
+++ perl-JSON-XS.changes
@@ -1,4 +1,21 @@
 -------------------------------------------------------------------
+Wed Jun  5 08:30:08 UTC 2013 - coolo@suse.com
+
+- updated to 2.34
+       - work around bugs in perl 5.18 breaking more than 100
+          widely used modules, without a fix in sight because
+          p5pers don't care about CPAN anymore.
+       - when canonicalising, only allocate up to 64 hash key
+          pointers on the stack. for larger hashes, use the heap,
+          to avoid using too much stackspace.
+        - discuss the problem with setlocale (reported by a few victims).
+
+       - internal encode/decode XS wrappers did not expect stack
+          moves caused by callbacks (analyzed and testcase by Jesse Luehrs).
+       - add bencode as to/from option in bin/json_xs.
+        - add -e option to json_xs, and none and string in/out formats.
+
+-------------------------------------------------------------------
 Fri Nov 18 11:08:50 UTC 2011 - coolo@suse.com
 
 - use original .tar.gz
--- perl-JSON-XS.spec.orig
+++ perl-JSON-XS.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-JSON-XS
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -15,54 +15,52 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:           perl-JSON-XS
+Version:        2.34
+Release:        0
 %define cpan_name JSON-XS
 Summary:        JSON serialising/deserialising, done correctly and fast
-Version:        2.32
-Release:        1
 License:        GPL-1.0+ or Artistic-1.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/JSON-XS/
-# http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
-Source:         %{cpan_name}-%{version}.tar.gz
+Source:         http://www.cpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(common::sense)
+#BuildRequires: perl(JSON::XS)
 Requires:       perl(common::sense)
+%{perl_requires}
 
 %description
 This module converts Perl data structures to JSON and vice versa. Its
-primary goal is to be *correct* and its secondary goal is to be *fast*.
-To reach the latter goal it was written in C.
+primary goal is to be _correct_ and its secondary goal is to be _fast_. To
+reach the latter goal it was written in C.
 
-Beginning with version 2.0 of the JSON module, when both JSON and
-JSON::XS are installed, then JSON will fall back on JSON::XS (this can
-be overridden) with no overhead due to emulation (by inheriting
-constructor and methods). If JSON::XS is not available, it will fall
-back to the compatible JSON::PP module as backend, so using JSON instead
-of JSON::XS gives you a portable JSON API that can be fast when you need
-and doesn`t require a C compiler when that is a problem.
-
-As this is the n-th-something JSON module on CPAN, what was the reason
-to write yet another JSON module? While it seems there are many JSON
-modules, none of them correctly handle all corner cases, and in most
-cases their maintainers are unresponsive, gone missing, or not listening
-to bug reports for other reasons.
-
-Author:
--------
-    Marc Lehmann <schmorp@schmorp.de>
+Beginning with version 2.0 of the JSON module, when both JSON and JSON::XS
+are installed, then JSON will fall back on JSON::XS (this can be
+overridden) with no overhead due to emulation (by inheriting constructor
+and methods). If JSON::XS is not available, it will fall back to the
+compatible JSON::PP module as backend, so using JSON instead of JSON::XS
+gives you a portable JSON API that can be fast when you need and doesn't
+require a C compiler when that is a problem.
+
+As this is the n-th-something JSON module on CPAN, what was the reason to
+write yet another JSON module? While it seems there are many JSON modules,
+none of them correctly handle all corner cases, and in most cases their
+maintainers are unresponsive, gone missing, or not listening to bug reports
+for other reasons.
+
+See MAPPING, below, on how JSON::XS maps perl values to JSON values and
+vice versa.
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+find . -type f -print0 | xargs -0 chmod 644
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 %{__make} %{?_smp_mflags}
 
 %check
@@ -73,11 +71,8 @@ Author:
 %perl_process_packlist
 %perl_gen_filelist
 
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
 %files -f %{name}.files
-%defattr(-,root,root,-)
+%defattr(-,root,root,755)
 %doc Changes COPYING README
 
 %changelog
openSUSE Build Service is sponsored by