File mingw32-json-glib.spec of Package mingw32-json-glib
#
# spec file for package mingw32-json-glib
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-json-glib
Version: 1.0.2
Release: 0
Summary: Library for JavaScript Object Notation format
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: http://live.gnome.org/JsonGlib
Source: http://download.gnome.org/sources/json-glib/0.14/json-glib-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires: glib2-devel
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-glib2-devel
BuildRequires: xz
%_mingw32_package_header_debug
BuildArch: noarch
%description
JSON is a lightweight data-interchange format.It is easy for humans to
read and write. It is easy for machines to parse and generate.
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 mingw32-libjson-glib
Summary: Library for JavaScript Object Notation format
Group: Development/Libraries
Provides: %{name} = %{version}
%description -n mingw32-libjson-glib
JSON is a lightweight data-interchange format.It is easy for humans to
read and write. It is easy for machines to parse and generate.
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 devel
Summary: Library for JavaScript Object Notation format (development files)
Group: Development/Libraries
%description devel
JSON is a lightweight data-interchange format.It is easy for humans to
read and write. It is easy for machines to parse and generate.
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.
This package contains development files needed to develop with the
json-glib library.
%package tools
Summary: Library for JavaScript Object Notation format (command line tools)
Group: Development/Libraries
%description tools
JSON is a lightweight data-interchange format.It is easy for humans to
read and write. It is easy for machines to parse and generate.
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.
This package contains command line tools.
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n json-glib-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure}
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}/%{_mingw32_libdir}/charset.alias
%find_lang json-glib-1.0
%files -n mingw32-libjson-glib
%defattr(-,root,root)
%{_mingw32_bindir}/libjson-glib-1.0-0.dll
%files lang -f json-glib-1.0.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/json-glib-1.0/json-glib
%{_mingw32_libdir}/libjson-glib-1.0.dll.a
%{_mingw32_libdir}/pkgconfig/json-glib-1.0.pc
%{_mingw32_datadir}/gtk-doc/html/json-glib/
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/json-glib-format.exe
%{_mingw32_bindir}/json-glib-validate.exe
%changelog