diff --git a/hugin-fix-gcc46.patch b/hugin-fix-gcc46.patch new file mode 100644 index 0000000..97f3752 --- /dev/null +++ b/hugin-fix-gcc46.patch @@ -0,0 +1,20 @@ + +# HG changeset patch +# User Bruno Postle +# Date 1295990053 0 +# Node ID 1fc6ad6e7c7ae679e3b8f96b6f4c36920f228138 +# Parent 9e1d0816a1edd95a985ad6fd62da9c8b7342efb5 +Fix for compilation with gcc-4.6.0 + +diff -r 9e1d0816a1ed -r 1fc6ad6e7c7a src/foreign/vigra/vigra/multi_iterator.hxx +--- a/src/foreign/vigra/vigra/multi_iterator.hxx Mon Jan 24 21:37:53 2011 +0100 ++++ b/src/foreign/vigra/vigra/multi_iterator.hxx Tue Jan 25 21:14:13 2011 +0000 +@@ -41,6 +41,7 @@ + #define VIGRA_MULTI_ITERATOR_HXX + + #include ++#include + #include "tinyvector.hxx" + #include "iteratortags.hxx" + + diff --git a/hugin.changes b/hugin.changes index b1b67b0..a383fe3 100644 --- a/hugin.changes +++ b/hugin.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Mar 22 08:12:00 UTC 2011 - idoenmez@novell.com + +- Add hugin-fix-gcc46.patch: fix gcc 4.6 compilation + +------------------------------------------------------------------- +Mon Mar 21 16:51:59 UTC 2011 - coolo@novell.com + +- licenses package is about to die + ------------------------------------------------------------------- Tue Dec 28 17:18:26 CET 2010 - sbrabec@suse.cz diff --git a/hugin.spec b/hugin.spec index 9292101..2296014 100644 --- a/hugin.spec +++ b/hugin.spec @@ -26,8 +26,7 @@ BuildRequires: python-wxWidgets wxWidgets-devel BuildRequires: python-wxGTK wxGTK-devel %endif %if %suse_version > 1020 -BuildRequires: fdupes licenses -Requires: licenses +BuildRequires: fdupes %endif License: GPLv2+ Group: Productivity/Graphics/Other @@ -40,9 +39,11 @@ Source: %{name}-%{version}.tar.bz2 #Source: %{name}-svn2008xxxx.tar.bz2 Source1: %{name}-svn-dummy Patch0: hugin-libpng14.patch +# PATCH-FIX-UPSTREAM hugin-fix-gcc46.patch idoenmez@suse.de -- Fix compilation with gcc 4.6 +Patch1: hugin-fix-gcc46.patch Url: http://hugin.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: licenses make +Requires: make # Optional package, if missing, it could cause unexpected errors: Requires: enblend-enfuse >= 3.2 # Optional third party package: @@ -80,6 +81,7 @@ Authors: %prep %setup -q %patch0 +%patch1 -p1 # For SVN snapshot: #setup -q -n %{name} # Rename Catalan in Spain to Catalan. @@ -115,12 +117,6 @@ make %{?jobs:-j%jobs} mv $RPM_BUILD_ROOT%{_datadir}/icons/gnome $RPM_BUILD_ROOT%{_datadir}/icons/hicolor %if %suse_version > 1020 %fdupes $RPM_BUILD_ROOT%{_datadir} -for FILE in COPYING LICENCE LICENCE_JHEAD LICENCE_VIGRA ; do - MD5SUM=$(md5sum $FILE | sed 's/ .*//') - if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then - ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE - fi -done %endif %clean