diff --git a/tuna-move-from-pygtk-to-gtk3-gobject.patch b/tuna-move-from-pygtk-to-gtk3-gobject.patch new file mode 100644 index 0000000..cf579ba --- /dev/null +++ b/tuna-move-from-pygtk-to-gtk3-gobject.patch @@ -0,0 +1,14 @@ +diff --git a/tuna/config.py b/tuna/config.py +index 019317f..08a536f 100644 +--- a/tuna/config.py ++++ b/tuna/config.py +@@ -1,5 +1,8 @@ + import io, os, re, fnmatch +-import sys, gtk ++import sys ++import gi ++gi.require_version('Gtk', '3.0') ++from gi.repository import Gtk as gtk + import codecs, configparser + from time import localtime, strftime + from subprocess import Popen, PIPE, STDOUT, call diff --git a/tuna.spec b/tuna.spec index 709bbad..39d29d0 100644 --- a/tuna.spec +++ b/tuna.spec @@ -1,11 +1,12 @@ Name: tuna Version: 0.14.1 -Release: 1 +Release: 2 Summary: Application tuning GUI & command line utility License: GPLv2 URL: https://rt.wiki.kernel.org/index.php/Tuna Source: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz Patch0: oscilloscope-move-from-pygtk2-to-gtk3-gobject.patch +Patch1: tuna-move-from-pygtk-to-gtk3-gobject.patch BuildArch: noarch BuildRequires: python3-devel gettext Requires: python3-ethtool python3-linux-procfs >= 0.6 python3-schedutils >= 0.6 @@ -88,6 +89,9 @@ done %doc ChangeLog %changelog +* Fri Dec 30 2022 xu_ping - 0.14.1-2 +- Modify tuna config.py use gtk3 + * Fri Sep 11 2020 maminjie - 0.14.1-1 - Upgrade to 0.14.1