2016-09-30 14:12:46 +10:00
|
|
|
%define api 1.0
|
2012-02-01 14:52:06 +04:00
|
|
|
%define major 0
|
2016-09-30 14:12:46 +10:00
|
|
|
%define libname %mklibname %{name} %{api} %{major}
|
|
|
|
%define girname %mklibname %{name}-gir %{api}
|
|
|
|
%define devname %mklibname %{name} -d
|
2012-02-01 14:52:06 +04:00
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
Summary: Library for JavaScript Object Notation format
|
2012-02-01 14:52:06 +04:00
|
|
|
Name: json-glib
|
2025-02-17 12:58:22 +00:00
|
|
|
Version: 1.10.6
|
2018-02-12 21:36:41 +10:00
|
|
|
Release: 1
|
2012-02-01 14:52:06 +04:00
|
|
|
License: LGPLv2+
|
2016-09-30 14:12:46 +10:00
|
|
|
Group: System/Libraries
|
2025-02-17 12:58:22 +00:00
|
|
|
URL: https://gitlab.gnome.org/GNOME/json-glib
|
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2016-09-30 14:12:46 +10:00
|
|
|
BuildRequires: gtk-doc
|
2025-02-17 19:28:42 +00:00
|
|
|
BuildRequires: meson >= 1.2.0
|
2018-02-12 21:36:41 +10:00
|
|
|
BuildRequires: xsltproc
|
2012-08-25 15:56:34 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2025-02-17 12:58:22 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
BuildRequires: pkgconfig(python-3.8)
|
2012-02-01 14:52:06 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{name} is a library providing serialization and deserialization support
|
|
|
|
for the JavaScript Object Notation (JSON) format.
|
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%files -f %{name}-%{api}.lang
|
2018-02-12 21:36:41 +10:00
|
|
|
%{_bindir}/json-glib-format
|
|
|
|
%{_bindir}/json-glib-validate
|
|
|
|
%{_mandir}/man1/json-glib-format.1*
|
|
|
|
%{_mandir}/man1/json-glib-validate.1*
|
2016-09-30 14:12:46 +10:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 14:52:06 +04:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
%{name} is a library providing serialization and deserialization support
|
|
|
|
for the JavaScript Object Notation (JSON) format.
|
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/lib%{name}-%{api}.so.%{major}*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{girname}
|
|
|
|
Summary: GObject introspection interface library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{libname} = %{EVRD}
|
|
|
|
Conflicts: %{_lib}json-gliblib1.0_0 < 1.2.2
|
|
|
|
|
|
|
|
%description -n %{girname}
|
|
|
|
GObject introspection interface library for %{name}.
|
2012-02-01 14:52:06 +04:00
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%files -n %{girname}
|
|
|
|
%{_libdir}/girepository-1.0/Json-%{api}.typelib
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{devname}
|
2012-02-01 14:52:06 +04:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/C
|
2016-09-30 14:12:46 +10:00
|
|
|
Requires: %{libname} = %{EVRD}
|
|
|
|
Requires: %{girname} = %{EVRD}
|
|
|
|
Provides: %{name}-devel = %{EVRD}
|
2012-02-01 14:52:06 +04:00
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%description -n %{devname}
|
|
|
|
The %{devname} package contains libraries and header files for
|
2012-02-01 14:52:06 +04:00
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%files -n %{devname}
|
2018-02-12 21:36:41 +10:00
|
|
|
%doc NEWS
|
2016-09-30 14:12:46 +10:00
|
|
|
%{_libdir}/lib%{name}-%{api}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-%{api}.pc
|
|
|
|
%{_includedir}/%{name}-%{api}/
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
%{_datadir}/gir-1.0/Json-%{api}.gir
|
2018-02-12 21:36:41 +10:00
|
|
|
%{_datadir}/installed-tests/
|
|
|
|
%{_libdir}/installed-tests/
|
2016-09-30 14:12:46 +10:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 14:52:06 +04:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2025-02-17 19:28:42 +00:00
|
|
|
%meson
|
|
|
|
# -Ddocs=true
|
2018-02-12 21:36:41 +10:00
|
|
|
%meson_build
|
2012-02-01 14:52:06 +04:00
|
|
|
|
|
|
|
%install
|
2018-02-12 21:36:41 +10:00
|
|
|
%meson_install
|
2012-02-01 14:52:06 +04:00
|
|
|
|
2016-09-30 14:12:46 +10:00
|
|
|
%find_lang %{name}-%{api}
|
2012-06-23 12:53:54 +11:00
|
|
|
|