+++ /dev/null
-diff -up cups-filters-1.0.40/filter/pdftops.c.pdf-landscape cups-filters-1.0.40/filter/pdftops.c
---- cups-filters-1.0.40/filter/pdftops.c.pdf-landscape 2013-10-11 17:15:45.639623613 +0100
-+++ cups-filters-1.0.40/filter/pdftops.c 2013-10-11 17:22:41.517421905 +0100
-@@ -273,7 +273,6 @@ main(int argc, /* I - Number of comm
- *pstops_options, /* Options for pstops filter */
- *pstops_end; /* End of pstops filter option */
- const char *cups_serverbin; /* CUPS_SERVERBIN environment variable */
-- const char *content_type; /* CONTENT_TYPE environment variable */
- #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
- struct sigaction action; /* Actions for POSIX signals */
- #endif /* HAVE_SIGACTION && !HAVE_SIGSET */
-@@ -457,7 +456,6 @@ main(int argc, /* I - Number of comm
- * Build the command-line for the pdftops or gs filter...
- */
-
-- content_type = getenv("CONTENT_TYPE");
- if (renderer == PDFTOPS)
- {
- pdf_argv[0] = (char *)"pdftops";
-@@ -646,25 +644,17 @@ main(int argc, /* I - Number of comm
- else if ((renderer == PDFTOPS) || (renderer == PDFTOCAIRO))
- {
- /*
-- * Use the page sizes of the original PDF document, this way documents
-- * which contain pages of different sizes can be printed correctly
-+ * No options to add. Note: pdftopdf has already rotated pages
-+ * for us.
- */
--
-- /* Only do this for unprocessed PDF files */
-- if (content_type && !strstr (content_type, "/vnd.cups-"))
-- pdf_argv[pdf_argc++] = (char *)"-origpagesizes";
- }
- #endif /* HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES */
- else if (renderer == ACROREAD)
- {
- /*
-- * Use the page sizes of the original PDF document, this way documents
-- * which contain pages of different sizes can be printed correctly
-+ * No options to add. Note: pdftopdf has already rotated pages
-+ * for us.
- */
--
-- /* Only do this for unprocessed PDF files */
-- if (content_type && !strstr (content_type, "/vnd.cups-"))
-- pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize";
- }
-
- /*
Summary: OpenPrinting CUPS filters and backends
Summary(pl.UTF-8): Filtry i backendy CUPS-a z projektu OpenPrinting
Name: cups-filters
-Version: 1.0.42
-Release: 2
+Version: 1.0.43
+Release: 1
# For a breakdown of the licensing, see COPYING file
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
# imagetopdf, pstopdf, texttopdf
License: GPL v2, GPL v2+, GPL v3, GPL v3+, LGPL v2+, MIT
Group: Applications/Printing
Source0: http://www.openprinting.org/download/cups-filters/%{name}-%{version}.tar.xz
-# Source0-md5: 3047524b51f2ac064663f1997c7d2c81
-Patch0: %{name}-cups15.patch
-Patch1: %{name}-pdf-landscape.patch
-Patch2: %{name}-dbus.patch
-Patch3: %{name}-php.patch
+# Source0-md5: 50f760c4cb7be37544c1174a12b1900e
+Patch0: %{name}-dbus.patch
+Patch1: %{name}-php.patch
URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
BuildRequires: autoconf >= 2.65
BuildRequires: automake >= 1:1.11
Requires: bc
Requires: grep
Requires: sed
+Provides: cups-filter-foomatic
Provides: ghostscript-cups = 9.08
+Obsoletes: cups-filter-foomatic
+Obsoletes: foomatic-filters
Obsoletes: ghostscript-cups < 9.08
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%patch3 -p1
%build
%{__aclocal}
# Not sure what is this good for.
%{__rm} $RPM_BUILD_ROOT%{_bindir}/ttfread
-# currently in foomatic-filters; to be packaged here after new stable foomatic-filters release
-%{__rm} $RPM_BUILD_ROOT%{_cups_serverbin}/filter/foomatic-rip \
- $RPM_BUILD_ROOT%{_mandir}/man1/foomatic-rip.1
-
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_cups_serverbin}/filter/bannertopdf
%attr(755,root,root) %{_cups_serverbin}/filter/commandtoescpx
%attr(755,root,root) %{_cups_serverbin}/filter/commandtopclx
+%attr(755,root,root) %{_cups_serverbin}/filter/foomatic-rip
%attr(755,root,root) %{_cups_serverbin}/filter/gstopxl
%attr(755,root,root) %{_cups_serverbin}/filter/gstoraster
%attr(755,root,root) %{_cups_serverbin}/filter/imagetopdf
%{_datadir}/cups/ppdc/escp.h
%{_datadir}/cups/ppdc/pcl.h
%{_datadir}/ppd/cupsfilters
+%{_mandir}/man1/foomatic-rip.1*
%files libs
%defattr(644,root,root,755)