Add missing patch.

This commit is contained in:
Richard M. Shaw 2015-02-12 07:13:45 -06:00
parent 2c535ff852
commit ae9c86a2ed
2 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,8 @@ Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}
# Images for test suite
#Source1: oiio-images.tar.gz
Patch0: oiio-1.5.11-unused.patch
BuildRequires: cmake
BuildRequires: txt2man
BuildRequires: qt4-devel
@ -84,6 +86,7 @@ Development files for package %{name}
%prep
%setup -q -n oiio-Release-%{version}
%patch0 -p1
# Remove bundled pugixml
rm -f src/include/pugixml.hpp \

12
oiio-1.5.11-unused.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Naur oiio-Release-1.5.11.orig/src/ptex.imageio/ptex/PtexHalf.cpp oiio-Release-1.5.11/src/ptex.imageio/ptex/PtexHalf.cpp
--- oiio-Release-1.5.11.orig/src/ptex.imageio/ptex/PtexHalf.cpp 2015-01-28 11:57:02.000000000 -0600
+++ oiio-Release-1.5.11/src/ptex.imageio/ptex/PtexHalf.cpp 2015-02-11 21:09:16.670289293 -0600
@@ -80,7 +80,7 @@
return 1;
}
-static bool PtexHalfInitialized = PtexHalfInit();
+bool PtexHalfInitialized = PtexHalfInit();
/** Handle exceptional cases for half-to-float conversion */