Hello community, here is the log from the commit of package guile-json for openSUSE:Factory checked in at 2018-02-23 15:31:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/guile-json (Old) and /work/SRC/openSUSE:Factory/.guile-json.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "guile-json" Fri Feb 23 15:31:12 2018 rev:3 rq:579214 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/guile-json/guile-json.changes 2016-07-24 19:53:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.guile-json.new/guile-json.changes 2018-02-23 15:31:28.974870173 +0100 @@ -1,0 +2,12 @@ +Thu Feb 15 22:33:02 UTC 2018 - [email protected] + +- bump to 0.6.0 + changes since 0.5.0 + - Deprecate json macro in favor of scheme data types. + +------------------------------------------------------------------- +Thu Feb 15 22:24:27 UTC 2018 - [email protected] + +- make package not noarch + +------------------------------------------------------------------- Old: ---- guile-json-0.5.0.tar.gz guile-json-0.5.0.tar.gz.asc New: ---- guile-json-0.6.0.tar.gz guile-json-0.6.0.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ guile-json.spec ++++++ --- /var/tmp/diff_new_pack.m0II5v/_old 2018-02-23 15:31:31.182790399 +0100 +++ /var/tmp/diff_new_pack.m0II5v/_new 2018-02-23 15:31:31.186790255 +0100 @@ -1,7 +1,7 @@ # # spec file for package guile-json # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: guile-json -Version: 0.5.0 +Version: 0.6.0 Release: 0 Summary: JSON module for Guile License: LGPL-3.0+ @@ -28,7 +28,6 @@ Source2: https://savannah.nongnu.org/people/viewgpg.php?user_id=11331#/%{name}.keyring BuildRequires: guile >= 2.0.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %description Guile-json is JSON module for Guile. It supports parsing and building ++++++ guile-json-0.5.0.tar.gz -> guile-json-0.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/ChangeLog new/guile-json-0.6.0/ChangeLog --- old/guile-json-0.5.0/ChangeLog 2016-02-24 07:02:21.000000000 +0100 +++ new/guile-json-0.6.0/ChangeLog 2017-01-17 09:31:43.000000000 +0100 @@ -1,3 +1,71 @@ +commit 932ab41c875ffa4cb3ca1d950a06e48e36adf54c +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Tue Jan 17 00:30:27 2017 -0800 + + README: comply with, please! + + README.org | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1aa4ef600a955caab4f6a53ed7c09598c5417cd4 +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Tue Jan 17 00:05:43 2017 -0800 + + Makefile.am: make sed compatible with os x + + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a077bb1d6b35b5519779ae3871878ec9a0f56798 +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Mon Jan 16 23:55:47 2017 -0800 + + bump version to 0.6.0 + + NEWS | 5 +++++ + README.org | 2 +- + configure.ac | 4 ++-- + 3 files changed, 8 insertions(+), 3 deletions(-) + +commit 422f3d0743c62ad9d6215fb1e5c2269d52b54a2b +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Mon Jan 16 23:48:35 2017 -0800 + + README: unicode hexadecimal digits are not fully supported + + README.org | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 473b7a6b89f09d7e085cbedbab37dbd7bc357062 +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Mon Jan 16 23:45:16 2017 -0800 + + README: cosmetic changes + + README.org | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit 3fc1e41dd564810bcddd57f7d46dbf01a85c4824 +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Mon Jan 16 23:42:10 2017 -0800 + + README: remove deprecated macros from examples + + README.org | 60 +++++++++++++++++++++++++++++++++--------------------------- + 1 file changed, 33 insertions(+), 27 deletions(-) + +commit 23e10e33dc99b3f797eb9aebb15f07b8e0b699b1 +Author: Aleix Conchillo Flaqué <[email protected]> +Date: Mon Jan 16 23:37:16 2017 -0800 + + syntax: deprecate json macro + + * json/syntax.scm (json): use issue-deprecation-warning to deprecate + every syntax rule. + + json/syntax.scm | 35 +++++++++++++++++++++++++++-------- + 1 file changed, 27 insertions(+), 8 deletions(-) + commit 3078a8e1830d04e3dae4b1437c5cdb274cc026b2 Author: Aleix Conchillo Flaqué <[email protected]> Date: Tue Feb 23 21:59:27 2016 -0800 @@ -373,12 +441,10 @@ automatically update pkg-list.scm version - Makefile.am | 6 +++++- - pkg-list.scm | 33 --------------------------------- - pkg-list.scm.in | 33 +++++++++++++++++++++++++++++++++ - 3 files changed, 38 insertions(+), 34 deletions(-) - delete mode 100644 pkg-list.scm - create mode 100644 pkg-list.scm.in + Makefile.am | 6 +++++- + pkg-list.scm => pkg-list.scm.in | 2 +- + 2 files changed, 6 insertions(+), 2 deletions(-) + rename pkg-list.scm => pkg-list.scm.in (97%) commit 933f30f616e20289c7db83b15c6f8dd55e465499 Author: Aleix Conchillo Flaque <[email protected]> @@ -791,21 +857,17 @@ split moduel into different files - Makefile.am | 18 +++- - configure.ac | 4 +- - json.scm | 45 ++++++++ - json/Makefile.am | 15 +++ - json/parser.scm | 323 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ - json/syntax.scm | 56 ++++++++++ - src/Makefile.am | 15 --- - src/json.scm | 323 ------------------------------------------------------- - 8 files changed, 458 insertions(+), 341 deletions(-) + Makefile.am | 18 ++++++++++++- + configure.ac | 4 +-- + json.scm | 45 +++++++++++++++++++++++++++++++++ + {src => json}/Makefile.am | 4 +-- + src/json.scm => json/parser.scm | 6 ++--- + json/syntax.scm | 56 +++++++++++++++++++++++++++++++++++++++++ + 6 files changed, 125 insertions(+), 8 deletions(-) create mode 100644 json.scm - create mode 100644 json/Makefile.am - create mode 100644 json/parser.scm + rename {src => json}/Makefile.am (82%) + rename src/json.scm => json/parser.scm (98%) create mode 100644 json/syntax.scm - delete mode 100644 src/Makefile.am - delete mode 100644 src/json.scm commit e49b0377774ce11c96729db8562794e8a067ea7c Author: Aleix Conchillo Flaque <[email protected]> @@ -849,35 +911,31 @@ prepare guile-json library for installation - .gitignore | 15 ++ - AUTHORS | 1 + - COPYING | 674 +++++++++++++++++++++++++++++++++++++++++++++++++++++ - INSTALL | 370 +++++++++++++++++++++++++++++ - Makefile.am | 3 + - NEWS | 0 - README | 3 + - README.org | 3 - - build-aux/guile.m4 | 229 ++++++++++++++++++ - configure.ac | 45 ++++ - env.in | 16 ++ - json/json.scm | 292 ----------------------- - src/Makefile.am | 15 ++ - src/json.scm | 324 +++++++++++++++++++++++++ - 14 files changed, 1695 insertions(+), 295 deletions(-) + .gitignore | 15 ++ + AUTHORS | 1 + + COPYING | 674 +++++++++++++++++++++++++++++++++++++++++++++++++ + INSTALL | 370 +++++++++++++++++++++++++++ + Makefile.am | 3 + + NEWS | 0 + README.org => README | 0 + build-aux/guile.m4 | 229 +++++++++++++++++ + configure.ac | 45 ++++ + env.in | 16 ++ + src/Makefile.am | 15 ++ + {json => src}/json.scm | 32 +++ + 12 files changed, 1400 insertions(+) create mode 100644 .gitignore create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 NEWS - create mode 100644 README - delete mode 100644 README.org + rename README.org => README (100%) create mode 100644 build-aux/guile.m4 create mode 100644 configure.ac create mode 100644 env.in - delete mode 100644 json/json.scm create mode 100644 src/Makefile.am - create mode 100644 src/json.scm + rename {json => src}/json.scm (88%) commit 5e2b0cf5faac6a9950efdbf06bb6b77d6a62bb26 Author: Aleix Conchillo Flaque <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/Makefile.am new/guile-json-0.6.0/Makefile.am --- old/guile-json-0.5.0/Makefile.am 2013-05-16 06:30:15.000000000 +0200 +++ new/guile-json-0.6.0/Makefile.am 2017-01-17 09:04:40.000000000 +0100 @@ -30,7 +30,7 @@ dist-hook: $(SHELL) $(top_srcdir)/ChangeLog > $(top_distdir)/ChangeLog cp $(top_srcdir)/pkg-list.scm.in $(top_distdir)/pkg-list.scm - sed -i "s/%VERSION%/$(PKG_LIST_VERSION)/" $(top_distdir)/pkg-list.scm + sed -i '' "s/%VERSION%/$(PKG_LIST_VERSION)/g" $(top_distdir)/pkg-list.scm moddir=$(prefix)/share/guile/site diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/Makefile.in new/guile-json-0.6.0/Makefile.in --- old/guile-json-0.5.0/Makefile.in 2016-02-24 07:02:15.000000000 +0100 +++ new/guile-json-0.6.0/Makefile.in 2017-01-17 09:31:41.000000000 +0100 @@ -834,7 +834,7 @@ dist-hook: $(SHELL) $(top_srcdir)/ChangeLog > $(top_distdir)/ChangeLog cp $(top_srcdir)/pkg-list.scm.in $(top_distdir)/pkg-list.scm - sed -i "s/%VERSION%/$(PKG_LIST_VERSION)/" $(top_distdir)/pkg-list.scm + sed -i '' "s/%VERSION%/$(PKG_LIST_VERSION)/g" $(top_distdir)/pkg-list.scm .scm.go: $(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/NEWS new/guile-json-0.6.0/NEWS --- old/guile-json-0.5.0/NEWS 2016-02-24 06:58:15.000000000 +0100 +++ new/guile-json-0.6.0/NEWS 2017-01-17 08:52:33.000000000 +0100 @@ -1,4 +1,9 @@ +* Version 0.6.0 (Jan 16, 2017) + + - Deprecate json macro in favor of scheme data types. + + * Version 0.5.0 (Feb 21, 2015) - Allow converting simple alists to json diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/README new/guile-json-0.6.0/README --- old/guile-json-0.5.0/README 2016-02-24 06:58:44.000000000 +0100 +++ new/guile-json-0.6.0/README 2017-01-17 09:30:16.000000000 +0100 @@ -5,11 +5,11 @@ building JSON documents according to the http://json.org specification. These are the main features: -- Strictly complies to http://json.org specification. +- Mostly complies with http://json.org specification (see UTF-8 below). -- Build JSON documents programmatically via macros. +- Build JSON documents programmatically using scheme data types. -- Basic unicode support for strings. +- Supports UTF-8 (doesn't fully support unicode hexadecimal digits). - Allows JSON pretty printing. @@ -21,7 +21,7 @@ Download the latest tarball and untar it: -- [[http://download.savannah.gnu.org/releases/guile-json/guile-json-0.5.0.tar.gz][guile-json-0.5.0.tar.gz]] +- [[http://download.savannah.gnu.org/releases/guile-json/guile-json-0.6.0.tar.gz][guile-json-0.6.0.tar.gz]] Then, run the typical sequence: @@ -36,7 +36,7 @@ : $ guile : scheme@(guile-user)> (use-modules (json)) - : scheme@(guile-user)> (scm->json (json (array 1 2 3))) + : scheme@(guile-user)> (scm->json '(1 2 3)) : [1, 2, 3] It might be that you installed guile-json somewhere differently than @@ -55,15 +55,18 @@ document. A JSON document is transformed into or from native Guile values according to the following table: -| JSON | Guile | -|--------+------------| -| string | string | -| number | number | -| object | hash-table | -| array | list | -| true | #t | -| false | #f | -| null | #nil | +| JSON | Guile | +|--------+-------------| +| string | string | +| number | number | +| object | hash-table* | +| array | list | +| true | #t | +| false | #f | +| null | #nil | + +*Note* (*): Association lists are also tranformed to JSON objects, in +this case ordered will be preserved. To start using guile-json procedures and macros you first need to load the module: @@ -112,41 +115,44 @@ from. -** Macros - -It is also possible to build JSON documents programmatically using the -main /json/ macro (and /object/ and /array/). Here are some examples: +** Examples - Build the string "hello world": - : scheme@(guile-user)> (scm->json (json "hello world")) + : scheme@(guile-user)> (scm->json "hello world") : "hello world" - Build the [1, 2, 3] array: - : scheme@(guile-user)> (scm->json (json (array 1 2 3))) + : scheme@(guile-user)> (scm->json '(1 2 3)) : [1, 2, 3] - Build the [1, 2, 3, 4] array using unquote-splicing: : scheme@(guile-user)> (define values '(2 3)) - : scheme@(guile-user)> (scm->json (json (array 1 ,@values 4))) + : scheme@(guile-user)> (scm->json `(1 ,@values 4)) : [1, 2, 3, 4] -- Build the object { "project" : "foo", "author" : "bar" }: +- Build the object { "project" : "foo", "author" : "bar" } using an + association list (see how symbols can also be used): + + : scheme@(guile-user)> (scm->json '(("project" . "foo") (author . bar))) + : {"project" : "foo","author" : "bar"} - : scheme@(guile-user)> (scm->json (json (object ("project" "foo") - : ("author" "bar")))) - : {"author" : "bar", "project" : "foo"} +- Build again the same object { "project" : "foo", "author" : "bar" } + using a hash table: + + : scheme@(guile-user)> (scm->json (alist->hash-table '((project . foo) (author . bar)))) + : {"project" : "foo","author" : "bar"} - Build the object { "values" : [ 234, 98.56 ] }: - : scheme@(guile-user)> (scm->json (json (object ("values" (array 234 98.56))))) + : scheme@(guile-user)> (scm->json '(("values" 234 98.56))) : {"values" : [234, 98.56]} - Build the object { "values" : [ 234, 98.56 ] } again, this time using a variable: : scheme@(guile-user)> (define values '(234 98.56)) - : scheme@(guile-user)> (scm->json (json (object ("values" ,values)))) - : {"values" : [1, 2, 3]} + : scheme@(guile-user)> (scm->json `(("values" ,@values))) + : {"values" : [234, 98.56]} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/configure new/guile-json-0.6.0/configure --- old/guile-json-0.5.0/configure 2016-02-24 07:02:15.000000000 +0100 +++ new/guile-json-0.6.0/configure 2017-01-17 09:31:41.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for guile-json 0.5.0. +# Generated by GNU Autoconf 2.69 for guile-json 0.6.0. # # Report bugs to <[email protected]>. # @@ -579,8 +579,8 @@ # Identity of this package. PACKAGE_NAME='guile-json' PACKAGE_TARNAME='guile-json' -PACKAGE_VERSION='0.5.0' -PACKAGE_STRING='guile-json 0.5.0' +PACKAGE_VERSION='0.6.0' +PACKAGE_STRING='guile-json 0.6.0' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -1204,7 +1204,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures guile-json 0.5.0 to adapt to many kinds of systems. +\`configure' configures guile-json 0.6.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1270,7 +1270,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of guile-json 0.5.0:";; + short | recursive ) echo "Configuration of guile-json 0.6.0:";; esac cat <<\_ACEOF @@ -1344,7 +1344,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -guile-json configure 0.5.0 +guile-json configure 0.6.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1361,7 +1361,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by guile-json $as_me 0.5.0, which was +It was created by guile-json $as_me 0.6.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2225,7 +2225,7 @@ # Define the identity of the package. PACKAGE='guile-json' - VERSION='0.5.0' + VERSION='0.6.0' cat >>confdefs.h <<_ACEOF @@ -3129,7 +3129,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by guile-json $as_me 0.5.0, which was +This file was extended by guile-json $as_me 0.6.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -3182,7 +3182,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -guile-json config.status 0.5.0 +guile-json config.status 0.6.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/configure.ac new/guile-json-0.6.0/configure.ac --- old/guile-json-0.5.0/configure.ac 2016-02-24 06:58:44.000000000 +0100 +++ new/guile-json-0.6.0/configure.ac 2017-01-17 08:53:33.000000000 +0100 @@ -1,7 +1,7 @@ # # configure.ac # -# Copyright (C) 2013-2016 Aleix Conchillo Flaque <[email protected]> +# Copyright (C) 2013-2017 Aleix Conchillo Flaque <[email protected]> # # This file is part of guile-json. # @@ -21,7 +21,7 @@ # 02110-1301 USA # -AC_INIT([guile-json], [0.5.0], [[email protected]]) +AC_INIT([guile-json], [0.6.0], [[email protected]]) AC_CONFIG_SRCDIR(json.scm) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/json/syntax.scm new/guile-json-0.6.0/json/syntax.scm --- old/guile-json-0.5.0/json/syntax.scm 2014-08-17 00:56:26.000000000 +0200 +++ new/guile-json-0.6.0/json/syntax.scm 2017-01-17 08:49:39.000000000 +0100 @@ -1,6 +1,6 @@ ;;; (json syntax) --- Guile JSON implementation. -;; Copyright (C) 2013 Aleix Conchillo Flaque <[email protected]> +;; Copyright (C) 2013-2017 Aleix Conchillo Flaque <[email protected]> ;; ;; This file is part of guile-json. ;; @@ -26,6 +26,7 @@ ;;; Code: (define-module (json syntax) + #:use-module (ice-9 deprecated) #:use-module (ice-9 match) #:export (json)) @@ -41,17 +42,35 @@ (define-syntax json (syntax-rules (unquote unquote-splicing array object) ((_ (unquote val)) - val) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + val)) ((_ ((unquote-splicing val) . rest)) - (append val (json rest))) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + (append val (json rest)))) ((_ (array val . rest)) - (cons (json val) (json rest))) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + (cons (json val) (json rest)))) ((_ (object key+val ...)) - (list->hash-table - (json (array key+val ...)))) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + (list->hash-table + (json (array key+val ...))))) ((_ (val . rest)) - (cons (json val) (json rest))) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + (cons (json val) (json rest)))) ((_ val) - (quote val)))) + (begin + (issue-deprecation-warning + "`json' macro is deprecated. Use scheme data types instead.") + (quote val))))) ;;; (json syntax) ends here diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guile-json-0.5.0/pkg-list.scm new/guile-json-0.6.0/pkg-list.scm --- old/guile-json-0.5.0/pkg-list.scm 2016-02-24 07:02:21.000000000 +0100 +++ new/guile-json-0.6.0/pkg-list.scm 2017-01-17 09:31:43.000000000 +0100 @@ -19,7 +19,7 @@ ;; 02110-1301 USA ;; -(package (json (0 5 0)) +(package (json (0 6 0)) (depends (srfi-1)) (synopsis "JSON parser/writer for Guile") (description
