diff --git a/system-config-printer-python3.patch b/system-config-printer-python3.patch new file mode 100644 index 0000000..b703787 --- /dev/null +++ b/system-config-printer-python3.patch @@ -0,0 +1,9 @@ +diff -up system-config-printer-1.5.0/udev/udev-add-printer.python3 system-config-printer-1.5.0/udev/udev-add-printer +--- system-config-printer-1.5.0/udev/udev-add-printer.python3 2014-02-18 14:43:34.000000000 +0000 ++++ system-config-printer-1.5.0/udev/udev-add-printer 2014-08-03 15:02:02.407041071 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python -s ++#!/usr/bin/python3 -s + + ## udev-add-printer + diff --git a/system-config-printer.spec b/system-config-printer.spec index 3b8f141..79043d0 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -4,12 +4,13 @@ Summary: A printer administration tool Name: system-config-printer Version: 1.5.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base Source0: http://cyberelk.net/tim/data/system-config-printer/1.4/%{name}-%{version}.tar.xz Patch1: system-config-printer-no-applet-in-gnome.patch +Patch2: system-config-printer-python3.patch BuildRequires: cups-devel >= 1.2 BuildRequires: desktop-file-utils >= 0.2.92 @@ -81,6 +82,9 @@ printers. # Don't start the applet in GNOME. %patch1 -p1 -b .no-applet-in-gnome +# Explicitly use /usr/bin/python3 in udev-add-printer (bug #1126149). +%patch2 -p1 -b .python3 + %build %configure --with-udev-rules make %{?_smp_mflags} @@ -180,6 +184,9 @@ touch %buildroot%{_localstatedir}/run/udev-configure-printer/usb-uris exit 0 %changelog +* Sun Aug 3 2014 Tim Waugh 1.5.0-6 +- Explicitly use /usr/bin/python3 in udev-add-printer (bug #1126149). + * Fri Jul 25 2014 Tim Waugh 1.5.0-5 - More python3 dependency changes: - pygobject3-base -> python3-gobject