2022-04-21 15:22:02 +08:00
|
|
|
%define glib2_version 2.54.0
|
|
|
|
|
|
2019-09-30 10:54:05 -04:00
|
|
|
Name: json-glib
|
2022-04-21 15:22:02 +08:00
|
|
|
Version: 1.6.6
|
2023-05-04 09:16:44 +00:00
|
|
|
Release: 3
|
2019-09-30 10:54:05 -04:00
|
|
|
Summary: Library for lightweight data-interchange format
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://wiki.gnome.org/Projects/JsonGlib
|
2021-05-25 14:55:23 +08:00
|
|
|
Source0: https://download.gnome.org/sources/%{name}/1.6/%{name}-%{version}.tar.xz
|
2019-09-30 10:54:05 -04:00
|
|
|
|
2022-04-21 15:22:02 +08:00
|
|
|
BuildRequires: docbook-style-xsl gettext gi-docgen
|
|
|
|
|
BuildRequires: gobject-introspection-devel meson libxslt
|
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
2019-09-30 10:54:05 -04:00
|
|
|
|
2022-04-21 15:22:02 +08:00
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
2019-09-30 10:54:05 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
JSON-GLib is a library providing serialization and deserialization support
|
|
|
|
|
for the JavaScript Object Notation (JSON) format described by RFC 4627.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2021-07-05 16:03:31 +08:00
|
|
|
Provides: %{name}-tests
|
2022-04-21 15:22:02 +08:00
|
|
|
Obsoletes: %{name}-tests < %{version}-%{release}
|
2019-09-30 10:54:05 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
%{name}-devel contains the header files for developing
|
|
|
|
|
applications that want to make use of %{name}.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2022-04-21 15:22:02 +08:00
|
|
|
%meson -Dgtk_doc=enabled -Dman=true
|
2019-09-30 10:54:05 -04:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
2022-04-21 15:22:02 +08:00
|
|
|
%find_lang json-glib-1.0
|
2019-09-30 10:54:05 -04:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license COPYING
|
2022-04-21 15:22:02 +08:00
|
|
|
%{_libdir}/libjson-glib-1.0.so.0*
|
2019-09-30 10:54:05 -04:00
|
|
|
%{_libdir}/girepository-1.0/Json-1.0.typelib
|
|
|
|
|
%{_datadir}/locale/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2022-04-21 15:22:02 +08:00
|
|
|
%{_bindir}/json-glib-format
|
|
|
|
|
%{_bindir}/json-glib-validate
|
|
|
|
|
%{_libdir}/libjson-glib-1.0.so
|
|
|
|
|
%{_libdir}/pkgconfig/json-glib-1.0.pc
|
|
|
|
|
%{_includedir}/json-glib-1.0/
|
2019-09-30 10:54:05 -04:00
|
|
|
%{_datadir}/gir-1.0/Json-1.0.gir
|
2022-04-21 15:22:02 +08:00
|
|
|
%{_libexecdir}/installed-tests/
|
|
|
|
|
%{_datadir}/installed-tests/
|
2019-09-30 10:54:05 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc NEWS
|
2022-04-21 15:22:02 +08:00
|
|
|
%{_mandir}/man1/json-glib-format.1*
|
|
|
|
|
%{_mandir}/man1/json-glib-validate.1*
|
|
|
|
|
%{_datadir}/doc/json-glib-1.0/
|
2019-09-30 10:54:05 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-05-04 09:16:44 +00:00
|
|
|
* Thu May 04 2023 zhangpan <zhangpan103@h-partners.com> - 1.6.6-3
|
|
|
|
|
- fix changelog error
|
|
|
|
|
|
|
|
|
|
* Thu Apr 21 2022 dillon chen <dillon.chen@gmail.com> - 1.6.6-2
|
2022-04-21 15:22:02 +08:00
|
|
|
- Update to 1.6.6
|
|
|
|
|
|
2021-07-05 16:03:31 +08:00
|
|
|
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.6.2-2
|
|
|
|
|
- Recover provides virtual subpackage json-glib-tests
|
|
|
|
|
|
2021-05-25 14:55:23 +08:00
|
|
|
* Mon May 24 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.6.2-1
|
|
|
|
|
- Upgrade to 1.6.2
|
|
|
|
|
- Update Version, Source0, BuildRequires, Obsoletes, Provides
|
|
|
|
|
|
2021-01-28 15:57:55 +08:00
|
|
|
* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.6.0-1
|
|
|
|
|
- update to 1.6.0
|
|
|
|
|
|
2019-09-30 10:54:05 -04:00
|
|
|
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.4-2
|
|
|
|
|
- Package init
|