File showmethekey.spec of Package showmethekey

#
# spec file for package showmethekey
#
# Copyright (c) 2021 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 http://bugs.opensuse.org/


Name:           showmethekey
Version:        1.4.6
Release:        0
License:        Apache-2.0
Summary:        Show keys you typed on screen.
Url:            https://showmethekey.alynx.one/
Group:          Development/Languages/Python
Source:         https://github.com/AlynxZhou/%{name}/archive/v%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  fdupes
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(libevdev)
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(xkbcommon)
Requires:       polkit
# BuildArch:

%description
Show keys you typed on screen. A screenkey alternative that works on both
X11 and Wayland.

%lang_package

%prep
%autosetup -p1
# The translation directory is different for this project.
translation-update-upstream %{name}-gtk/po %{name}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_prefix}

%files
%license LICENSE
%doc README.md
%{_bindir}/showmethekey-cli
%{_bindir}/showmethekey-gtk
%{_datadir}/applications/showmethekey.desktop
%{_datadir}/glib-2.0/schemas/one.alynx.showmethekey.gschema.xml
%{_datadir}/licenses/showmethekey/LICENSE
%{_datadir}/pixmaps/showmethekey.png
%{_datadir}/icons/hicolor/scalable/apps/showmethekey.svg

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by