rpms/PerceptualDiff/devel PerceptualDiff-1.0.2-gcc43.patch, NONE, 1.1 PerceptualDiff.spec, 1.7, 1.8

Chauvet Nicolas kwizart at fedoraproject.org
Mon Sep 1 17:16:23 UTC 2008


Author: kwizart

Update of /cvs/pkgs/rpms/PerceptualDiff/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18717

Modified Files:
	PerceptualDiff.spec 
Added Files:
	PerceptualDiff-1.0.2-gcc43.patch 
Log Message:
- Re-introduce gcc43 patch


PerceptualDiff-1.0.2-gcc43.patch:

--- NEW FILE PerceptualDiff-1.0.2-gcc43.patch ---
diff -up PerceptualDiff-1.0.2/RGBAImage.cpp.gcc43 PerceptualDiff-1.0.2/RGBAImage.cpp
--- PerceptualDiff-1.0.2/RGBAImage.cpp.gcc43	2008-07-10 08:13:08.000000000 +0200
+++ PerceptualDiff-1.0.2/RGBAImage.cpp	2008-09-01 17:28:53.000000000 +0200
@@ -18,6 +18,8 @@ if not, write to the Free Software Found
 
 #include "RGBAImage.h"
 #include "FreeImage.h"
+#include <stdio.h>
+#include <cstring>
 
 bool RGBAImage::WriteToFile(const char* filename)
 {
diff -up PerceptualDiff-1.0.2/CompareArgs.cpp.gcc43 PerceptualDiff-1.0.2/CompareArgs.cpp
--- PerceptualDiff-1.0.2/CompareArgs.cpp.gcc43	2008-07-10 08:13:08.000000000 +0200
+++ PerceptualDiff-1.0.2/CompareArgs.cpp	2008-09-01 17:10:08.000000000 +0200
@@ -17,6 +17,9 @@ if not, write to the Free Software Found
 #include "CompareArgs.h"
 #include "RGBAImage.h"
 #include <stdio.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 
 static const char* copyright = 
 "PerceptualDiff version 1.0.2, Copyright (C) 2006 Yangli Hector Yee\n\


Index: PerceptualDiff.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PerceptualDiff/devel/PerceptualDiff.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- PerceptualDiff.spec	1 Sep 2008 14:16:21 -0000	1.7
+++ PerceptualDiff.spec	1 Sep 2008 17:15:53 -0000	1.8
@@ -1,12 +1,15 @@
-Name:			PerceptualDiff          
+%define _default_patch_fuzz 2
+
+Name:			PerceptualDiff
 Version:		1.0.2
-Release:		2%{?dist}
+Release:		3%{?dist}
 Summary:		An image comparison utility
 
 Group:			Applications/Multimedia
 License:		GPLv2+
 URL:			http://pdiff.sourceforge.net
 Source:			http://downloads.sourceforge.net/pdiff/%{name}-%{version}.tar.gz
+Patch0:			PerceptualDiff-1.0.2-gcc43.patch
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: cmake
@@ -28,6 +31,7 @@
 sed -i 's/\r//' LPyramid.cpp
 sed -i 's/\r//' LPyramid.h
 chmod 0644 *
+%patch0 -p1 -b .gcc43
 
 
 %build
@@ -39,7 +43,6 @@
 	-DCMAKE_SKIP_RPATH:BOOL=ON \
 	-DBUILD_SHARED_LIBS:BOOL=ON \
 	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} .
-
 make VERBOSE=1 %{?_smp_mflags}
 
 
@@ -62,6 +65,9 @@
 
 
 %changelog
+* Mon Sep  1 2008 kwizart < kwizart at gmail.com > - 1.0.2-3
+- Re-introduce gcc43 patch
+
 * Mon Sep  1 2008 kwizart < kwizart at gmail.com > - 1.0.2-2
 - Add Missing BR freeimage-devel
 




More information about the fedora-extras-commits mailing list