-# TODO:
-# - man pages?
-#
# Conditional build:
%bcond_without static_libs # don't build static libraries
%bcond_without tbb # Threading Building Blocks
Summary(pl.UTF-8): Biblioteka do odczytu i zapisu obrazów
Name: OpenImageIO
Version: 1.0.7
-Release: 0.1
+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
BuildRequires: python-devel >= 1:2.6
BuildRequires: squish-devel >= 1.10
%{?with_tbb:BuildRequires: tbb-devel}
+BuildRequires: txt2man
BuildRequires: zlib-devel
Requires: ilmbase >= 1.0.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%ifarch i486
+%patch7 -p1
+%endif
%{__rm} -r src/dds.imageio/squish src/ptex.imageio/ptex
# name clash with iv
%{__mv} -f $RPM_BUILD_ROOT%{_bindir}/{iv,oiiv}
+%{__mv} -f $RPM_BUILD_ROOT%{_mandir}/man1/{iv,oiiv}.1
# installed as %doc
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/openimageio
%attr(755,root,root) %{_libdir}/softimage.imageio.so
%attr(755,root,root) %{_libdir}/targa.imageio.so
%attr(755,root,root) %{_libdir}/zfile.imageio.so
+%{_mandir}/man1/iconvert.1*
+%{_mandir}/man1/idiff.1*
+%{_mandir}/man1/igrep.1*
+%{_mandir}/man1/iinfo.1*
+%{_mandir}/man1/iprocess.1*
+%{_mandir}/man1/maketx.1*
+%{_mandir}/man1/oiiotool.1*
%files devel
%defattr(644,root,root,755)
%files iv
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/oiiv
+%{_mandir}/man1/oiiv.1*
%files -n python-OpenImageIO
%defattr(644,root,root,755)