diff --git a/jsonrpc-glib-3.38.0.tar.xz b/jsonrpc-glib-3.38.0.tar.xz new file mode 100644 index 0000000..628233a Binary files /dev/null and b/jsonrpc-glib-3.38.0.tar.xz differ diff --git a/jsonrpc-glib-skip-test-stress.patch b/jsonrpc-glib-skip-test-stress.patch new file mode 100644 index 0000000..0419ed6 --- /dev/null +++ b/jsonrpc-glib-skip-test-stress.patch @@ -0,0 +1,12 @@ +diff -urN jsonrpc-glib-3.27.90/tests/meson.build jsonrpc-glib-3.27.90-skip-stress/tests/meson.build +--- jsonrpc-glib-3.27.90/tests/meson.build 2018-02-05 06:26:42.000000000 +0100 ++++ jsonrpc-glib-3.27.90-skip-stress/tests/meson.build 2018-02-05 10:54:12.947199550 +0100 +@@ -52,7 +52,7 @@ + link_args: test_link_args, + dependencies: test_deps, + ) +-test('test-stress', test_stress, env: test_env) ++#test('test-stress', test_stress, env: test_env) + + test_gauntlet = executable('test-gauntlet', 'test-gauntlet.c', + c_args: test_cflags, diff --git a/jsonrpc-glib.spec b/jsonrpc-glib.spec new file mode 100644 index 0000000..a1c97c0 --- /dev/null +++ b/jsonrpc-glib.spec @@ -0,0 +1,63 @@ +Name: jsonrpc-glib +Version: 3.38.0 +Release: 1 +Summary: A library to communicate with JSON. can use GVariant serialization format instead of JSON +License: LGPLv2+ +URL: https://git.gnome.org/browse/jsonrpc-glib/ +Source0: https://download.gnome.org/sources/%{name}/3.38/%{name}-%{version}.tar.xz +Patch1: jsonrpc-glib-skip-test-stress.patch + +BuildRequires: gtk-doc meson vala pkgconfig(glib-2.0) pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(json-glib-1.0) + +%description +Jsonrpc-GLib is a library to communicate with JSON-RPC based peers in either a synchronous or asynchronous fashion. +It also allows communicating using the GVariant serialization format instead of JSON when both peers support it. +You might want that when communicating on a single host to avoid parser overhead and memory-allocator fragmentation. + +%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}. + +%prep +%autosetup -p1 + +%build +%meson -D enable_gtk_doc=true +%meson_build + +%install +%meson_install + +%check +%meson_test + +%files +%license COPYING +%doc AUTHORS +%{_libdir}/libjsonrpc-glib-1.0.so.* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/Jsonrpc-1.0.typelib + +%files devel +%doc CONTRIBUTING.md +%{_includedir}/* +%{_libdir}/*.so +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/Jsonrpc-1.0.gir +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/jsonrpc-glib +%{_libdir}/pkgconfig/jsonrpc-glib-1.0.pc +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/jsonrpc-glib-1.0.* + + +%changelog +* Wed Jun 30 2021 weijin deng - 3.38.0-1 +- Package init with 3.38.0