054dab
%global subname oiio
9e5834
#global beta beta1
054dab
7a6331
Name:           OpenImageIO
efd57a
Version:        1.6.16
efd57a
Release:        1%{?dist}
7a6331
Summary:        Library for reading and writing images
7a6331
7a6331
Group:          Development/Libraries
7a6331
License:        BSD
7a6331
URL:            https://sites.google.com/site/openimageio/home
7a6331
b9f52c
Source0:        https://github.com/%{name}/%{subname}/archive/Release-%{version}.tar.gz#/%{name}-%{version}.tar.gz
3bbc3b
# Images for test suite
a0d96e
#Source1:        oiio-images.tar.gz
527c81
33da6d
a03ab4
BuildRequires:  cmake gcc-c++
ebab20
BuildRequires:  txt2man
e4810c
BuildRequires:  qt4-devel
2f57d9
BuildRequires:  boost-devel
2f57d9
BuildRequires:  glew-devel
2f57d9
BuildRequires:  OpenEXR-devel ilmbase-devel
2f57d9
BuildRequires:  python2-devel
cdc5b4
BuildRequires:  libpng-devel libtiff-devel libjpeg-turbo-devel giflib-devel
49aa45
%if ! 0%{?rhel}
ebab20
BuildRequires:  libwebp-devel
ebab20
BuildRequires:  Field3D-devel
ebab20
%endif
ebab20
BuildRequires:  hdf5-devel
2f57d9
BuildRequires:  zlib-devel
2f57d9
BuildRequires:  jasper-devel
7a6331
BuildRequires:  pugixml-devel
fd7f92
BuildRequires:  opencv-devel
3392bf
BuildRequires:  LibRaw-devel
f1580b
BuildRequires:  openssl-devel
92eeec
92eeec
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
92eeec
# If an ABI incompatible update is done in one, the other also needs to be
92eeec
# rebuilt.
b8cbdd
BuildRequires:  OpenColorIO-devel
7a6331
66ec4f
# We don't want to provide private python extension libs
66ec4f
%{?filter_setup:
66ec4f
%filter_provides_in %{python_sitearch}/.*\.so$ 
66ec4f
%filter_setup
66ec4f
}
66ec4f
7a6331
7a6331
%description
7a6331
OpenImageIO is a library for reading and writing images, and a bunch of related
7a6331
classes, utilities, and applications. Main features include:
7a6331
- Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
7a6331
  writing 2D images that is format agnostic.
7a6331
- Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
7a6331
  DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
7a6331
  PNM/PPM/PGM/PBM, Field3d.
7a6331
- An ImageCache class that transparently manages a cache so that it can access
7a6331
  truly vast amounts of image data.
2f57d9
2f57d9
b9ab72
%package -n python-%{name}
b9ab72
Summary:        Python 2 bindings for %{name}
b9ab72
Requires:       %{name}%{?_isa} = %{version}-%{release}
b9ab72
b9ab72
%description -n python-%{name}
b9ab72
Python bindings for %{name}.
b9ab72
b9ab72
2f57d9
%package utils
92eeec
Summary:        Command line utilities for %{name}
2f57d9
Requires:       %{name}%{?_isa} = %{version}-%{release}
2f57d9
2f57d9
%description utils
92eeec
Command-line tools to manipulate and get information on images using the
2f57d9
%{name} library.
2f57d9
2f57d9
2f57d9
%package iv
92eeec
Summary:        %{name} based image viewer
2f57d9
Requires:       %{name}%{?_isa} = %{version}-%{release}
2f57d9
2f57d9
%description iv
c37941
A really nice image viewer, iv, based on %{name} classes (and so will work
c37941
with any formats for which plugins are available).
7a6331
527c81
7a6331
%package devel
527c81
Summary:        Documentation for %{name}
7a6331
Group:          Development/Libraries
7a6331
Requires:       %{name}%{?_isa} = %{version}-%{release}
7a6331
7a6331
%description devel
7a6331
Development files for package %{name}
7a6331
7a6331
7a6331
%prep
2f57d9
%setup -q -n oiio-Release-%{version}
3bbc3b
7a6331
# Remove bundled pugixml
e5a740
rm -f src/include/OpenImageIO/pugixml.hpp \
e5a740
      src/include/OpenImageIO/pugiconfig.hpp \
e5a740
      src/libutil/OpenImageIO/pugixml.cpp 
527c81
1a39c4
# Remove bundled tbb
7a6331
rm -rf src/include/tbb
3bbc3b
3bbc3b
# Install test images
3bbc3b
#rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images
3bbc3b
#tar --strip-components=1 -xzf %{SOURCE1}
7a6331
7a6331
7a6331
%build
3bbc3b
rm -rf build/linux && mkdir -p build/linux && pushd build/linux
527c81
# CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes
527c81
# CMAKE_INSTALL_RPATH to be cleared, which is the desiered result.
fdddaa
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
fdddaa
       -DCMAKE_SKIP_RPATH:BOOL=TRUE \
7a6331
       -DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
7a6331
       -DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \
