diff --git a/json-glib.spec b/json-glib.spec index 4c87b4f59a5a73a062345bbbe48dafd01812c93e..9c7abc8969ff0b7ae2e3805e12cd86c50e2f3a10 100644 --- a/json-glib.spec +++ b/json-glib.spec @@ -1,5 +1,4 @@ -%define anolis_release 2 -%define glib2_version 2.54.0 +%define anolis_release 3 Name: json-glib Version: 1.6.6 @@ -10,27 +9,21 @@ 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: docbook-style-xsl, gi-docgen, meson, gettext, gobject-introspection-devel +BuildRequires: glib2-devel >= 2.54.0 BuildRequires: /usr/bin/xsltproc - -Requires: glib2%{?_isa} >= %{glib2_version} +Requires: glib2 >= 2.54.0 %description %{name} is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format. -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%description doc -The %{name}-doc package contains documentation files for %{name}. +Many high-level languages already provide native modules for parsing, +generating and manipulating JSON data streams. %{name} is a C library +based on GLib and released under the terms of the GNU Lesser General +Public License version 2.1. It provides a parser and a generator GObject +classes and various wrappers for the complex data types employed by JSON, +such as arrays and objects. %package devel Summary: Development files for %{name} @@ -42,37 +35,51 @@ developing applications that use %{name}. %package tests -Summary: Tests for the json-glib package -Requires: %{name} = %{version}-%{release} +Summary: Tests for the %{name} package +Requires: %{name} = %{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. +The %{name}-tests package contains tests that can be used to verify +the functionality of the installed %{name} package. + +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n %{name}-%{version} +%autosetup %build -%meson -Dgtk_doc=enabled -Dman=true +%meson \ + -Dgtk_doc=enabled \ + -Dman=true + %meson_build %install %meson_install -%find_lang json-glib-1.0 +%generate_compatibility_deps + + +%find_lang %{name}-1.0 %files -f json-glib-1.0.lang %license COPYING +%dir %{abidir} %{_libdir}/libjson-glib-1.0.so.0* +%{abidir}/libjson-glib-1.0.dump %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/Json-1.0.typelib -%files doc -%doc NEWS %files devel %{_includedir}/json-glib-1.0/ @@ -82,7 +89,9 @@ the functionality of the installed json-glib package. %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/Json-1.0.gir %{_bindir}/json-glib-format +%{abidir}/json-glib-format-option.list %{_bindir}/json-glib-validate +%{abidir}/json-glib-validate-option.list %{_mandir}/man1/json-glib-format.1* %{_mandir}/man1/json-glib-validate.1* @@ -90,8 +99,14 @@ the functionality of the installed json-glib package. %{_libexecdir}/installed-tests/ %{_datadir}/installed-tests/ +%files doc +%doc NEWS + %changelog +* Tue Apr 11 2023 Ziyang Zhang -1.6.6-3 +- Optimize spec file and add abi/api files + * Thu Sep 29 2022 mgb01105731 - 1.6.6-2 - add doc package