File showmethekey.spec of Package showmethekey

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


Name:           showmethekey
Version:        1.8.0
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/%{name}-%{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(gtk4)
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}

rm %{buildroot}%{_datadir}/polkit-1/rules.d/one.alynx.showmethekey.rules

%files
%license LICENSE
%doc README.md
%{_bindir}/showmethekey-cli
%{_bindir}/showmethekey-gtk
%{_datadir}/applications/one.alynx.showmethekey.desktop
%{_datadir}/metainfo/one.alynx.showmethekey.metainfo.xml
%{_datadir}/glib-2.0/schemas/one.alynx.showmethekey.gschema.xml
# Looks like adding rules in openSUSE is not good.
#%{_datadir}/polkit-1/rules.d/one.alynx.showmethekey.rules
%{_datadir}/polkit-1/actions/one.alynx.showmethekey.policy
%{_datadir}/licenses/showmethekey/LICENSE
%{_datadir}/icons/hicolor/64x64/apps/one.alynx.showmethekey.png
%{_datadir}/icons/hicolor/128x128/apps/one.alynx.showmethekey.png
%{_datadir}/icons/hicolor/scalable/apps/one.alynx.showmethekey.svg

%files lang -f %{name}.lang

%changelog

openSUSE Build Service is sponsored by