From ad20846726cdc357e5903fb219d2215efa918ced0623e16b0b15560ee9f23e18 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 21 Jul 2011 07:47:23 +0000 Subject: [PATCH] - updated to 0.47, see JSON::DWIW::Changes for newer changes OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-DWIW?expand=0&rev=8 --- JSON-DWIW-0.28.tar.gz | 3 -- JSON-DWIW-0.47.tar.gz | 3 ++ perl-JSON-DWIW.changes | 5 +++ perl-JSON-DWIW.spec | 84 +++++++++++++++++++++++++----------------- 4 files changed, 58 insertions(+), 37 deletions(-) delete mode 100644 JSON-DWIW-0.28.tar.gz create mode 100644 JSON-DWIW-0.47.tar.gz diff --git a/JSON-DWIW-0.28.tar.gz b/JSON-DWIW-0.28.tar.gz deleted file mode 100644 index 1801fbf..0000000 --- a/JSON-DWIW-0.28.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8f7152b8683d2145403d4660472b3898e3780ff0e5a835bb359fe70d3f7ac972 -size 68499 diff --git a/JSON-DWIW-0.47.tar.gz b/JSON-DWIW-0.47.tar.gz new file mode 100644 index 0000000..9d9ff39 --- /dev/null +++ b/JSON-DWIW-0.47.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46a7cdcb77ceb95f96da53800ce36d21835f7fd25ab15cb45f823dec11213161 +size 445599 diff --git a/perl-JSON-DWIW.changes b/perl-JSON-DWIW.changes index 3853bd7..d4fb12b 100644 --- a/perl-JSON-DWIW.changes +++ b/perl-JSON-DWIW.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 07:40:22 UTC 2011 - coolo@novell.com + +- updated to 0.47, see JSON::DWIW::Changes for newer changes + ------------------------------------------------------------------- Tue Nov 30 19:20:24 UTC 2010 - coolo@novell.com diff --git a/perl-JSON-DWIW.spec b/perl-JSON-DWIW.spec index b4f5181..86c5f66 100644 --- a/perl-JSON-DWIW.spec +++ b/perl-JSON-DWIW.spec @@ -1,56 +1,72 @@ -%define cpan_name JSON-DWIW +# +# spec file for package perl-JSON-DWIW (Version 0.47) +# +# Copyright (c) 2011 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. -Name: perl-%cpan_name -Version: 0.28 -Release: 1 -Provides: %cpan_name -Group: Development/Libraries/Perl -License: Artistic -URL: http://search.cpan.org/dist/JSON-DWIW/ -Summary: JSON converter that Does What I Want -Source: %cpan_name-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: perl-JSON-DWIW +Version: 0.47 +Release: 1 +License: GPL+ or Artistic +%define cpan_name JSON-DWIW +Summary: JSON converter that Does What I Want +Url: http://search.cpan.org/dist/JSON-DWIW/ +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/D/DO/DOWENS/%{cpan_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +%{perl_requires} %description Other JSON modules require setting several parameters before calling the conversion methods to do what I want. This module does things by default that I think should be done when working with JSON in Perl. This module -also encodes and decodes faster than JSON.pm and JSON::Syck in my benchmarks. +also encodes and decodes faster than the JSON manpage.pm and the JSON::Syck +manpage in my benchmarks. -This means that any piece of data in Perl (assuming it's valid unicode) will -get converted to something in JSON instead of throwing an exception. It also -means that output will be strict JSON, while accepted input will be flexible, -without having to set any options. +This means that any piece of data in Perl (assuming it's valid unicode) +will get converted to something in JSON instead of throwing an exception. +It also means that output will be strict JSON, while accepted input will be +flexible, without having to set any options. + +For a list of changes in recent versions, see the documentation for the +JSON::DWIW::Changes manpage. + +This module can be downloaded from the +http://www.cpan.org/authors/id/D/DO/DOWENS/ manpage. %prep -%setup -q -n %cpan_name-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check -#make test +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist %clean -# clean up the hard disc after build -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} -%files -%defattr(-,root,root) -%doc %{_mandir}/man?/* -%{perl_vendorarch}/JSON -%{perl_vendorarch}/auto/JSON -%doc WhatsNew README - -%changelog -n %{name} -* Sun Oct 26 2008 - gerrit.beine@gmx.de -- first release 0.27 +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Artistic README WhatsNew +%changelog