File stacer.spec of Package stacer

#
# spec file for package stacer
#
# 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/
#


Name:           stacer
Version:        1.1.0
Release:        0
Summary:        Linux System Optimizer and Monitoring
License:        GPL-3.0-only
URL:            https://oguzhaninan.github.io/Stacer-Web/
Source:         https://github.com/oguzhaninan/Stacer/archive/v%{version}.tar.gz
Patch0:         stacer-cmake-install-fix.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5)
BuildRequires:  cmake(Qt5Charts)
BuildRequires:  cmake(Qt5Concurrent)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Widgets)

%description
Stacer is an open source system optimizer and application monitor that helps users to manage entire system with different aspects, its an all in one system utility.

%lang_package

%prep
%autosetup -n Stacer-%{version} -p1

%build
%cmake \
 -DCMAKE_BUILD_TYPE=Release
%cmake_build

%install
%cmake_install
%suse_update_desktop_file -r %{name} "System;Monitor"
%find_lang %{name} --with-qt

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/stacer.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*/*/*.png

%files lang -f %{name}.lang
%{_datadir}/qt5/

%changelog
openSUSE Build Service is sponsored by