1 %bcond_with introspection
7 Summary: Library for JavaScript Object Notation format
8 Url: http://live.gnome.org/JsonGlib
9 Group: System/Libraries
10 #X-Vcs-Url: git://git.gnome.org/json-glib
11 Source0: http://download.gnome.org/sources/json-glib/%{version}/%{name}-%{version}.tar.xz
12 Source99: baselibs.conf
13 Source1001: json-glib.manifest
14 %if %{with introspection}
15 BuildRequires: gobject-introspection-devel
17 BuildRequires: pkgconfig(glib-2.0)
20 JSON is a lightweight data-interchange format.It is easy for humans to
21 read and write. It is easy for machines to parse and generate.
23 JSON-GLib provides a parser and a generator GObject classes and various
24 wrappers for the complex data types employed by JSON, such as arrays
27 JSON-GLib uses GLib native data types and the generic value container
28 GValue for ease of development. It also provides integration with the
29 GObject classes for direct serialization into, and deserialization from,
32 %package -n typelib-Json
33 Summary: Library for JavaScript Object Notation format -- Introspection bindings
34 Group: System/Libraries
36 %description -n typelib-Json
37 JSON is a lightweight data-interchange format.It is easy for humans to
38 read and write. It is easy for machines to parse and generate.
40 JSON-GLib provides a parser and a generator GObject classes and various
41 wrappers for the complex data types employed by JSON, such as arrays
44 JSON-GLib uses GLib native data types and the generic value container
45 GValue for ease of development. It also provides integration with the
46 GObject classes for direct serialization into, and deserialization from,
49 This package provides the GObject Introspection bindings for JSON-GLib.
52 Summary: Library for JavaScript Object Notation format - Development Files
53 Group: System/Libraries
54 Requires: json-glib = %{version}
55 %if %{with introspection}
56 Requires: typelib-Json = %{version}
58 BuildRequires: gettext
61 JSON is a lightweight data-interchange format.It is easy for humans to
62 read and write. It is easy for machines to parse and generate.
64 JSON-GLib provides a parser and a generator GObject classes and various
65 wrappers for the complex data types employed by JSON, such as arrays
68 JSON-GLib uses GLib native data types and the generic value container
69 GValue for ease of development. It also provides integration with the
70 GObject classes for direct serialization into, and deserialization from,
73 This package contains development files needed to develop with the
83 %reconfigure --disable-man --disable-doc
88 %find_lang %{name}-1.0
90 mv %{name}-1.0.lang %{name}.lang
92 %post -n json-glib -p /sbin/ldconfig
94 %postun -n json-glib -p /sbin/ldconfig
97 %manifest %{name}.manifest
103 %if %{with introspection}
104 %files -n typelib-Json
105 %manifest %{name}.manifest
106 %defattr(-,root,root)
107 %{_libdir}/girepository-1.0/Json-1.0.typelib
111 %manifest %{name}.manifest
112 %defattr(-,root,root)
113 %{_includedir}/%{name}-1.0
115 %{_libdir}/pkgconfig/*.pc
116 %if %{with introspection}
117 %{_datadir}/gir-1.0/*.gir