2b50367
%global uuid    com.leinardi.%{name}
2b50367
2b50367
Name:           gwe
456ed3b
Version:        0.15.7
658a61f
Release:        %autorelease
2b50367
Summary:        System utility designed to provide information of NVIDIA card
7a182bc
BuildArch:      noarch
2b50367
d187bb5
License:        GPL-3.0-or-later
2b50367
URL:            https://gitlab.com/leinardi/gwe
2b50367
Source0:        %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
2b50367
Source1:        README.fedora.md
2b50367
2b50367
BuildRequires:  desktop-file-utils
2b50367
BuildRequires:  libappstream-glib
2b50367
BuildRequires:  meson >= 0.45.1
2b50367
BuildRequires:  python3-devel
7a182bc
2b50367
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.56.0
2b50367
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.30
f1366b5
2b50367
Requires:       dbus-common
2b50367
Requires:       hicolor-icon-theme
fad6913
Requires:       libdazzle
456ed3b
Requires:       python3-gobject >= 3.44.2
c0ba37c
Requires:       python3-injector >= 0.21.0
456ed3b
Requires:       python3-matplotlib-gtk3 >= 3.8.2
456ed3b
Requires:       python3-peewee >= 3.17.0
cfbacdc
Requires:       python3-py3nvml >= 0.2.7
14c5654
Requires:       python3-pyxdg %dnl >= 0.28 # Try to run with old for now https://bugzilla.redhat.com/show_bug.cgi?id=2242522
c0ba37c
Requires:       python3-reactivex >= 4.0.4
14c5654
Requires:       python3-requests %dnl >= 2.31.0 # Try to run with old for now https://bugzilla.redhat.com/show_bug.cgi?id=2189970
c0ba37c
Requires:       python3-xlib >= 0.33
f1366b5
6abdf71
# Conditional dep for GNOME
5ef389a
Recommends:     (gnome-shell-extension-appindicator if gnome-shell)
6abdf71
6abdf71
Recommends:     libappindicator-gtk3
2b50367
2b50367
%description
2b50367
GWE is a GTK system utility designed to provide information, control the fans
2b50367
and overclock your NVIDIA video card and graphics processor.
2b50367
2b50367
This package require NVIDIA driver. Please read included README.Fedora file:
2b50367
2b50367
  xdg-open %{_docdir}/%{name}/README.fedora.md
2b50367
2b50367
2b50367
%prep
5ef389a
%autosetup -p1
2b50367
2b50367
2b50367
%build
2b50367
%meson
2b50367
%meson_build
2b50367
2b50367
2b50367
%install
2b50367
%meson_install
53b13ee
install -m0644 -Dp %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README.fedora.md
f1366b5
2b50367
# Remove HiDPI version PNG icons since we have SVG version here
2b50367
rm -r %{buildroot}%{_datadir}/icons/hicolor/*@2x/
2b50367
2b50367
2b50367
%check
53b13ee
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
2b50367
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
2b50367
2b50367
2b50367
%files
2b50367
%license COPYING.txt
2b50367
%doc CHANGELOG.md README.md README.fedora.md RELEASING.md
2b50367
%{_bindir}/%{name}
2b50367
%{_datadir}/%{name}/
2b50367
%{_datadir}/applications/*.desktop
2b50367
%{_datadir}/dbus-1/services/*.service
2b50367
%{_datadir}/glib-2.0/schemas/*.gschema.xml
2b50367
%{_datadir}/icons/hicolor/*/*/*.png
2b50367
%{_datadir}/icons/hicolor/symbolic/*/*.svg
2b50367
%{_metainfodir}/*.xml
2b50367
%{python3_sitelib}/%{name}/
2b50367
2b50367
2b50367
%changelog
658a61f
%autochangelog