[libgnomeprint22] Include stdio.h to have FILE defined
mkasik
mkasik at fedoraproject.org
Wed Nov 30 12:51:50 UTC 2011
commit 76b2d7d9549e88a026eabe1f4b9321cb5166b00e
Author: Marek Kasik <mkasik at redhat.com>
Date: Wed Nov 30 13:51:17 2011 +0100
Include stdio.h to have FILE defined
Include stdio.h in gnome-print-cups-transport.c.
libgnomeprint22-stdio.patch | 10 ++++++++++
libgnomeprint22.spec | 7 ++++++-
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/libgnomeprint22-stdio.patch b/libgnomeprint22-stdio.patch
new file mode 100644
index 0000000..bbe0320
--- /dev/null
+++ b/libgnomeprint22-stdio.patch
@@ -0,0 +1,10 @@
+--- libgnomeprint-2.18.8/libgnomeprint/modules/cups/gnome-print-cups-transport.c 2010-02-09 13:32:51.000000000 +0100
++++ libgnomeprint-2.18.8/libgnomeprint/modules/cups/gnome-print-cups-transport.c 2011-11-30 11:57:39.000000000 +0100
+@@ -36,6 +36,7 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <locale.h>
++#include <stdio.h>
+
+ #include <cups/cups.h>
+ #include <libgnomeprint/gnome-print.h>
diff --git a/libgnomeprint22.spec b/libgnomeprint22.spec
index c3a27a8..245ebd8 100644
--- a/libgnomeprint22.spec
+++ b/libgnomeprint22.spec
@@ -3,12 +3,13 @@
Summary: Printing library for GNOME
Name: libgnomeprint22
Version: 2.18.8
-Release: 2%{?dist}
+Release: 3%{?dist}
License: LGPLv2+ and BSD
# BSD applies to ttsubset code that was taken from STSF
Group: System Environment/Base
Source: http://download.gnome.org/sources/libgnomeprint/2.18/libgnomeprint-%{version}.tar.bz2
URL: http://www.gnome.org
+Patch0: libgnomeprint22-stdio.patch
Requires: urw-fonts
Requires: ghostscript
@@ -59,6 +60,7 @@ want to use the GNOME desktop environment.
%prep
%setup -q -n libgnomeprint-%{version}
+%patch0 -p1 -b .stdio
# Convert to utf-8
for file in NEWS; do
@@ -98,6 +100,9 @@ find $RPM_BUILD_ROOT -name *.la -exec rm {} \;
%{_datadir}/gtk-doc/html/libgnomeprint
%changelog
+* Wed Nov 30 2011 Marek Kasik <mkasik at redhat.com> - 2.18.8-3
+- Include stdio.h to have FILE defined in gnome-print-cups-transport.c
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.18.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list