File kompass.spec of Package kompass

#
# spec file for package kompass
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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:           kompass
Version:        0~git20210619.68349ba
Release:        0
Summary:        Compass application for plasma mobile
License:        GPL-2.0-or-later
#Git-Clone:     https://invent.kde.org/smigaud/kompass.git
URL:            https://invent.kde.org/smigaud/kompass
Source:         %{name}-%{version}.tar.xz
Patch0:         x.patch
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  kirigami2-devel >= 5.80.0
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF5I18n)
BuildRequires:  pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5QuickControls2)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(libiio)

%description
Compass application for the PinePhone and other Linux devices with
a magnetometer.

%prep
%setup -q
# fix spurious exec perms on the desktop file
%patch0 -p1

%build
%cmake
%make_jobs

%install
%cmake_install

%files
%license LICENCES/*
%doc Readme.md
%{_bindir}/kompass
%{_datadir}/applications/org.kde.kompass.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.kde.kompass.svg
%{_datadir}/metainfo/org.kde.kompass.appdata.xml

%changelog
openSUSE Build Service is sponsored by