File nvidiux.spec of Package nvidiux
#
# spec file for package nvidiux
#
# Copyright (c) 2018 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: nvidiux
Version: 2.0.2
Release: 0
Summary: GUI tool to overclock or underclock your NVIDIA GPU
License: GPL-3.0-only
Group: System/X11/Utilities
URL: https://github.com/RunGp/Nvidiux
Source0: https://github.com/RunGp/Nvidiux/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
###BuildRequires: gksu-polkit
BuildRequires: python-qt4
BuildRequires: libva-utils
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-psutil
BuildRequires: python-tk
BuildRequires: update-desktop-files
###Requires: gksu-polkit
Requires: libva-utils
Requires: python
Requires: python-psutil
# Run dep for the experimental monitor.
# Leaving out for now, will mandate once the feature is out of beta
# Requires: python-pyqtgraph
Requires: python-qt4
Requires: python-tk
BuildArch: noarch
%description
Nvidiux is a GUI tool to overclock or underclock your NVIDIA GPU
%prep
%setup -q -n Nvidiux-%{version}
# remove executable bits
pushd usr/share/nvidiux
chmod 644 ../../../README.md ../man/man1/* licences/gpl-3.0* Ui_Nvidiux.py \
confirm.py monitor/monitor.py monitor/monitor2.py monitor/monitor2.ui \
monitor/monitor2ui.py monitor/monitorSettings.py nvidiux.pro \
nvidiux.py preference.py root_script/add_coolbits.py \
root_script/add_xtra1.py root_script/del_xtra1.py
popd
# fix icon
sed -i '/^Icon/cIcon=%{name}' usr/share/applications/nvidiux.desktop
%build
# no build required
%install
cp -R usr %{buildroot}
rm -fr %{buildroot}/README.md %{buildroot}/%{_datadir}/%{name}/gpl-3.0* \
%{buildroot}/%{_datadir}/%{name}/licences
install -Dm0644 usr/share/nvidiux/img/Nvidiux.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -r %{name} "Qt;Settings;HardwareSettings;"
%fdupes -s %{builrdoot}
%files
%license usr/share/nvidiux/licences/gpl-3.0.txt usr/share/nvidiux/licences/gpl-3.0_fr_FR.txt
%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog