%bcond_without static_libs # don't build static libraries
%bcond_without tbb # Threading Building Blocks
#
-
-%ifarch i486
-%undefine with_tbb
-%endif
-
Summary: Library for reading and writing images
Summary(pl.UTF-8): Biblioteka do odczytu i zapisu obrazów
Name: OpenImageIO
Version: 1.0.7
-Release: 2
+Release: 3
License: BSD
Group: Libraries
Source0: https://github.com/OpenImageIO/oiio/tarball/Release-%{version}#/%{name}-%{version}.tar.gz
Patch4: %{name}-system-ptex.patch
Patch5: %{name}-system-dpx.patch
Patch6: %{name}-system-libcineon.patch
+Patch7: no-gcc-atomics.patch
URL: https://sites.google.com/site/openimageio/home
BuildRequires: Field3D-devel
BuildRequires: OpenEXR-devel >= 1.6.1
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%ifarch i486
+%patch7 -p1
+%endif
%{__rm} -r src/dds.imageio/squish src/ptex.imageio/ptex
--- /dev/null
+--- OpenImageIO-oiio-e9fa4c7/src/include/thread.h~ 2012-07-09 08:28:46.000000000 +0200
++++ OpenImageIO-oiio-e9fa4c7/src/include/thread.h 2012-07-12 00:36:54.502654305 +0200
+@@ -102,11 +102,7 @@
+ # include <libkern/OSAtomic.h>
+ #endif
+
+-#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
+-#if !defined(__FreeBSD__) || defined(__x86_64__)
+-#define USE_GCC_ATOMICS
+-#endif
+-#endif
++#undef USE_GCC_ATOMICS
+
+ OIIO_NAMESPACE_ENTER
+ {