File gwe.spec of Package gwe
#
# spec file for package gwe
#
# 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 https://bugs.opensuse.org/
#
Name:           gwe
Version:        0.15.9
Release:        0
Summary:        System utility control the fans and overclock your NVIDIA card
License:        GPL-3.0-only
URL:            https://gitlab.com/leinardi/gwe/
Source0:        %{url}-/archive/release/%{name}-release.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         allow-connection-to-X11.patch
Group:          System/Monitoring
BuildRequires:  appstream-glib
BuildRequires:  desktop-file-utils
BuildRequires:  systemd-rpm-macros
BuildRequires:  pkgconfig(libdazzle-1.0)
BuildRequires:  libnotify
BuildRequires:  meson
BuildRequires:  fdupes
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  python3-devel
BuildRequires:  python3-peewee
Requires:       python3-python-xlib >= 0.26
BuildRequires:  update-desktop-files
Requires:       python3-py3nvml
Requires:       python3-gobject
Requires:       python3-matplotlib-gtk3
Requires:       python3-matplotlib-wx
Requires:       python3-peewee => 3.9.0
Requires:       python3-python-xlib >= 0.26
Requires:       python3-injector
Requires:       python3-pyxdg
Requires:       python3-requests
Requires:       python3-reactivex
BuildArch:      noarch
%description
System utility designed to provide information, control the fans and overclock your NVIDIA card.
%prep
%autosetup -p1
sed -i 's,^#!/usr/bin/env ,#!/usr/bin/,' gwe/__main__.py
%build
%meson
%meson_build
%install
mkdir -p %{buildroot}/usr/share/doc/packages/
%meson_install
%suse_update_desktop_file -r com.leinardi.gwe System Monitor
%fdupes %{buildroot}/%{_prefix}
%check
find *.md -type f -perm /111 -exec chmod 644 {} \;
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.leinardi.gwe.appdata.xml
%files
%dir /usr/share/doc/packages/
%license COPYING.txt
%doc CHANGELOG.md README.md RELEASING.md CODE_OF_CONDUCT.md CONTRIBUTING.md
%{_bindir}/
%{_datadir}/%{name}
%{_datadir}/metainfo/com.leinardi.gwe.appdata.xml
%{_datadir}/applications/com.leinardi.gwe.desktop
%{_datadir}/dbus-1/services/com.leinardi.gwe.service
%{_datadir}/glib-2.0/schemas/com.leinardi.gwe.gschema.xml
%{_datadir}/icons/hicolor/*
%{python3_sitelib}/%{name}
%changelog