2009-07-10 04:41:06 +02:00
|
|
|
#
|
2011-04-21 10:36:30 +02:00
|
|
|
# spec file for package json-glib
|
2009-07-10 04:41:06 +02:00
|
|
|
#
|
2021-02-10 13:49:07 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2009-07-10 04:41:06 +02:00
|
|
|
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-27 09:41:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-07-10 04:41:06 +02:00
|
|
|
#
|
|
|
|
|
2012-09-07 17:35:08 +02:00
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
Name: json-glib
|
2021-09-01 13:10:32 +02:00
|
|
|
Version: 1.6.6
|
2011-12-21 05:25:15 +01:00
|
|
|
Release: 0
|
2009-07-31 19:56:01 +02:00
|
|
|
Summary: Library for JavaScript Object Notation format
|
2018-03-05 14:55:46 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2009-07-10 04:41:06 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-03-05 14:55:46 +01:00
|
|
|
URL: http://live.gnome.org/JsonGlib
|
2020-09-14 15:35:16 +02:00
|
|
|
|
|
|
|
Source0: https://download.gnome.org/sources/json-glib/1.6/%{name}-%{version}.tar.xz
|
2011-07-28 00:07:39 +02:00
|
|
|
Source99: baselibs.conf
|
2020-09-14 15:35:16 +02:00
|
|
|
|
2021-09-01 13:10:32 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2020-09-14 15:35:16 +02:00
|
|
|
BuildRequires: glib2-devel >= 2.54
|
2009-12-30 00:22:41 +01:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2021-09-01 13:10:32 +02:00
|
|
|
BuildRequires: libxslt-tools
|
2017-08-31 09:44:42 +02:00
|
|
|
BuildRequires: meson
|
2020-05-25 19:45:29 +02:00
|
|
|
BuildRequires: pkgconfig
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
JSON-GLib provides a parser and a generator GObject classes and various
|
|
|
|
wrappers for the complex data types employed by JSON, such as arrays
|
|
|
|
and objects.
|
|
|
|
|
|
|
|
JSON-GLib uses GLib native data types and the generic value container
|
|
|
|
GValue for ease of development. It also provides integration with the
|
|
|
|
GObject classes for direct serialization into, and deserialization from,
|
|
|
|
JSON data streams.
|
|
|
|
|
|
|
|
%package -n libjson-glib-1_0-0
|
|
|
|
Summary: Library for JavaScript Object Notation format
|
2011-09-21 17:23:20 +02:00
|
|
|
# To make lang subpackage installable
|
2017-03-19 17:56:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-09-12 13:05:35 +02:00
|
|
|
Provides: %{name} = %{version}
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
%description -n libjson-glib-1_0-0
|
2017-09-11 18:31:35 +02:00
|
|
|
JSON is a lightweight data-interchange format. It is comparatively
|
|
|
|
easy for humans to read and write, and for machines to parse and generate.
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
JSON-GLib provides a parser and a generator GObject classes and various
|
|
|
|
wrappers for the complex data types employed by JSON, such as arrays
|
|
|
|
and objects.
|
|
|
|
|
|
|
|
JSON-GLib uses GLib native data types and the generic value container
|
|
|
|
GValue for ease of development. It also provides integration with the
|
|
|
|
GObject classes for direct serialization into, and deserialization from,
|
|
|
|
JSON data streams.
|
|
|
|
|
2011-12-12 16:58:54 +01:00
|
|
|
%package -n typelib-1_0-Json-1_0
|
2017-09-11 18:31:35 +02:00
|
|
|
Summary: Introspection bindings for libjson-glib
|
2011-12-12 16:58:54 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Json-1_0
|
|
|
|
JSON-GLib provides a parser and a generator GObject classes and various
|
|
|
|
wrappers for the complex data types employed by JSON, such as arrays
|
|
|
|
and objects.
|
|
|
|
|
2011-12-21 05:25:15 +01:00
|
|
|
This package provides the GObject Introspection bindings for JSON-GLib.
|
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
%package devel
|
2017-09-11 18:31:35 +02:00
|
|
|
Summary: Development files for libjson-glib
|
2009-07-10 04:41:06 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libjson-glib-1_0-0 = %{version}
|
2011-12-12 16:58:54 +01:00
|
|
|
Requires: typelib-1_0-Json-1_0 = %{version}
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
JSON-GLib provides a parser and a generator GObject classes and various
|
|
|
|
wrappers for the complex data types employed by JSON, such as arrays
|
|
|
|
and objects.
|
|
|
|
|
|
|
|
This package contains development files needed to develop with the
|
|
|
|
json-glib library.
|
|
|
|
|
2011-09-21 17:23:20 +02:00
|
|
|
%lang_package
|
2017-09-12 13:05:35 +02:00
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-08-31 09:44:42 +02:00
|
|
|
%meson \
|
2020-09-14 15:35:16 +02:00
|
|
|
-Dman=true \
|
2021-09-06 09:20:36 +02:00
|
|
|
-Dgtk_doc=disabled \
|
2017-08-31 09:44:42 +02:00
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2009-07-10 04:41:06 +02:00
|
|
|
|
2020-09-14 15:35:16 +02:00
|
|
|
%check
|
|
|
|
%meson_test
|
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
%install
|
2017-08-31 09:44:42 +02:00
|
|
|
%meson_install
|
2011-09-21 17:23:20 +02:00
|
|
|
%find_lang %{name}-1.0
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
%post -n libjson-glib-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libjson-glib-1_0-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libjson-glib-1_0-0
|
2018-03-05 14:55:46 +01:00
|
|
|
%license COPYING
|
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
%{_libdir}/*.so.*
|
2011-12-12 16:58:54 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-Json-1_0
|
2010-09-24 00:14:59 +02:00
|
|
|
%{_libdir}/girepository-1.0/Json-1.0.typelib
|
2009-07-10 04:41:06 +02:00
|
|
|
|
|
|
|
%files devel
|
2017-08-31 09:44:42 +02:00
|
|
|
%doc NEWS README.md
|
2020-09-14 15:35:16 +02:00
|
|
|
# These could potentially be split in a -tools package, but are never used by non-devs.
|
2014-04-03 22:46:19 +02:00
|
|
|
%{_bindir}/json-glib-format
|
|
|
|
%{_bindir}/json-glib-validate
|
2020-09-14 15:35:16 +02:00
|
|
|
%{_mandir}/man1/json-glib-format.1%{ext_man}
|
|
|
|
%{_mandir}/man1/json-glib-validate.1%{ext_man}
|
|
|
|
#
|
2009-07-10 04:41:06 +02:00
|
|
|
%{_includedir}/%{name}-1.0
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2010-09-24 00:14:59 +02:00
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2017-08-31 09:44:42 +02:00
|
|
|
%dir %{_datadir}/installed-tests
|
|
|
|
%dir %{_libexecdir}/installed-tests
|
|
|
|
%{_datadir}/installed-tests/json-glib-1.0/
|
|
|
|
%{_libexecdir}/installed-tests/json-glib-1.0/
|
2009-07-10 04:41:06 +02:00
|
|
|
|
2011-09-21 17:23:20 +02:00
|
|
|
%files lang -f %{name}-1.0.lang
|
|
|
|
|
2009-07-10 04:41:06 +02:00
|
|
|
%changelog
|