File qxkb5.spec of Package qxkb5

#
# spec file for package qxkb5
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

%define _name qxkb

Name:           qxkb5
Version:        0.5.1
Release:        0
License:        GPL-2.0
Summary:        Qt keyboard layout switcher
Url:            https://github.com/disels/qxkb
Group:          System/X11/Utilities
Source:         %{_name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  libqt5-linguist-devel
BuildRequires:  pkgconfig(xkbfile)
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
Conflicts:      qxkb
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 %{?_smp_mflags}

%install
%cmake_install %{?_smp_mflags}
lrelease-qt5 language/*
install -dm 0755 %{buildroot}%{_datadir}/%{_name}/i18n
cp language/*.qm %{buildroot}%{_datadir}/%{_name}/i18n/
%fdupes %{buildroot}%{_datadir}/%{_name}/theme/default/language/
%suse_update_desktop_file -r %{_name} Utility DesktopUtility

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING NEWS README
%{_bindir}/%{_name}
%{_datadir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png

%changelog

openSUSE Build Service is sponsored by