diff --git a/json-glib-1.6.6.tar.xz b/json-glib-1.6.6.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..7d4b2fd39af6231a23fe999d96dd57b1473f7647 Binary files /dev/null and b/json-glib-1.6.6.tar.xz differ diff --git a/json-glib.spec b/json-glib.spec new file mode 100644 index 0000000000000000000000000000000000000000..1249e65d4cb0f20bf9240d614c0cf101d13d8c9c --- /dev/null +++ b/json-glib.spec @@ -0,0 +1,87 @@ +%define anolis_release 1 +%define glib2_version 2.54.0 + +Name: json-glib +Version: 1.6.6 +Release: %{anolis_release}%{?dist} +Summary: Library for JavaScript Object Notation format + +License: LGPLv2+ +URL: https://wiki.gnome.org/Projects/JsonGlib +Source0: https://download.gnome.org/sources/%{name}/1.6/%{name}-%{version}.tar.xz + +BuildRequires: docbook-style-xsl +BuildRequires: gettext +BuildRequires: gi-docgen +BuildRequires: glib2-devel >= %{glib2_version} +BuildRequires: gobject-introspection-devel +BuildRequires: meson +BuildRequires: /usr/bin/xsltproc + +Requires: glib2%{?_isa} >= %{glib2_version} + +%description +%{name} is a library providing serialization and deserialization support +for the JavaScript Object Notation (JSON) format. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%package tests +Summary: Tests for the json-glib package +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tests +The json-glib-tests package contains tests that can be used to verify +the functionality of the installed json-glib package. + + +%prep +%setup -q -n %{name}-%{version} + + +%build +%meson -Dgtk_doc=enabled -Dman=true +%meson_build + + +%install +%meson_install + +%find_lang json-glib-1.0 + + +%files -f json-glib-1.0.lang +%doc NEWS +%license COPYING +%{_libdir}/libjson-glib-1.0.so.0* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/Json-1.0.typelib + +%files devel +%{_includedir}/json-glib-1.0/ +%{_libdir}/libjson-glib-1.0.so +%{_libdir}/pkgconfig/json-glib-1.0.pc +%{_datadir}/doc/json-glib-1.0/ +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/Json-1.0.gir +%{_bindir}/json-glib-format +%{_bindir}/json-glib-validate +%{_mandir}/man1/json-glib-format.1* +%{_mandir}/man1/json-glib-validate.1* + +%files tests +%{_libexecdir}/installed-tests/ +%{_datadir}/installed-tests/ + + +%changelog +* Tue Mar 8 2022 Liwei Ge - 1.6.6-1 +- Init version from upstream v1.6.6