diff --git a/gutenprint-lpstat.patch b/gutenprint-lpstat.patch new file mode 100644 index 0000000..7f062c1 --- /dev/null +++ b/gutenprint-lpstat.patch @@ -0,0 +1,11 @@ +--- gutenprint-5.0.0.99.1/src/gutenprintui2/plist.c.lpstat 2007-03-05 16:56:36.000000000 +0000 ++++ gutenprint-5.0.0.99.1/src/gutenprintui2/plist.c 2007-03-05 16:57:29.000000000 +0000 +@@ -94,7 +94,7 @@ + static print_system_t known_printing_systems[] = + { + { "CUPS", N_("CUPS"), "lp -s", "-d", "-oraw", "/usr/sbin/cupsd", +- "/usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'", ++ "LC_ALL=C /usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'", + "-n" }, + { "SysV", N_("System V lp"), "lp -s", "-d", "-oraw", "/usr/bin/lp", + "/usr/bin/lpstat -v | grep -i '^device for ' | awk '{print $3}' | sed 's/://'", diff --git a/gutenprint.spec b/gutenprint.spec index 8614ffe..17a6140 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -9,6 +9,7 @@ Group: System Environment/Base URL: http://gimp-print.sourceforge.net/ Source0: http://dl.sf.net/gimp-print/gutenprint-%{version}.tar.bz2 Patch0: gutenprint-menu.patch +Patch1: gutenprint-lpstat.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cups-libs >= 1.1.22-0.rc1.9.10, cups >= 1.1.22-0.rc1.9.10 @@ -121,6 +122,7 @@ Epson, HP and compatible printers.. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .menu +%patch1 -p1 -b .lpstat %build %configure --disable-static --disable-dependency-tracking \ @@ -234,6 +236,7 @@ exit 0 sub-package. - Package the CUPS driver in sbindir and put a symlink in the CUPS ServerBin directory to work around bug #231015. +- Set POSIX locale when parsing lpstat output. * Fri Mar 2 2007 Tim Waugh 5.0.0-7 - Fixed menu patch.