From 0f75ba96e6ecec1c5cf1a8d80d141ee2d2a2fec1 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 18 Jan 2008 12:26:28 +0000 Subject: [PATCH] - 5.0.2. No longer need lpstat patch. --- .cvsignore | 1 + gutenprint-O6.patch | 254 +++++++++++----------------------------- gutenprint-lpstat.patch | 11 -- gutenprint.spec | 14 +-- sources | 2 +- 5 files changed, 76 insertions(+), 206 deletions(-) delete mode 100644 gutenprint-lpstat.patch diff --git a/.cvsignore b/.cvsignore index 95c0d36..2cbe6b8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,3 +1,4 @@ gutenprint-5.0.0.tar.bz2 gutenprint-5.0.0.99.1.tar.bz2 gutenprint-5.0.1.tar.bz2 +gutenprint-5.0.2.tar.bz2 diff --git a/gutenprint-O6.patch b/gutenprint-O6.patch index faf4105..8c02f30 100644 --- a/gutenprint-O6.patch +++ b/gutenprint-O6.patch @@ -1,38 +1,7 @@ ---- gutenprint-5.0.0.99.1/configure.ac.O6 2007-05-04 15:22:21.000000000 +0100 -+++ gutenprint-5.0.0.99.1/configure.ac 2007-05-04 15:23:39.000000000 +0100 -@@ -645,29 +645,6 @@ - PKGMODULEDIR="${PACKAGE_LIB_DIR}/${PACKAGE_VERSION}/modules" - AC_DEFINE_UNQUOTED(PKGMODULEDIR, ["$PKGMODULEDIR"]) - --dnl Compiler flags --if test x$ac_compiler_gnu = "xyes"; then -- STP_ADD_COMPILER_ARGS([-Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=1048576],, [GNUCFLAGS]) -- if test x${USE_MAINTAINER_MODE} = xyes ; then -- STP_ADD_COMPILER_ARGS([-pedantic -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls],, [GNUCFLAGS]) -- fi -- if test x$ENABLE_DEBUG = xyes ; then -- STP_ADD_COMPILER_ARG([-g]) -- else -- STP_ADD_FIRST_COMPILER_ARG([-O6 -O3 -O2 -O1 -O]) -- fi --else -- if test x$ENABLE_DEBUG = xyes ; then -- STP_ADD_COMPILER_ARG([-g]) -- else -- STP_ADD_FIRST_COMPILER_ARG([-O]) -- fi --fi --if test x$ENABLE_PROFILE = xyes ; then -- STP_ADD_COMPILER_ARG([-pg]) --fi --AC_SUBST(GNUCFLAGS) -- - AH_TEMPLATE([HAVE_GCC_ATTRIBUTES], - [Define to 1 if GCC special attributes are supported]) - AC_MSG_CHECKING([if $CC supports __attribute__ syntax]) ---- gutenprint-5.0.0.99.1/configure.O6 2007-05-04 15:22:29.000000000 +0100 -+++ gutenprint-5.0.0.99.1/configure 2007-05-04 15:25:59.000000000 +0100 -@@ -26076,532 +26076,6 @@ +diff -up gutenprint-5.0.2/configure.O6 gutenprint-5.0.2/configure +--- gutenprint-5.0.2/configure.O6 2008-01-18 12:19:25.000000000 +0000 ++++ gutenprint-5.0.2/configure 2008-01-18 12:21:05.000000000 +0000 +@@ -26044,410 +26044,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF @@ -72,27 +41,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -147,27 +99,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -221,27 +156,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -295,27 +213,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -371,27 +272,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -445,27 +329,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -521,27 +388,10 @@ - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); } && -- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; } && -- { ac_try='test -s conftest.$ac_objext' -- { (case "(($ac_try" in -- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; -- *) ac_try_echo=$ac_try;; --esac --eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 -- (eval "$ac_try") 2>&5 -- ac_status=$? -- echo "$as_me:$LINENO: \$? = $ac_status" >&5 -- (exit $ac_status); }; }; then +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; }; - stp_newCFLAGS="$CFLAGS" @@ -559,9 +409,39 @@ - CFLAGS="${stp_newCFLAGS}" - -fi -- -- -- - { echo "$as_me:$LINENO: checking if $CC supports __attribute__ syntax" >&5 - echo $ECHO_N "checking if $CC supports __attribute__ syntax... $ECHO_C" >&6; } + + +diff -up gutenprint-5.0.2/configure.ac.O6 gutenprint-5.0.2/configure.ac +--- gutenprint-5.0.2/configure.ac.O6 2008-01-18 12:18:40.000000000 +0000 ++++ gutenprint-5.0.2/configure.ac 2008-01-18 12:19:20.000000000 +0000 +@@ -648,29 +648,6 @@ AH_TEMPLATE(PKGMODULEDIR,, [Package modu + PKGMODULEDIR="${PACKAGE_LIB_DIR}/${PACKAGE_VERSION}/modules" + AC_DEFINE_UNQUOTED(PKGMODULEDIR, ["$PKGMODULEDIR"]) + +-dnl Compiler flags +-if test x$ac_compiler_gnu = "xyes"; then +- STP_ADD_COMPILER_ARGS([-Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=1048576],, [GNUCFLAGS]) +- if test x${USE_MAINTAINER_MODE} = xyes ; then +- STP_ADD_COMPILER_ARGS([-pedantic -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls],, [GNUCFLAGS]) +- fi +- if test x$ENABLE_DEBUG = xyes ; then +- STP_ADD_COMPILER_ARG([-g]) +- else +- STP_ADD_FIRST_COMPILER_ARG([-O6 -O3 -O2 -O1 -O]) +- fi +-else +- if test x$ENABLE_DEBUG = xyes ; then +- STP_ADD_COMPILER_ARG([-g]) +- else +- STP_ADD_FIRST_COMPILER_ARG([-O]) +- fi +-fi +-if test x$ENABLE_PROFILE = xyes ; then +- STP_ADD_COMPILER_ARG([-pg]) +-fi +-AC_SUBST(GNUCFLAGS) +- + AH_TEMPLATE([HAVE_GCC_ATTRIBUTES], + [Define to 1 if GCC special attributes are supported]) + AC_MSG_CHECKING([if $CC supports __attribute__ syntax]) diff --git a/gutenprint-lpstat.patch b/gutenprint-lpstat.patch deleted file mode 100644 index 7f062c1..0000000 --- a/gutenprint-lpstat.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 a80d0bf..48e7679 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -3,15 +3,14 @@ Name: gutenprint Summary: Printer Drivers Package -Version: 5.0.1 -Release: 6%{?dist} +Version: 5.0.2 +Release: 1%{?dist} Group: System Environment/Base URL: http://gimp-print.sourceforge.net/ Source0: http://dl.sf.net/gimp-print/gutenprint-%{version}.tar.bz2 Source1: gutenprint-foomaticppdupdate Patch0: gutenprint-menu.patch -Patch1: gutenprint-lpstat.patch -Patch2: gutenprint-O6.patch +Patch1: gutenprint-O6.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 @@ -126,8 +125,7 @@ Epson, HP and compatible printers.. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .menu -%patch1 -p1 -b .lpstat -%patch2 -p1 -b .O6 +%patch1 -p1 -b .O6 %build %ifarch ppc64 @@ -199,7 +197,6 @@ exit 0 %{_includedir}/gutenprintui2/ %{_libdir}/*.so %{_libdir}/pkgconfig/gutenprint.pc -%{_libdir}/pkgconfig/gutenprintui.pc %{_libdir}/pkgconfig/gutenprintui2.pc %exclude %{_libdir}/*.la @@ -242,6 +239,9 @@ exit 0 /bin/rm -f /var/cache/foomatic/* %changelog +* Fri Jan 18 2008 Tim Waugh 5.0.2-1 +- 5.0.2. No longer need lpstat patch. + * Mon Jan 7 2008 Tim Waugh - Own %%{_datadir}/gutenprint (bug #427801). diff --git a/sources b/sources index bbb6459..0655395 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4ec66d57c1014b503d6bea16b1c31d81 gutenprint-5.0.1.tar.bz2 +ca6c45616caa720e9e185817272b08d7 gutenprint-5.0.2.tar.bz2