diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 55019c8..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -driconf-0.9.1.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..de5a6f7 --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +Still on Python 2. Use adriconf instead. + +https://bugzilla.redhat.com/show_bug.cgi?id=1731402 diff --git a/driconf-0.9.1-glxinfo-unicode.patch b/driconf-0.9.1-glxinfo-unicode.patch deleted file mode 100644 index 20de556..0000000 --- a/driconf-0.9.1-glxinfo-unicode.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up driconf-0.9.1/driconf_simpleui.py.unicode driconf-0.9.1/driconf_simpleui.py ---- driconf-0.9.1/driconf_simpleui.py.unicode 2006-09-17 17:49:54.000000000 -0700 -+++ driconf-0.9.1/driconf_simpleui.py 2008-06-05 09:56:19.000000000 -0700 -@@ -450,11 +450,13 @@ class MainWindow (gtk.Window): - else: - screen = self.screens[0] - if screen.glxInfo: -- text = "%s (%s)" % ( -- screen.glxInfo.renderer, screen.glxInfo.vendor) -+ text = u"%s (%s)" % ( -+ unicode(screen.glxInfo.renderer, "utf-8", "replace"), -+ unicode(screen.glxInfo.vendor, "utf-8", "replace")) - else: -- text = _("Screen") + " %d: %s" % ( -- screen.num, screen.driver.name.capitalize()) -+ text = _(u"Screen") + u" %d: %s" % (screen.num, -+ unicode(screen.driver.name, "utf-8", -+ "replace").capitalize()) - deviceHBox = gtk.HBox() - deviceLabel = gtk.Label() - deviceLabel.set_justify(gtk.JUSTIFY_LEFT) diff --git a/driconf-0.9.1-setup.patch b/driconf-0.9.1-setup.patch deleted file mode 100644 index 5205355..0000000 --- a/driconf-0.9.1-setup.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -Nur driconf-0.9.1.orig/setup.cfg driconf-0.9.1/setup.cfg ---- driconf-0.9.1.orig/setup.cfg 2005-08-11 13:07:12.000000000 -0600 -+++ driconf-0.9.1/setup.cfg 2006-12-16 14:33:17.000000000 -0700 -@@ -1,3 +0,0 @@ --[install] --prefix=/usr/local --install-purelib=/usr/local/lib/driconf -diff -Nur driconf-0.9.1.orig/setup.py driconf-0.9.1/setup.py ---- driconf-0.9.1.orig/setup.py 2006-09-17 19:41:20.000000000 -0600 -+++ driconf-0.9.1/setup.py 2006-12-16 14:33:32.000000000 -0700 -@@ -19,57 +19,3 @@ - "drilogo.jpg", "driconf-icon.png"]) - ] + translations) - --# --# Search for obsolete files. --# --# driconf_xpm is gone for good, the other two python modules were moved to --# /lib/driconf/... --# --from os.path import isfile, isdir, join --from distutils.sysconfig import get_python_lib --obsoleteFiles = [] --for prefix in [None, "/usr/local"]: -- if not prefix: -- pyLibPath = get_python_lib() -- else: -- pyLibPath = get_python_lib(prefix=prefix) -- if not isdir (pyLibPath): -- continue -- for f in ["driconf_xpm.py", "driconf_xpm.pyc", "driconf_xpm.pyo", -- "driconf.py", "driconf.pyc", "driconf.pyo", -- "dri.py", "dri.pyc", "dri.pyo"]: -- path = join (pyLibPath, f) -- if isfile (path): -- obsoleteFiles.append (path) --if obsoleteFiles: -- print "\n*** Obsolete files from previous DRIconf versions were found on " \ -- "your system.\n*** Unless you tweaked setup.cfg you can probably " \ -- "delete them:" -- for f in obsoleteFiles: -- print "***\t%s" % f -- --# --# Check if required packages are installed --# --errors = 0 --try: -- import pygtk -- pygtk.require ("2.0") -- import gtk --except: -- print "\n*** Warning: importing GTK version 2 doesn't work." -- errors = 1 --else: -- if gtk.check_version(2, 4, 0): -- print "\n*** Warning: DRIconf requires GTK 2.4 or newer." -- errors = 1 --try: -- import xml.parsers.expat --except: -- if not errors: -- print -- print "*** Warning: importing xml.parsers.expat doesn't work." -- errors = 1 -- --if errors: -- print "*** Warning: DRIconf will probably not work for the above reason(s)." diff --git a/driconf-0.9.1-update-toolbar-methods.patch b/driconf-0.9.1-update-toolbar-methods.patch deleted file mode 100644 index abc41c8..0000000 --- a/driconf-0.9.1-update-toolbar-methods.patch +++ /dev/null @@ -1,107 +0,0 @@ -diff -up driconf-0.9.1/driconf_complexui.py.toolbar driconf-0.9.1/driconf_complexui.py ---- driconf-0.9.1/driconf_complexui.py.toolbar 2008-06-05 16:21:09.000000000 -0700 -+++ driconf-0.9.1/driconf_complexui.py 2008-06-05 17:02:03.000000000 -0700 -@@ -838,42 +838,73 @@ class MainWindow (gtk.Window): - self.paned.show() - self.toolbar = gtk.Toolbar () - iconSize = self.toolbar.get_icon_size() -- self.saveButton = self.toolbar.insert_stock ( -- "gtk-save", _("Save selected configuration file"), -- "priv", self.configTree.saveConfig, None, -1) -- self.reloadButton = self.toolbar.insert_stock ( -- "gtk-revert-to-saved", _("Reload selected configuration file"), -- "priv", self.configTree.reloadConfig, None, -1) -- self.toolbar.append_space() -- self.newButton = self.toolbar.insert_stock ( -- "gtk-new", _("Create a new device or application"), -- "priv", self.configTree.newItem, None, -1) -- self.removeButton = self.toolbar.insert_stock ( -- "gtk-delete", _("Remove selected device or application"), -- "priv", self.configTree.removeItem, None, -1) -- self.upButton = self.toolbar.insert_stock ( -- "gtk-go-up", _("Move selected item up"), -- "priv", self.configTree.moveUp, None, -1) -- self.downButton = self.toolbar.insert_stock ( -- "gtk-go-down", _("Move selected item down"), -- "priv", self.configTree.moveDown, None, -1) -- self.propertiesButton = self.toolbar.insert_stock ( -- "gtk-properties", _("Properties of selected device or application"), -- "priv", self.configTree.properties, None, -1) -- self.toolbar.append_space() -+ -+ self.saveButton = gtk.ToolButton("gtk-save") -+ self.saveButton.set_tooltip_text(_("Save selected configuration file")) -+ self.saveButton.connect("clicked", self.configTree.saveConfig) -+ self.saveButton.show() -+ self.toolbar.insert(self.saveButton, -1) -+ self.reloadButton = gtk.ToolButton("gtk-revert-to-saved") -+ self.reloadButton.set_tooltip_text(_("Reload selected configuration file")) -+ self.reloadButton.connect("clicked", self.configTree.reloadConfig) -+ self.reloadButton.show() -+ self.toolbar.insert(self.reloadButton, -1) -+ -+ separator = gtk.SeparatorToolItem() -+ separator.show() -+ self.toolbar.insert(separator, -1) -+ -+ self.newButton = gtk.ToolButton("gtk-new") -+ self.newButton.set_tooltip_text(_("Create a new device or application")) -+ self.newButton.connect("clicked", self.configTree.newItem) -+ self.newButton.show() -+ self.toolbar.insert(self.newButton, -1) -+ self.removeButton = gtk.ToolButton("gtk-delete") -+ self.removeButton.set_tooltip_text(_("Remove selected device or application")) -+ self.removeButton.connect("clicked", self.configTree.removeItem) -+ self.removeButton.show() -+ self.toolbar.insert(self.removeButton, -1) -+ self.upButton = gtk.ToolButton("gtk-go-up") -+ self.upButton.set_tooltip_text(_("Move selected item up")) -+ self.upButton.connect("clicked", self.configTree.moveUp) -+ self.upButton.show() -+ self.toolbar.insert(self.upButton, -1) -+ self.downButton = gtk.ToolButton("gtk-go-down") -+ self.downButton.set_tooltip_text(_("Move selected item down")) -+ self.downButton.connect("clicked", self.configTree.moveDown) -+ self.downButton.show() -+ self.toolbar.insert(self.downButton, -1) -+ self.propertiesButton = gtk.ToolButton("gtk-properties") -+ self.propertiesButton.set_tooltip_text(_("Properties of selected device or application")) -+ self.propertiesButton.connect("clicked", self.configTree.properties) -+ self.propertiesButton.show() -+ self.toolbar.insert(self.propertiesButton, -1) -+ -+ separator = gtk.SeparatorToolItem() -+ separator.show() -+ self.toolbar.insert(separator, -1) -+ - # The gtk-about stock item is available with gtk >= 2.6. - # It's definitely not available with gtk 2.2. Not sure about 2.4. - if gtk.gtk_version[0] == 2 and gtk.gtk_version[1] < 6: - aboutStock = "gtk-dialog-info" - else: - aboutStock = "gtk-about" -- self.aboutButton = self.toolbar.insert_stock ( -- aboutStock, _("About DRIconf"), "priv", -- self.aboutHandler, None, -1) -- self.toolbar.append_space() -- self.exitButton = self.toolbar.insert_stock ( -- "gtk-quit", _("Exit DRIconf"), "priv", -- self.exitHandler, None, -1) -+ self.aboutButton = gtk.ToolButton(aboutStock) -+ self.aboutButton.set_tooltip_text(_("About DRIconf")) -+ self.aboutButton.connect("clicked", self.aboutHandler) -+ self.aboutButton.show() -+ self.toolbar.insert(self.aboutButton, -1) -+ -+ separator = gtk.SeparatorToolItem() -+ separator.show() -+ self.toolbar.insert(separator, -1) -+ -+ self.exitButton = gtk.ToolButton("gtk-quit") -+ self.exitButton.set_tooltip_text(_("Exit DRIconf")) -+ self.exitButton.connect("clicked", self.exitHandler) -+ self.exitButton.show() -+ self.toolbar.insert(self.exitButton, -1) - if len(configList) != 0: - self.activateConfigButtons (configList[0]) - self.toolbar.show() diff --git a/driconf.spec b/driconf.spec deleted file mode 100644 index 330e695..0000000 --- a/driconf.spec +++ /dev/null @@ -1,186 +0,0 @@ -Name: driconf -Version: 0.9.1 -Release: 30%{?dist} -Summary: A configuration applet for the Direct Rendering Infrastructure - -License: GPLv2+ -URL: http://dri.freedesktop.org/wiki/DriConf -Source0: http://people.freedesktop.org/~fxkuehl/driconf/driconf-%{version}.tar.gz -Patch1: driconf-0.9.1-setup.patch -Patch2: driconf-0.9.1-glxinfo-unicode.patch -Patch3: driconf-0.9.1-update-toolbar-methods.patch -Patch4: http://patch-tracking.debian.net/patch/misc/dl/driconf/0.9.1-2/driconf_simpleui.py - - -BuildRequires: python2-devel -BuildRequires: desktop-file-utils -BuildArch: noarch -Requires: pygtk2 -Requires: glx-utils - -%description -DRIconf is a configuration applet for the Direct Rendering Infrastructure. -It allows customizing performance and visual quality settings of OpenGL -drivers on a per-driver, per-screen and/or per-application level. - -The settings are stored in system wide and per-user XML configuration files, -which are parsed by the OpenGL drivers on startup. - -DRIConf is written in Python with the python-gtk toolkit bindings. - -%prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 - -%build -%{__python2} setup.py build - -%install -%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix} - -%find_lang driconf - -cat << EOF > %{name}.desktop -[Desktop Entry] -Name=Driconf -Comment=configuration applet for the Direct Rendering Infrastructure -Exec=/usr/bin/driconf -Icon=/usr/share/driconf/driconf-icon -Terminal=false -Type=Application -Categories=Settings; -EOF - -desktop-file-install \ - --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ %{name}.desktop - -%files -f driconf.lang -%doc COPYING CHANGELOG README TODO -%{_bindir}/driconf -%{python2_sitelib}/dri.py -%{python2_sitelib}/dri.pyc -%{python2_sitelib}/dri.pyo -%{python2_sitelib}/driconf.py -%{python2_sitelib}/driconf.pyc -%{python2_sitelib}/driconf.pyo -%{python2_sitelib}/driconf_commonui.py -%{python2_sitelib}/driconf_commonui.pyc -%{python2_sitelib}/driconf_commonui.pyo -%{python2_sitelib}/driconf_complexui.py -%{python2_sitelib}/driconf_complexui.pyc -%{python2_sitelib}/driconf_complexui.pyo -%{python2_sitelib}/driconf_simpleui.py -%{python2_sitelib}/driconf_simpleui.pyc -%{python2_sitelib}/driconf_simpleui.pyo -%{python2_sitelib}/driconf-0.9.1-py?.?.egg-info -%dir %{_datadir}/driconf -%{_datadir}/driconf/card.png -%{_datadir}/driconf/drilogo.jpg -%{_datadir}/driconf/screen.png -%{_datadir}/driconf/screencard.png -%{_datadir}/driconf/driconf-icon.png -%{_datadir}/applications/%{name}.desktop - -%changelog -* Thu Jan 31 2019 Fedora Release Engineering - 0.9.1-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sun Jul 15 2018 Kevin Fenzi - 0.9.1-29 -- Clean up spec and fix FTBFS. -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 0.9.1-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jan 03 2018 Iryna Shcherbina - 0.9.1-27 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Wed Jul 26 2017 Fedora Release Engineering - 0.9.1-26 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 0.9.1-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 0.9.1-24 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Wed Feb 03 2016 Fedora Release Engineering - 0.9.1-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 0.9.1-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.9.1-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat Aug 03 2013 Fedora Release Engineering - 0.9.1-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Sun Feb 24 2013 Rahul Sundaram - 0.9.1-19 -- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 -- clean up spec to follow current guidelines - -* Wed Feb 13 2013 Fedora Release Engineering - 0.9.1-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Jul 18 2012 Fedora Release Engineering - 0.9.1-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jan 13 2012 Fedora Release Engineering - 0.9.1-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Feb 08 2011 Fedora Release Engineering - 0.9.1-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Wed Jul 21 2010 David Malcolm - 0.9.1-14 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Fri Jul 24 2009 Fedora Release Engineering - 0.9.1-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Tue Feb 24 2009 Fedora Release Engineering - 0.9.1-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Tue Feb 03 2009 Kevin Fenzi - 0.9.1-11 -- Add patch for traceback issue (fixes bug #482915) - -* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.9.1-10 -- Fix locations for Python 2.6 - -* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.9.1-9 -- Rebuild for Python 2.6 - -* Sun Jun 8 2008 Kevin Fenzi - 0.9.1-8 -- Improve unicode support (fixes bug #450083) - -* Tue Jan 15 2008 Kevin Fenzi - 0.9.1-7 -- Add egginfo file. - -* Tue Aug 21 2007 Kevin Fenzi - 0.9.1-6 -- Update license tag. - -* Wed Dec 20 2006 Kevin Fenzi - 0.9.1-5 -- Remove unneeded post/postun. - -* Tue Dec 19 2006 Kevin Fenzi - 0.9.1-4 -- Changed desktop catigory to Settings. - -* Mon Dec 18 2006 Kevin Fenzi - 0.9.1-3 -- Changed pygtk2-devel BuildRequires to python-devel -- Added desktop file. - -* Sat Dec 16 2006 Kevin Fenzi - 0.9.1-2 -- Added Requires for pygtk2 and glx-utils - -* Sat Dec 16 2006 Kevin Fenzi - 0.9.1-1 -- Inital fedora extras packaging - -* Fri Mar 31 2005 D. Hageman 0.9.0-1 -- Updated RPM spec file to handle new version - -* Mon Mar 14 2005 D. Hageman 0.2.3-1 -- Created the initial rpm spec file. diff --git a/driconf_simpleui.py b/driconf_simpleui.py deleted file mode 100644 index c021570..0000000 --- a/driconf_simpleui.py +++ /dev/null @@ -1,15 +0,0 @@ - ---- driconf-0.9.1.orig/driconf_simpleui.py -+++ driconf-0.9.1/driconf_simpleui.py -@@ -266,8 +266,8 @@ - j = i - break - i = i - 1 -- if i < chars/3: -- i = chars -+ else: -+ i = j = chars - head, tail = head + tail[:i] + '\n', tail[j:] - return head - - diff --git a/sources b/sources deleted file mode 100644 index e71f8fd..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -76d610bcd56aa5e8a489debb5081178a driconf-0.9.1.tar.gz