Accepting request 27845 from GNOME:Factory

Copy from GNOME:Factory/json-glib based on submit request 27845 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/27845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/json-glib?expand=0&rev=4
This commit is contained in:
OBS User autobuild 2009-12-29 23:22:41 +00:00 committed by Git OBS Bridge
parent f4b9b10e10
commit 98a3d1169b
5 changed files with 81 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2994fc6786a753c035a9fc22e36b41e6b7955cf238b9b9e2f3c48f1bb0c1f14e
size 320796

3
json-glib-0.9.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39853e17800659adc888761bf296ee6851dfa646f97a2cd639b130a271e34c67
size 415837

22
json-glib-fix-build.patch Normal file
View File

@ -0,0 +1,22 @@
Index: json-glib-0.9.2/json-glib/json-gobject.c
===================================================================
--- json-glib-0.9.2.orig/json-glib/json-gobject.c
+++ json-glib-0.9.2/json-glib/json-gobject.c
@@ -503,7 +503,7 @@ json_deserialize_pspec (GValue *valu
case G_TYPE_ENUM:
{
- gint enum_value;
+ gint enum_value = 0;
if (G_VALUE_HOLDS (&node_value, G_TYPE_INT64))
{
@@ -524,7 +524,7 @@ json_deserialize_pspec (GValue *valu
case G_TYPE_FLAGS:
{
- gint flags_value;
+ gint flags_value = 0;
if (G_VALUE_HOLDS (&node_value, G_TYPE_INT64))
{

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Sun Dec 27 01:38:37 CET 2009 - vuntz@opensuse.org
- Update to version 0.9.2:
+ Fix generation of doubles
+ Add more units to the test suite
+ Add JsonNode macros for quick type checking
+ Guarantee insertion order when parsing and generating JSON
Objects
+ Serialize GParamSpecObject properties
+ Add serialization and deserialization for GBoxed types
+ Add API for serializing GObjects to, and deserializing from,
JsonNode
+ Build environment fixes
+ Documentation fixes
+ Generate correct introspection data
+ Make JsonSerializable in complete control of deserialization
- Changes from version 0.8.0:
+ Remove the in-tree Vala bindings: they are part of Vala, now
+ Remove the in-tree Debian packaging
+ Fix: JsonGenerator does not escape special characters
+ Fix: Conditionally compile the test suite
+ Display the filename and line inside the error messages when
loading from a file
+ Fix: Correctly terminate a string array
+ Fix: Regression tests fail on OpenBSD
+ Do not leak memory on error code paths
+ Improve and clean up the build system
+ Make JsonNode completely opaque
+ Conditionally generate introspection data on build
+ Fix: Do not overwrite when copying
+ Deprecate json_object_add_member()
+ Add convenience accessors for JsonObject and JsonArray
+ Add convenience iteration functions for JsonObject and
JsonArray
+ Automatically promote integers to gint64, to compensate for the
lack of integer size in the JSON specificiation
+ Disallow the inclusion of single header files: only json-glib.h
and json-gobject.h can be included directly
+ Documentation fixes
+ Clean up and remove code duplication inside the Parser object
- Add gobject-introspection-devel BuildRequires.
- Add json-glib-fix-build.patch to fix build.
-------------------------------------------------------------------
Sat Jun 13 22:41:53 CEST 2009 - vuntz@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package json-glib (Version 0.6.2)
# spec file for package json-glib (Version 0.9.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
@ -19,14 +19,17 @@
Name: json-glib
Version: 0.6.2
Release: 3
Version: 0.9.2
Release: 1
Summary: Library for JavaScript Object Notation format
License: LGPL v2.1 or later
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Url: http://live.gnome.org/JsonGlib
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM json-glib-fix-build.patch vuntz@opensuse.org -- Fix warnings causing errors during build
Patch0: json-glib-fix-build.patch
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -43,7 +46,7 @@ GObject classes for direct serialization into, and deserialization from,
JSON data streams.
%package -n libjson-glib-1_0-0
License: LGPL v2.1 or later
License: LGPLv2.1+
Summary: Library for JavaScript Object Notation format
Group: Development/Libraries/C and C++
@ -61,7 +64,7 @@ GObject classes for direct serialization into, and deserialization from,
JSON data streams.
%package devel
License: LGPL v2.1 or later
License: LGPLv2.1+
Summary: Library for JavaScript Object Notation format - Development Files
Group: Development/Libraries/C and C++
Requires: libjson-glib-1_0-0 = %{version}
@ -85,6 +88,7 @@ json-glib library.
%prep
%setup -q
%patch0 -p1
%build
%configure
@ -105,6 +109,8 @@ rm -rf %{buildroot}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/*.typelib
%{_datadir}/gir-1.0/*.gir
%files devel
%defattr(-,root,root)