File matekbd-keyboard-display.spec of Package matekbd-keyboard-display

#
# spec file for package matekbd-keyboard-display
#
# 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:           matekbd-keyboard-display
Version:        23.9.1
Release:        0
Summary:        Preview keyboard layouts on MATE desktop
License:        LGPL-2.0-or-later
Group:          System/GUI/Other
URL:            https://tari.in/www/software/matekbd-keyboard-display
Source0:        https://github.com/tari01/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
#Source1:        %%{name}-rpmlintrc
Patch0:         %{name}-invalid-desktop-file.patch
Patch1:         %{name}-add-man-page.patch
# file (ARCHIVE_CREATE) introduced in 3.18.
BuildRequires:  cmake >= 3.18
BuildRequires:  pkgconfig(atk)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libmatekbdui)
BuildRequires:  pkgconfig(libxklavier)
# For directory owning.
BuildRequires:  hicolor-icon-theme

%description
An application that allows you to preview keyboard layouts on MATE
desktop.

It uses the libmatekbd library, similarly to gkbd-keyboard-display
and libgnomekbd.

# Currently unsupported.
# %%lang_package

%prep
%autosetup -p1

%build
%cmake
%cmake_build

%install
%cmake_install

# %%find_lang %%{name}

%files
%license COPYING
%doc AUTHORS CHANGELOG.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_mandir}/man1/%{name}.1%{ext_man}
openSUSE Build Service is sponsored by