[icc_examin] Fix build with gcc47

Nicolas Chauvet kwizart at fedoraproject.org
Mon Jan 16 22:45:37 UTC 2012


commit d705b966f1e73fbe4015d50e3da1c39320a00fc4
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Mon Jan 16 23:45:26 2012 +0100

    Fix build with gcc47

 icc_examin-0.50-gcc47.patch |   22 ++++++++++++++++++++++
 icc_examin.spec             |    6 ++++++
 2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/icc_examin-0.50-gcc47.patch b/icc_examin-0.50-gcc47.patch
new file mode 100644
index 0000000..3ec3557
--- /dev/null
+++ b/icc_examin-0.50-gcc47.patch
@@ -0,0 +1,22 @@
+diff -up icc_examin-0.50/icc_list.h.gcc47 icc_examin-0.50/icc_list.h
+--- icc_examin-0.50/icc_list.h.gcc47	2011-03-24 14:08:07.000000000 +0100
++++ icc_examin-0.50/icc_list.h	2012-01-16 17:19:39.841577724 +0100
+@@ -31,6 +31,7 @@
+ #define ICC_LIST_H
+ 
+ #include <stddef.h> // size_t
++#include <unistd.h> // intptr_t
+ 
+ // data structures
+ // partitial in icc_speicher.h
+diff -up icc_examin-0.50/icc_modell_beobachter.cpp.gcc47 icc_examin-0.50/icc_modell_beobachter.cpp
+--- icc_examin-0.50/icc_modell_beobachter.cpp.gcc47	2008-03-07 07:54:07.000000000 +0100
++++ icc_examin-0.50/icc_modell_beobachter.cpp	2012-01-16 23:39:46.126563601 +0100
+@@ -32,6 +32,7 @@
+ 
+ #include <list>
+ #include <string>
++#include <unistd.h> // intptr_t
+ 
+ #include "icc_modell_beobachter.h"
+ 
diff --git a/icc_examin.spec b/icc_examin.spec
index 313402c..e3908ea 100644
--- a/icc_examin.spec
+++ b/icc_examin.spec
@@ -8,6 +8,7 @@ License:        GPLv2+
 URL:            http://www.behrmann.name
 Source0:        http://downloads.sourceforge.net/oyranos/icc_examin-%{version}.tar.bz2
 Patch0:         icc_examin-0.49-xdg.patch
+Patch1:         icc_examin-0.50-gcc47.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  desktop-file-utils
@@ -30,6 +31,9 @@ Requires:       oyranos >= 0.3.2
 Requires:       dejavu-sans-fonts
 Requires:       icc-profiles-openicc >= 1.3.0
 
+#compatibilty with other name
+Provides:       iccexamin = %{version}-%{release}
+
 
 
 %description
@@ -42,6 +46,7 @@ visualizations (vrml), video card gamma tables.
 %prep
 %setup -q
 %patch0 -p1 -b .xdg
+%patch1 -p1 -b .gcc47
 
 
 %build
@@ -88,6 +93,7 @@ update-desktop-database &> /dev/null  || :
 %{_datadir}/pixmaps/iccexamin.png
 %{_datadir}/pixmaps/hicolor/scalable/iccexamin.svg
 %{_datadir}/applications/icc_examin.desktop
+%{_mandir}/man1/iccexamin.1.*
 
 
 %changelog


More information about the scm-commits mailing list