527c81
       -DINSTALL_DOCS:BOOL=FALSE \
631720
       -DINSTALL_FONTS:BOOL=FALSE \
7a6331
       -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
f1580b
       -DUSE_OPENSSL:BOOL=TRUE \
5d225e
%ifarch ppc ppc64
8dcfcd
       -DNOTHREADS:BOOL=FALSE \
f84394
%endif
39a295
       -DVERBOSE=TRUE \
92eeec
       ../../
7a6331
7a6331
make %{?_smp_mflags}
7a6331
7a6331
7a6331
%install
3bbc3b
pushd build/linux
7a6331
make DESTDIR=%{buildroot} install
7a6331
7a6331
# Move man pages to the right directory
7a6331
mkdir -p %{buildroot}%{_mandir}/man1
92eeec
cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1
7a6331
7a6331
7a6331
%post -p /sbin/ldconfig
7a6331
%postun -p /sbin/ldconfig
7a6331
7a6331
527c81
%check
5d225e
# Not all tests pass on linux
3bbc3b
#pushd build/linux && make test
527c81
527c81
7a6331
%files
b9ab72
%{!?_licensedir:%global license %doc}
fd7f92
%license LICENSE
7099dd
%doc CHANGES
7a6331
%{_libdir}/libOpenImageIO.so.*
054dab
%{_libdir}/libOpenImageIO_Util.so.*
b9ab72
b9ab72
%files -n python-%{name}
7a6331
%{python_sitearch}/OpenImageIO.so
2f57d9
2f57d9
%files utils
2f57d9
%exclude %{_bindir}/iv
2f57d9
%{_bindir}/*
2f57d9
%exclude %{_mandir}/man1/iv.1.gz
2f57d9
%{_mandir}/man1/*.1.gz
2f57d9
2f57d9
%files iv
2f57d9
%{_bindir}/iv
2f57d9
%{_mandir}/man1/iv.1.gz
7a6331
7a6331
%files devel
7a6331
%doc src/doc/*.pdf
7a6331
%{_libdir}/libOpenImageIO.so
054dab
%{_libdir}/libOpenImageIO_Util.so
7a6331
%{_includedir}/*
7a6331
5371af
7a6331
%changelog
efd57a
* Tue Aug  2 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.16-1
efd57a
- Update to latest upstream release.
efd57a
fd656a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.15-2
fd656a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fd656a
45f765
* Fri Jul  1 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.15-1
45f765
- Update to latest upstream release.
45f765
889415
* Wed Jun  1 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.14-1
889415
- Update to latest upstream release.
889415
cdc5b4
* Sun May  1 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.13-1
cdc5b4
- Update to latest upstream release.
cdc5b4
- Change from openjpeg to libjpeg-turbo.
cdc5b4
Orion Poplawski bce3e0
* Tue Apr 26 2016 Orion Poplawski <orion@cora.nwra.com> - 1.6.12-3
Orion Poplawski bce3e0
- Rebuild for OpenCV 3.1
Orion Poplawski bce3e0
b7c678
* Mon Apr 11 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.12-2
b7c678
- Rebuild for updated Field3D.
b7c678
a03ab4
* Fri Apr  1 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.12-1
a03ab4
- Update to latest upstream release.
a03ab4
727ab2
* Tue Mar  1 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.11-1
727ab2
- Update to latest upstream release.
727ab2
842227
* Wed Feb  3 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.10-1
33da6d
- Update to latest upstream release.
33da6d
03f127
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-4
03f127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
03f127
Orion Poplawski 83f960
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 1.6.9-3
Orion Poplawski 83f960
- Rebuild for hdf5 1.8.16
Orion Poplawski 83f960
9e863a
* Thu Jan 14 2016 Adam Jackson <ajax@redhat.com> - 1.6.9-2
9e863a
- Rebuild for glew 1.13
9e863a
1471e4
* Wed Jan  6 2016 Richard Shaw <hobbes1069@gmail.com> - 1.6.9-1
1471e4
- Update to latest upstream release.
1471e4
f82529
* Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.6.8-2
f82529
- Rebuilt for libwebp soname bump
ba2d3e
- Use openssl, fixes BZ#1294602.
f82529
631720
* Wed Dec 23 2015 Richard Shaw <hobbes1069@gmail.com> - 1.6.8-1
631720
- Update to latest upstream release.
1471e4
- Use openssl, fixes BZ#1294602.
631720
3392bf
* Thu Dec 17 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.22-1
3392bf
- Update to latest upstream release.
3392bf
- Add LibRaw to build requirements.
3392bf
b9f52c
* Wed Dec  2 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.21-1
b9f52c
- Update to latest upstream release.
b9ab72
- Move python bindings to their own subpackage.
b9f52c
9ec49c
* Thu Oct 22 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.20-2
9ec49c
- Rebuild for updated pugixml.
9ec49c
fb70ce
* Mon Sep 28 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.20-1
fb70ce
- Update to latest upstream release.
fb70ce
3b4218
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1.5.18-3
3b4218
- Rebuilt for Boost 1.59
3b4218
2ece3f
* Wed Aug 05 2015 Jonathan Wakely <jwakely@redhat.com> 1.5.18-2
2ece3f
- Rebuilt for Boost 1.58
2ece3f
da7304
* Tue Aug  4 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.18-1
da7304
- Update to latest upstream release.
da7304
08e802
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.17-3
08e802
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
08e802
78e641
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.5.17-2
78e641
- rebuild for Boost 1.58
78e641
7099dd
* Thu Jul 16 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.17-1
7099dd
- Update to latest upstream release.
7099dd
87413e
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.14-4
87413e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
87413e
Orion Poplawski 619759
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.5.14-3
Orion Poplawski 619759
- Rebuild for hdf5 1.8.15
Orion Poplawski 619759
c73bc3
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5.14-2
c73bc3
- Rebuilt for GCC 5 C++11 ABI change
c73bc3
9af888
* Wed Apr 15 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.14-1
9af888
- Update to latest upstream release.
9af888
a37eb4
* Wed Mar 11 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.13-1
a37eb4
- Update to latest upstream release.
a37eb4
Orion Poplawski fde9b0
* Sat Feb 21 2015 Orion Poplawski <orion@cora.nwra.com> - 1.5.12-3
Orion Poplawski fde9b0
- Rebuild for undefined symbols
Orion Poplawski fde9b0
49aa45
* Thu Feb 12 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.12-2
fd7f92
- Update to latest upstream release.
fd7f92
- Add opencv optional dependency.
fd7f92
- Use new license rpmbuild macro.
49aa45
- Fix broken conditional which prevented Field3D from being required.
fd7f92
2c535f
* Wed Feb 11 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.11-3
2c535f
- Rebuild for Field3D.
2c535f
Petr Machata 4646c8
* Wed Feb 04 2015 Petr Machata <pmachata@redhat.com> - 1.5.11-2
Petr Machata 4646c8
- Bump for rebuild.
Petr Machata 4646c8
fa5af9
* Wed Jan 28 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.11-1
fa5af9
- Update to latest upstream release.
fa5af9
1013df
* Tue Jan 27 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.10-1
1013df
- Update to latest upstream release.
1013df
Petr Machata 51a57d
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.4.16-2
Petr Machata 51a57d
- Rebuild for boost 1.57.0
Petr Machata 51a57d
9e5834
* Thu Jan 22 2015 Richard Shaw <hobbes1069@gmail.com> - 1.4.16-1
9e5834
- Update to latest upstream release.
9e5834
Rex Dieter 2d1578
* Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.4.15-2
Rex Dieter 2d1578
- rebuild (openexr)
Rex Dieter 2d1578
a476e3
* Tue Nov 25 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.15-1
a476e3
- Update to latest upstream release.
a476e3
c37941
* Fri Nov 14 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.14-1
c37941
- Update to latest upstream release.
c37941
dd68cd
* Fri Sep  5 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-4
dd68cd
- Rebuild for Field3D 1.4.3.
dd68cd
Orion Poplawski 338ba8
* Thu Sep 04 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4.12-3
Orion Poplawski 338ba8
- Rebuild for pugixml 1.4
Orion Poplawski 338ba8
dc67a3
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.12-2
dc67a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dc67a3
8dcfcd
* Fri Aug  1 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-1
8dcfcd
- Update to latest upstream release.
8dcfcd
c0f199
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-4
c0f199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c0f199
Petr Machata ce55f9
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.4.7-3
Petr Machata ce55f9
- Rebuild for boost 1.55.0
Petr Machata ce55f9
ff65de
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.4.7-2
ff65de
- rebuild for boost 1.55.0
ff65de
054dab
* Mon May 19 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.7-1
054dab
- Update to latest upstream release.
054dab
92eeec
* Tue Jan  7 2014 Richard Shaw <hobbes1069@gmail.com> - 1.3.10-1
92eeec
- Update to latest upstream release.
92eeec
- Add libgif as build requirement.
92eeec
Rex Dieter a0c1f5
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.2.3-3
Rex Dieter a0c1f5
- rebuild (openexr)
Rex Dieter a0c1f5
c82996
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.2.3-2
c82996
- rebuilt for GLEW 1.10
c82996
ebab20
* Wed Nov  6 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.3-1
ebab20
- Update to latest upstream release.
ebab20
- Fix ppc builds (BZ#1021977).
ebab20
- Add conditionals to build requirements for EPEL 6.
ebab20
ebab20
* Wed Oct  2 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.2-1
ebab20
- Update to latest upstream release.
ebab20
Rex Dieter d70c6b
* Sun Sep 08 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-2
Rex Dieter d70c6b
- rebuild (ilmbase/openexr)
Rex Dieter d70c6b
8b5f5d
* Thu Aug  8 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.1-1
8b5f5d
- Update to latest upstream release.
8b5f5d
4a3ef2
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
4a3ef2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4a3ef2
Petr Machata 55ccc4
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.0-2
Petr Machata 55ccc4
- Rebuild for boost 1.54.0