File qxkb5.spec of Package qxkb5
#
# spec file for package qxkb5
#
# Copyright (c) 2020 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/
#
%define _name qxkb
Name: qxkb5
Version: @SERVICE@
Release: 0
Summary: Qt keyboard layout switcher
License: GPL-2.0-only
Group: System/X11/Utilities
URL: https://github.com/thegala/qxkb
Source: %{_name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(xkbfile)
Conflicts: qxkb
%description
AXKB this Qt application to adjust layouts by xkb.
Part of the code and interface window settings taken from KXKB and Kkbswitch.
Completely absent on to the kde-libs.
Originally developed as a complement to the Antico DE.
But just as well work on other WM and DE.
Depends only on Qt and X-server
%prep
%setup -q -n %{_name}-%{version}
%build
%cmake
%make_build
%install
%cmake_install
%suse_update_desktop_file -u -r %{_name} Utility DesktopUtility
%fdupes -s %{buildroot}%{_datadir}/%{_name}
%files
%doc NEWS README
%{_bindir}/%{_name}
%{_datadir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png
%license COPYING
%changelog