diff --git a/OpenEXR_Viewers.spec b/OpenEXR_Viewers.spec index cd950db..e08b4ca 100644 --- a/OpenEXR_Viewers.spec +++ b/OpenEXR_Viewers.spec @@ -27,6 +27,8 @@ Source0: http://download.savannah.nongnu.org/releases/openexr/openexr_vie BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: openexr_viewers-2.0.1-dso.patch +# fix ftbfs due to missing header +Patch2: openexr_viewers-2.1.0-headers.patch BuildRequires: libtool @@ -76,6 +78,7 @@ This package contains documentation files for %{name}. %setup -q -n openexr_viewers-%{version} %patch1 -p1 -b .dso +%patch2 -p1 -b .header %if %{_lib} == lib64 sed -i -e 's|ACTUAL_PREFIX/lib/CTL|ACTUAL_PREFIX/lib64/CTL|' configure.ac diff --git a/openexr_viewers-2.1.0-headers.patch b/openexr_viewers-2.1.0-headers.patch new file mode 100644 index 0000000..ea4c931 --- /dev/null +++ b/openexr_viewers-2.1.0-headers.patch @@ -0,0 +1,13 @@ +diff -up openexr_viewers-2.1.0/exrdisplay/Makefile.am.headers openexr_viewers-2.1.0/exrdisplay/Makefile.am +--- openexr_viewers-2.1.0/exrdisplay/Makefile.am.headers 2014-01-31 10:09:46.514343641 -0600 ++++ openexr_viewers-2.1.0/exrdisplay/Makefile.am 2014-01-31 10:11:59.636924846 -0600 +@@ -44,7 +44,8 @@ noinst_HEADERS = \ + scaleImage.h \ + applyCtl.h \ + GlWindow3d.h \ +- GlWindow3d.cpp ++ GlWindow3d.cpp \ ++ namespaceAlias.h + + EXTRA_DIST = $(exrdisplay_SOURCES) +