%bcond_without static_libs # don't build static libraries
%bcond_without tbb # Threading Building Blocks
#
-%ifarch i486
+%ifarch i386 i486
# https://github.com/OpenImageIO/oiio/issues/583
%undefine with_tbb
%endif
+%ifnarch %{ix86} %{x8664} %{arm} ia64 ppc ppc64
+%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.2.3
-Release: 3
+Release: 6
License: BSD
Group: Libraries
Source0: https://github.com/OpenImageIO/oiio/tarball/Release-%{version}/%{name}-%{version}.tar.gz
install -d build
cd build
%cmake ../src \
+%ifarch i386 i486
+ -DNOTHREADS=1 \
+%endif
-DEMBEDPLUGINS=OFF \
-DOPENJPEG_INCLUDE_DIR=%{_includedir}/openjpeg-1.5 \
-DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \