File gst.spec of Package gst

#
# spec file for package gst
#
# Copyright (c) 2020 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:           gst
Version:        0.7.7
Release:        0
Summary:        System utility designed to stress and monitor various hardware components
License:        GPL-3.0-only
Url:            https://gitlab.com/leinardi/gst
Source0:        %{name}-%{version}.tar.gz
Patch0:         gst-fix-path-to-dmidecode.patch
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.56.0
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  appstream-glib
BuildRequires:  fdupes
BuildRequires:  meson

Requires:       sensors
Requires:       i2c-tools
Requires:       stress-ng
Requires:       python3-Rx
Requires:       python3-pyxdg
Requires:       python3-psutil
Requires:       python3-PyYAML
Requires:       python3-peewee
Requires:       python3-injector
Requires:       python3-requests
Requires:       python3-gobject-Gdk
Requires:       python3-humanfriendly
Requires:       python3-reactivex

BuildArch:      noarch

%description
GST is a GTK system utility designed to stress and monitor various hardware components like CPU and RAM.

%prep
%autosetup -p1
sed -i -e '1d;2i#!/usr/bin/python3' gst/__main__.py

%build
%meson
%meson_build

%install
%meson_install
%suse_update_desktop_file -r com.leinardi.gst Utility Accessibility GTK GNOME
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files
%license COPYING.txt
%doc README.md RELEASING.md CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{python3_sitelib}/%{name}
%{_datadir}/icons/hicolor/
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/metainfo/*.appdata.xml
%{_datadir}/dbus-1/services/*.service

%changelog

openSUSE Build Service is sponsored by