File libmks.spec of Package libmks

#
# spec file for package libmks
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           libmks
Version:        0.1.5
Release:        0
Summary:        This library provides a "Mouse, Keyboard, and Screen" to QEMU
License:        LGPL-2.1-or-later
URL:            https://gitlab.gnome.org/GNOME/libmks
Source:         %{name}-%{version}.tar.xz

BuildRequires:  c_compiler
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(epoxy)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk4)
Buildrequires:  pkgconfig(vapigen)

%description
This library provides a "Mouse, Keyboard, and Screen" to QEMU using
the D-Bus device support in QEMU and GTK 4.

%package -n libmks1-0
Summary:        Shared library files for %{name}

%description -n libmks1-0
This library provides a "Mouse, Keyboard, and Screen" to QEMU using
the D-Bus device support in QEMU and GTK 4.

This package provides the shared library.

%package -n typelib-1_0-Mks-1
Summary:        Introspection bindings for %{name}

%description -n typelib-1_0-Mks-1
This library provides a "Mouse, Keyboard, and Screen" to QEMU using
the D-Bus device support in QEMU and GTK 4.

This package provides the GObject Introspection bindings.

%package devel
Summary:        Development files for %{name}
Requires:       libmks1-0 = %{version}
Requires:       typelib-1_0-Mks-1 = %{version}

%description devel
This library provides a "Mouse, Keyboard, and Screen" to QEMU using
the D-Bus device support in QEMU and GTK 4.

This package provides the development files.

%prep
%autosetup

%build
%meson \
	-D tests=false \
	%{nil}
%meson_build

%install
%meson_install

%ldconfig_scriptlets -n libmks1-0

%files -n libmks1-0
%license COPYING
%{_libdir}/libmks-1.so.0*

%files -n typelib-1_0-Mks-1
%{_libdir}/girepository-1.0/Mks-1.typelib

%files devel
%doc NEWS README.md
%{_includedir}/libmks-1/
%{_datadir}/gir-1.0/Mks-1.gir
%{_libdir}/libmks-1.so
%{_libdir}/pkgconfig/libmks-1.pc
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/libmks-1.deps
%{_datadir}/vala/vapi/libmks-1.vapi

%changelog

openSUSE Build Service is sponsored by