![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package json-c for openSUSE:Factory checked in at 2016-07-27 16:07:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/json-c (Old) and /work/SRC/openSUSE:Factory/.json-c.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "json-c" Changes: -------- --- /work/SRC/openSUSE:Factory/json-c/json-c.changes 2014-09-23 17:16:54.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.json-c.new/json-c.changes 2016-07-27 16:07:22.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Jul 18 17:39:03 UTC 2016 - rpm@fthiessen.de + +- Update to upstream release 0.12.1 +- Removed upstream fixed json-c-0.12-unused_variable_size.patch +- Added fix-set-but-not-used.patch + +------------------------------------------------------------------- Old: ---- json-c-0.12-unused_variable_size.patch json-c-0.12.tar.gz New: ---- fix-set-but-not-used.patch json-c-0.12.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ json-c.spec ++++++ --- /var/tmp/diff_new_pack.FwMPsy/_old 2016-07-27 16:07:23.000000000 +0200 +++ /var/tmp/diff_new_pack.FwMPsy/_new 2016-07-27 16:07:23.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package json-c # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -20,7 +20,7 @@ %define libsoname %{libname}2 %define oldlibname libjson Name: json-c -Version: 0.12 +Version: 0.12.1 Release: 0 Summary: JSON implementation in C License: MIT @@ -29,9 +29,11 @@ #Git-Clone git://github.com/json-c/json-c Source0: https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz Source1: baselibs.conf -Patch0: json-c-0.12-unused_variable_size.patch +# PATCH-FIX-UPSTREAM fix-set-but-not-used.patch -- Fix set-but-not-used compile error in tests https://github.com/json-c/json-c/issues/240 +Patch0: fix-set-but-not-used.patch +BuildRequires: fdupes BuildRequires: libtool -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -105,9 +107,11 @@ find %{buildroot} -type f -name "*.la" -delete -print # create a compatibilty pkg-config file for software needing it (cd %{buildroot}%{_libdir}/pkgconfig && ln -s json-c.pc json.pc) +mkdir -p "%{buildroot}%{_docdir}/%{name}-doc" +cp -R doc/html "%{buildroot}%{_docdir}/%{name}-doc" +%fdupes %{buildroot}%{_docdir} %post -n %{libsoname} -p /sbin/ldconfig - %postun -n %{libsoname} -p /sbin/ldconfig %files -n %{libsoname} @@ -123,6 +127,7 @@ %files -n %{libname}-doc %defattr(-,root,root) -%doc AUTHORS ChangeLog COPYING README README.html doc +%doc AUTHORS ChangeLog COPYING README README.html +%doc %{_docdir}/%{name}-doc %changelog ++++++ fix-set-but-not-used.patch ++++++ diff -Nur json-c-0.12.1/tests/testReplaceExisting.c new/tests/testReplaceExisting.c --- json-c-0.12.1/tests/testReplaceExisting.c 2016-06-07 05:33:58.000000000 +0200 +++ new/tests/testReplaceExisting.c 2016-07-18 20:13:24.101728480 +0200 @@ -24,6 +24,7 @@ int orig_count = 0; json_object_object_foreach(my_object, key0, val0) { + (void) val0; printf("Key at index %d is [%s]", orig_count, key0); if (strcmp(key0, "deleteme") == 0) { @@ -41,6 +42,7 @@ orig_count = 0; json_object_object_foreach(my_object, key, val) { + (void) val; printf("Key at index %d is [%s]\n", orig_count, key); orig_count++; if (strcmp(key, "foo2") != 0) @@ -56,6 +58,7 @@ int retval = 0; json_object_object_foreach(my_object, key2, val2) { + (void) val2; printf("Key at index %d is [%s]\n", new_count, key2); new_count++; if (strcmp(key2, "foo2") != 0) ++++++ json-c-0.12.tar.gz -> json-c-0.12.1.tar.gz ++++++ ++++ 5703 lines of diff (skipped)