diff --git a/.gitignore b/.gitignore index 5e0926b..6aeff32 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ gutenprint-5.2.4.tar.bz2 gutenprint-5.2.5.tar.bz2 gutenprint-5.2.6.tar.bz2 /gutenprint-5.2.7.tar.bz2 +/gutenprint-5.2.8.tar.bz2 diff --git a/gutenprint-build.patch b/gutenprint-build.patch deleted file mode 100644 index 6b17a40..0000000 --- a/gutenprint-build.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -up gutenprint-5.2.7/src/cups/commandtocanon.c.build gutenprint-5.2.7/src/cups/commandtocanon.c ---- gutenprint-5.2.7/src/cups/commandtocanon.c.build 2011-06-07 13:32:37.372042304 +0100 -+++ gutenprint-5.2.7/src/cups/commandtocanon.c 2011-06-07 13:32:41.270970750 +0100 -@@ -13,6 +13,7 @@ - - #include - #include -+#include - #include - - -diff -up gutenprint-5.2.7/src/cups/commandtoepson.c.build gutenprint-5.2.7/src/cups/commandtoepson.c ---- gutenprint-5.2.7/src/cups/commandtoepson.c.build 2007-12-24 17:19:20.000000000 +0000 -+++ gutenprint-5.2.7/src/cups/commandtoepson.c 2011-06-07 13:32:35.656073794 +0100 -@@ -30,6 +30,7 @@ - - #include - #include -+#include - #include - #include - diff --git a/gutenprint-device-ids.patch b/gutenprint-device-ids.patch index fddbaea..30a1f19 100644 --- a/gutenprint-device-ids.patch +++ b/gutenprint-device-ids.patch @@ -1,38 +1,45 @@ -diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/xml/printers.xml ---- gutenprint-5.2.7/src/xml/printers.xml.device-ids 2011-05-01 16:44:04.000000000 +0100 -+++ gutenprint-5.2.7/src/xml/printers.xml 2011-10-11 11:52:59.723682593 +0100 -@@ -137,17 +137,17 @@ - - - -- -+ +diff -up gutenprint-5.2.8/src/xml/printers.xml.device-ids gutenprint-5.2.8/src/xml/printers.xml +--- gutenprint-5.2.8/src/xml/printers.xml.device-ids 2012-05-31 02:57:53.000000000 +0200 ++++ gutenprint-5.2.8/src/xml/printers.xml 2012-06-12 10:03:16.344274655 +0200 +@@ -149,16 +149,16 @@ + - - - - + - + - + + + + - + - + + + - + - + -@@ -174,7 +174,7 @@ - - - +@@ -188,7 +188,7 @@ + + + +- ++ + + + +@@ -200,7 +200,7 @@ + + + - -+ ++ + - -@@ -313,6 +313,7 @@ +@@ -407,6 +407,7 @@ @@ -40,7 +47,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -331,7 +332,7 @@ +@@ -425,7 +426,7 @@ @@ -49,7 +56,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -389,7 +390,7 @@ +@@ -487,7 +488,7 @@ @@ -58,16 +65,16 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -422,7 +423,7 @@ - +@@ -521,7 +522,7 @@ + - + -@@ -522,6 +523,7 @@ +@@ -625,6 +626,7 @@ @@ -75,7 +82,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -785,7 +787,7 @@ +@@ -903,7 +905,7 @@ @@ -84,7 +91,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -918,9 +920,9 @@ +@@ -1036,9 +1038,9 @@ @@ -96,7 +103,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -1090,19 +1092,19 @@ +@@ -1208,19 +1210,19 @@ @@ -121,7 +128,7 @@ diff -up gutenprint-5.2.7/src/xml/printers.xml.device-ids gutenprint-5.2.7/src/x -@@ -1110,15 +1112,15 @@ +@@ -1228,15 +1230,15 @@ diff --git a/gutenprint-null-pointer.patch b/gutenprint-null-pointer.patch deleted file mode 100644 index 2198234..0000000 --- a/gutenprint-null-pointer.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -up gutenprint-5.2.7/src/escputil/escputil.c.null-pointer gutenprint-5.2.7/src/escputil/escputil.c ---- gutenprint-5.2.7/src/escputil/escputil.c.null-pointer 2010-12-11 23:04:07.000000000 +0100 -+++ gutenprint-5.2.7/src/escputil/escputil.c 2011-07-25 17:52:56.999202508 +0200 -@@ -1340,10 +1340,14 @@ do_new_status(status_cmd_t cmd, char *bu - const char *ind; - const stp_string_list_t *color_list = NULL; - stp_parameter_t desc; -- const stp_vars_t *printvars = stp_printer_get_defaults(printer); -- stp_describe_parameter(printvars, "ChannelNames", &desc); -- if (desc.p_type == STP_PARAMETER_TYPE_STRING_LIST) -- color_list = desc.bounds.str; -+ const stp_vars_t *printvars = NULL; -+ if (printer) -+ { -+ printvars = stp_printer_get_defaults(printer); -+ stp_describe_parameter(printvars, "ChannelNames", &desc); -+ if (desc.p_type == STP_PARAMETER_TYPE_STRING_LIST) -+ color_list = desc.bounds.str; -+ } - STP_DEBUG(printf("New format bytes: %d bytes\n", bytes)); - if (cmd == CMD_STATUS) - printf(_("Printer Name: %s\n"), -@@ -1428,7 +1432,8 @@ do_new_status(status_cmd_t cmd, char *bu - } - i += total_param_count + 2; - } -- stp_parameter_description_destroy(&desc); -+ if (printer) -+ stp_parameter_description_destroy(&desc); - exit(0); - } - diff --git a/gutenprint.spec b/gutenprint.spec index 9abc7e7..15d271d 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -2,11 +2,11 @@ Name: gutenprint Summary: Printer Drivers Package -Version: 5.2.7 -Release: 11%{?dist} +Version: 5.2.8 +Release: 1%{?dist} Group: System Environment/Base URL: http://gimp-print.sourceforge.net/ -Source0: http://dl.sf.net/gimp-print/gutenprint-5.2/%{version}/gutenprint-%{version}.tar.bz2 +Source0: http://downloads.sourceforge.net/sourceforge/gimp-print/gutenprint-%{version}.tar.bz2 # Post-install script to update foomatic PPDs. Source1: gutenprint-foomaticppdupdate # Post-install script to update CUPS native PPDs. @@ -16,24 +16,22 @@ Patch1: gutenprint-O6.patch Patch2: gutenprint-selinux.patch Patch3: gutenprint-postscriptdriver.patch Patch4: gutenprint-device-ids.patch -Patch5: gutenprint-null-pointer.patch -Patch6: gutenprint-build.patch License: GPLv2+ -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 BuildRequires: gettext-devel,cups-devel,pkgconfig,gimp-devel BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel BuildRequires: foomatic,gtk2-devel %if %{build_with_ijs_support} -BuildRequires: ghostscript-devel +BuildRequires: ghostscript-devel %endif BuildRequires: gimp BuildRequires: chrpath -Obsoletes: gimp-print-utils <= 4.2.7-25 -Provides: gimp-print-utils = 4.2.7-25 +Obsoletes: gimp-print-utils < 4.2.7-25 +Provides: gimp-print-utils = 4.2.7-25 # Make sure we get postscriptdriver tags. -BuildRequires: python-cups, cups +BuildRequires: python-cups, cups ## NOTE ## # The README file in this package contains suggestions from upstream @@ -57,8 +55,8 @@ Summary: Library development files for gutenprint Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gtk2-devel -Obsoletes: gimp-print-devel <= 4.2.7-25 -Provides: gimp-print-devel = 4.2.7-25 +Obsoletes: gimp-print-devel < 4.2.7-25 +Provides: gimp-print-devel = 4.2.7-25 %description devel This package contains headers and libraries required to build applications that @@ -69,8 +67,8 @@ Summary: GIMP plug-in for gutenprint Group: System Environment/Base Requires: %{name} = %{version}-%{release} Requires: gimp -Obsoletes: gimp-print-plugin <= 4.2.7-25 -Provides: gimp-print-plugin = 4.2.7-25 +Obsoletes: gimp-print-plugin < 4.2.7-25 +Provides: gimp-print-plugin = 4.2.7-25 %description plugin This package contains the gutenprint GIMP plug-in. @@ -80,10 +78,11 @@ Summary: Foomatic printer database information for gutenprint Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} Requires(post): foomatic -Requires(post): system-config-printer-libs +# python-cups is required for the update script (bug #246865) +Requires(post): python-cups Requires: foomatic-db -Obsoletes: gimp-print <= 4.2.7-25 -Provides: gimp-print = 4.2.7-25 +Obsoletes: gimp-print < 4.2.7-25 +Provides: gimp-print = 4.2.7-25 %description foomatic This package contains a database of printers,printer drivers, @@ -171,11 +170,9 @@ Epson, HP and compatible printers. # HP Color LaserJet 2500/4550 (bug #659044). # Brother hl-2035 (bug #651603#c3) # Canon PIXMA MP250 (bug #744087). +# Canon PIXMA Pro9000mk2. %patch4 -p1 -b .device-ids -# Avoid null pointer access in escputil (bug #659120). -%patch5 -p1 -b .null-pointer # Fix build against new versions of gcc. -%patch6 -p1 -b .build cp %{SOURCE2} src/cups/cups-genppdupdate.in @@ -191,7 +188,6 @@ cp %{SOURCE2} src/cups/cups-genppdupdate.in make %{?_smp_mflags} %install -rm -rf %{buildroot} make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_sbindir} @@ -223,9 +219,6 @@ do done -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -237,7 +230,6 @@ exit 0 %files -f %{name}.lang -%defattr(-, root, root,-) %doc COPYING %{_bindir}/escputil %{_mandir}/man1/escputil.1* @@ -257,7 +249,6 @@ exit 0 %doc COPYING AUTHORS NEWS README doc/FAQ.html doc/gutenprint-users-manual.odt doc/gutenprint-users-manual.pdf %files devel -%defattr(-,root,root,-) %doc ChangeLog doc/developer/reference-html doc/developer/gutenprint.pdf %doc doc/gutenprint doc/gutenprintui2 %{_includedir}/gutenprint/ @@ -268,24 +259,20 @@ exit 0 %exclude %{_libdir}/*.la %files plugin -%defattr(-, root, root,-) %{_libdir}/gimp/*/plug-ins/gutenprint %files foomatic -%defattr(-, root, root,-) %doc %{_sbindir}/gutenprint-foomaticppdupdate %{_datadir}/foomatic/db/source/driver/* %{_datadir}/foomatic/db/source/opt/* %files extras -%defattr(-, root, root,-) %doc %{_bindir}/testpattern %{_datadir}/gutenprint/samples/* %files cups -%defattr(-, root, root,-) %doc %{_datadir}/cups/calibrate.ppm %{_cups_serverbin}/filter/* @@ -305,6 +292,9 @@ fi /bin/rm -f /var/cache/foomatic/* %changelog +* Tue Jun 12 2012 Jiri Popelka 5.2.8-1 +- 5.2.8 + * Tue Apr 03 2012 Nils Philippsen - 5.2.7-11 - rebuild against gimp 2.8.0 release candidate diff --git a/sources b/sources index 5dc5a1f..82aa585 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b19029972bf28f6efd693270daf8f5de gutenprint-5.2.7.tar.bz2 +5ed64c0f994245852da8e9fa6a137060 gutenprint-5.2.8.tar.bz2