File SUSEPrimeQt.spec of Package SUSEPrimeQt

#
# spec file for package SUSEPrimeQt
#
# Copyright (c) 2019 SUSE LINUX 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/
#


Name:           SUSEPrimeQt
Version:        0.6.4+20190219.102f1d8
Release:        0
Summary:        Provides a simple Qt-based GUI for SUSEPrime
License:        CC-BY-3.0
Group:          System/X11/Utilities
Url:            https://github.com/simopil/%{name}
Source:         %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch:          bindir.patch
BuildRequires:  gcc-c++
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Charts)
BuildRequires:  pkgconfig(Qt53DQuick)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Multimedia)
Requires:       suse-prime => 0.6

%description
Provides a simple but complete Qt-based GUI for SUSEPrime >= 0.6 
https://github.com/openSUSE/SUSEPrime/

%prep
%autosetup -p1

%build
pushd src
%qmake5
make %{?_smp_mflags}
popd

%install
pushd src
%make_install INSTALL_ROOT=%{buildroot}
install -D -m 0644 icon/nvidia.png %{buildroot}%{_datadir}/pixmaps/nvidia.png
install -D -m 0644 icon/info.png %{buildroot}%{_datadir}/icons/hicolor/info.png
install -D -m 0644 lang/de_DE.ts %{buildroot}%{_datadir}/qt5/translations/de_DE.ts
install -D -m 0644 lang/de_DE.qm %{buildroot}%{_datadir}/qt5/translations/de_DE.qm
install -D -m 0644 lang/it_IT.ts %{buildroot}%{_datadir}/qt5/translations/it_IT.ts
install -D -m 0644 lang/it_IT.qm %{buildroot}%{_datadir}/qt5/translations/it_IT.qm
%suse_update_desktop_file -c  %{name} %{name} %{name} suseprimeqt nvidia SyncUtility
popd

%files
%doc README.md
%{_bindir}/suseprimeqt
%{_datadir}/pixmaps
%{_datadir}/icons/hicolor
%{_datadir}/applications/*.desktop
%{_datadir}/qt5
%{_datadir}/qt5/translations

%changelog

openSUSE Build Service is sponsored by