[rasterview: 6/6] 1.3.

Tim Waugh twaugh at fedoraproject.org
Fri May 20 11:13:43 UTC 2011


commit 8c22716aca5189c32c482b65d3010f51d3bb9f9d
Author: Tim Waugh <twaugh at redhat.com>
Date:   Fri May 20 11:28:03 2011 +0100

    1.3.

 rasterview-build.patch |   33 +++++++++++++++++++++++++++++++++
 rasterview.spec        |   14 ++++++++++++--
 2 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/rasterview-build.patch b/rasterview-build.patch
new file mode 100644
index 0000000..298a202
--- /dev/null
+++ b/rasterview-build.patch
@@ -0,0 +1,33 @@
+diff -up rasterview-1.3/error.c.build rasterview-1.3/error.c
+--- rasterview-1.3/error.c.build	2011-05-19 05:13:21.000000000 +0100
++++ rasterview-1.3/error.c	2011-05-20 11:24:28.879175330 +0100
+@@ -33,6 +33,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>
++#include <stdio.h>
+ #include <stdarg.h>
+ 
+ 
+diff -up rasterview-1.3/main.cxx.build rasterview-1.3/main.cxx
+--- rasterview-1.3/main.cxx.build	2011-05-20 11:24:34.194077292 +0100
++++ rasterview-1.3/main.cxx	2011-05-20 11:24:47.980823178 +0100
+@@ -25,6 +25,7 @@
+ //
+ 
+ #include "RasterView.h"
++#include <string.h>
+ #include <FL/Fl.H>
+ 
+ 
+diff -up rasterview-1.3/raster.c.build rasterview-1.3/raster.c
+--- rasterview-1.3/raster.c.build	2011-05-19 05:13:21.000000000 +0100
++++ rasterview-1.3/raster.c	2011-05-20 11:24:28.881175294 +0100
+@@ -59,6 +59,7 @@ extern void		_cupsRasterClearError(void)
+ #  include <winsock2.h>			/* for htonl() definition */
+ #else
+ #  include <unistd.h>
++#  include <netinet/in.h>
+ #endif /* WIN32 || __EMX__ */
+ 
+ 
diff --git a/rasterview.spec b/rasterview.spec
index 3601a42..6d9a086 100644
--- a/rasterview.spec
+++ b/rasterview.spec
@@ -1,7 +1,7 @@
 Name: rasterview
 Summary: CUPS raster file viewer
-Version: 1.2.1
-Release: 4%{?dist}
+Version: 1.3
+Release: 1%{?dist}
 License: GPLv2+
 Group: Applications/Publishing
 Source: http://www.easysw.com/~mike/rasterview/rasterview-%{version}.tar.gz
@@ -16,6 +16,7 @@ BuildRequires: zlib-devel
 BuildRequires: desktop-file-utils >= 0.2.92
 
 Patch1: rasterview-desktop-file.patch
+Patch2: rasterview-build.patch
 
 %description
 CUPS uses an intermediate format called raster for inkjet printers and
@@ -25,8 +26,13 @@ drivers.
 
 %prep
 %setup -q
+
+# Fixes for desktop file.
 %patch1 -p1 -b .desktop-file
 
+# Make it build.
+%patch2 -p1 -b .build
+
 %build
 %configure
 make
@@ -59,9 +65,13 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 %{_bindir}/rasterview
 %{_datadir}/icons/hicolor/*/apps/rasterview.png
 %{_datadir}/mimelnk/application/vnd.cups-raster.desktop
+%{_datadir}/mimelnk/image/pwg-raster.desktop
 %{_datadir}/applications/*.desktop
 
 %changelog
+* Fri May 20 2011 Tim Waugh <twaugh at redhat.com> - 1.3-1
+- 1.3.
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list