2013-11-06 16:56:34 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
%global cmake %cmake28
|
|
|
|
%endif
|
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
Name: OpenImageIO
|
2014-01-09 16:25:29 +00:00
|
|
|
Version: 1.3.11
|
|
|
|
Release: 1%{?dist}
|
2011-07-28 01:39:14 +00:00
|
|
|
Summary: Library for reading and writing images
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: BSD
|
|
|
|
URL: https://sites.google.com/site/openimageio/home
|
|
|
|
|
2013-01-14 19:05:42 +00:00
|
|
|
Source0: https://download.github.com/oiio-Release-%{version}.tar.gz
|
2012-06-28 20:40:00 +00:00
|
|
|
# Images for test suite
|
2013-05-16 21:07:54 +00:00
|
|
|
#Source1: oiio-images.tar.gz
|
2012-01-05 19:21:41 +00:00
|
|
|
|
2013-07-15 20:13:26 +00:00
|
|
|
Patch0: oiio-arm.patch
|
|
|
|
Patch1: oiio-ppc.patch
|
|
|
|
Patch2: oiio-s390.patch
|
2014-01-13 14:35:31 +00:00
|
|
|
Patch3: oiio-cmake.patch
|
2011-07-28 01:39:14 +00:00
|
|
|
|
2013-11-06 16:56:34 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
BuildRequires: cmake28
|
|
|
|
%else
|
|
|
|
BuildRequires: cmake
|
|
|
|
%endif
|
|
|
|
BuildRequires: txt2man
|
2012-05-02 13:22:05 +00:00
|
|
|
BuildRequires: qt4-devel
|
2013-01-14 19:05:42 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
BuildRequires: OpenEXR-devel ilmbase-devel
|
|
|
|
BuildRequires: python2-devel
|
2014-01-09 16:25:29 +00:00
|
|
|
BuildRequires: libpng-devel libtiff-devel openjpeg-devel giflib-devel
|
2013-11-06 16:56:34 +00:00
|
|
|
%if 0%{?!rhel}
|
|
|
|
BuildRequires: libwebp-devel
|
|
|
|
BuildRequires: Field3D-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: hdf5-devel
|
2013-01-14 19:05:42 +00:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: jasper-devel
|
2011-07-28 01:39:14 +00:00
|
|
|
BuildRequires: pugixml-devel
|
2014-01-09 16:25:29 +00:00
|
|
|
|
|
|
|
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
|
|
|
|
# If an ABI incompatible update is done in one, the other also needs to be
|
|
|
|
# rebuilt.
|
2012-05-07 13:58:10 +00:00
|
|
|
BuildRequires: OpenColorIO-devel
|
2011-07-28 01:39:14 +00:00
|
|
|
|
2011-08-08 21:16:36 +00:00
|
|
|
# We don't want to provide private python extension libs
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenImageIO is a library for reading and writing images, and a bunch of related
|
|
|
|
classes, utilities, and applications. Main features include:
|
|
|
|
- Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
|
|
|
|
writing 2D images that is format agnostic.
|
|
|
|
- Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
|
|
|
|
DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
|
|
|
|
PNM/PPM/PGM/PBM, Field3d.
|
|
|
|
- An ImageCache class that transparently manages a cache so that it can access
|
|
|
|
truly vast amounts of image data.
|
2013-01-14 19:05:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package utils
|
2014-01-09 16:25:29 +00:00
|
|
|
Summary: Command line utilities for %{name}
|
2013-01-14 19:05:42 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description utils
|
2014-01-09 16:25:29 +00:00
|
|
|
Command-line tools to manipulate and get information on images using the
|
2013-01-14 19:05:42 +00:00
|
|
|
%{name} library.
|
|
|
|
|
|
|
|
|
|
|
|
%package iv
|
2014-01-09 16:25:29 +00:00
|
|
|
Summary: %{name} based image viewer
|
2013-01-14 19:05:42 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description iv
|
|
|
|
A really nice image viewer, iv, based on %{name} classes (and so will work with
|
|
|
|
any formats for which plugins are available).
|
2011-07-28 01:39:14 +00:00
|
|
|
|
2012-01-05 19:21:41 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
%package devel
|
2012-01-05 19:21:41 +00:00
|
|
|
Summary: Documentation for %{name}
|
2011-07-28 01:39:14 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for package %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-01-14 19:05:42 +00:00
|
|
|
%setup -q -n oiio-Release-%{version}
|
2013-07-15 20:13:26 +00:00
|
|
|
%patch0 -p1 -b .arm
|
|
|
|
%patch1 -p1 -b .ppc
|
|
|
|
#patch2 -p1 -b .s390
|
2014-01-13 14:35:31 +00:00
|
|
|
#patch3 -p1 -b .cmake
|
2012-06-28 20:40:00 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
# Remove bundled pugixml
|
|
|
|
rm -f src/include/pugixml.hpp \
|
|
|
|
src/include/pugiconfig.hpp \
|
2011-08-05 00:41:29 +00:00
|
|
|
src/libutil/pugixml.cpp
|
2012-01-05 19:21:41 +00:00
|
|
|
|
2011-11-05 21:23:41 +00:00
|
|
|
# Remove bundled tbb
|
2011-07-28 01:39:14 +00:00
|
|
|
rm -rf src/include/tbb
|
2012-06-28 20:40:00 +00:00
|
|
|
|
|
|
|
# Install test images
|
|
|
|
#rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images
|
|
|
|
#tar --strip-components=1 -xzf %{SOURCE1}
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-06-28 20:40:00 +00:00
|
|
|
rm -rf build/linux && mkdir -p build/linux && pushd build/linux
|
2012-01-05 19:21:41 +00:00
|
|
|
# CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes
|
|
|
|
# CMAKE_INSTALL_RPATH to be cleared, which is the desiered result.
|
2012-03-02 20:27:51 +00:00
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=TRUE \
|
2011-07-28 01:39:14 +00:00
|
|
|
-DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
|
|
|
|
-DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \
|
2012-01-05 19:21:41 +00:00
|
|
|
-DINSTALL_DOCS:BOOL=FALSE \
|
2011-07-28 01:39:14 +00:00
|
|
|
-DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
|
2012-03-13 21:30:55 +00:00
|
|
|
-DUSE_TBB:BOOL=FALSE \
|
2013-05-16 20:48:07 +00:00
|
|
|
%ifarch ppc ppc64
|
2012-06-13 20:25:50 +00:00
|
|
|
-DNOTHREADS:BOOL=TRUE \
|
2012-03-13 21:30:55 +00:00
|
|
|
%endif
|
2013-08-29 14:21:42 +00:00
|
|
|
-DVERBOSE=TRUE \
|
2014-01-09 16:25:29 +00:00
|
|
|
../../
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-06-28 20:40:00 +00:00
|
|
|
pushd build/linux
|
2011-07-28 01:39:14 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
# Move man pages to the right directory
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2014-01-09 16:25:29 +00:00
|
|
|
cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2012-01-05 19:21:41 +00:00
|
|
|
%check
|
2013-05-16 20:48:07 +00:00
|
|
|
# Not all tests pass on linux
|
2012-06-28 20:40:00 +00:00
|
|
|
#pushd build/linux && make test
|
2012-01-05 19:21:41 +00:00
|
|
|
|
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
%files
|
|
|
|
%doc CHANGES LICENSE
|
|
|
|
%{_libdir}/libOpenImageIO.so.*
|
|
|
|
%{python_sitearch}/OpenImageIO.so
|
2013-01-14 19:05:42 +00:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%exclude %{_bindir}/iv
|
|
|
|
%{_bindir}/*
|
|
|
|
%exclude %{_mandir}/man1/iv.1.gz
|
|
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
|
|
|
|
%files iv
|
|
|
|
%{_bindir}/iv
|
|
|
|
%{_mandir}/man1/iv.1.gz
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc src/doc/*.pdf
|
|
|
|
%{_libdir}/libOpenImageIO.so
|
|
|
|
%{_includedir}/*
|
|
|
|
|
2011-08-05 00:41:29 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
%changelog
|
2014-01-09 16:25:29 +00:00
|
|
|
* Tue Jan 7 2014 Richard Shaw <hobbes1069@gmail.com> - 1.3.10-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
- Add libgif as build requirement.
|
|
|
|
|
2013-11-27 16:50:46 +00:00
|
|
|
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.2.3-3
|
|
|
|
- rebuild (openexr)
|
|
|
|
|
2013-11-18 00:52:55 +00:00
|
|
|
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.2.3-2
|
|
|
|
- rebuilt for GLEW 1.10
|
|
|
|
|
2013-11-06 16:56:34 +00:00
|
|
|
* Wed Nov 6 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.3-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
- Fix ppc builds (BZ#1021977).
|
|
|
|
- Add conditionals to build requirements for EPEL 6.
|
|
|
|
|
|
|
|
* Wed Oct 2 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.2-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2013-09-09 01:52:09 +00:00
|
|
|
* Sun Sep 08 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-2
|
|
|
|
- rebuild (ilmbase/openexr)
|
|
|
|
|
2013-08-28 19:54:51 +00:00
|
|
|
* Thu Aug 8 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.1-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2013-08-02 23:04:52 +00:00
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-28 18:25:10 +00:00
|
|
|
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.0-2
|
|
|
|
- Rebuild for boost 1.54.0
|
|
|
|
|
2013-07-15 20:13:26 +00:00
|
|
|
* Fri Jul 15 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.0-1
|
|
|
|
- Update to latest upstream release.
|
2013-07-21 02:58:24 +00:00
|
|
|
- Add patch for more pedantic gcc 4.8.
|
2013-07-15 20:13:26 +00:00
|
|
|
|
2013-07-03 18:07:19 +00:00
|
|
|
* Wed Jul 3 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.13-1
|
|
|
|
- Update to latest bugfix release.
|
|
|
|
|
2013-07-01 15:57:41 +00:00
|
|
|
* Mon Jul 1 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.11-1
|
|
|
|
- Update to lastest bugfix release.
|
|
|
|
- Upstream patch makes native spinlocks faster than TBB. TBB no longer needed.
|
|
|
|
|
2013-05-27 15:21:41 +00:00
|
|
|
* Mon May 27 2013 Karsten Hopp <karsten@redhat.com> 1.1.10-4
|
|
|
|
- modify ppc patch for current release
|
|
|
|
|
2013-05-24 13:49:01 +00:00
|
|
|
* Fri May 24 2013 Petr Machata <pmachata@redhat.com> - 1.1.10-3
|
|
|
|
- Rebuild for TBB memory barrier bug
|
|
|
|
|
2013-05-20 10:27:39 +00:00
|
|
|
* Mon May 20 2013 Dan Horák <dan[at]danny.cz> - 1.1.10-2
|
|
|
|
- fix build on s390(x)
|
|
|
|
|
2013-05-16 20:48:07 +00:00
|
|
|
* Tue Apr 23 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.10-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2013-03-31 23:59:02 +00:00
|
|
|
* Sun Mar 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-7
|
|
|
|
- Add upstream patch to fix FTBFS on ARM (RHBZ 924932)
|
|
|
|
|
2013-03-10 21:23:20 +00:00
|
|
|
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> 1.1.3-6
|
|
|
|
- rebuild (OpenEXR)
|
|
|
|
|
2013-02-10 01:24:53 +00:00
|
|
|
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-5
|
|
|
|
- Rebuild for Boost-1.53.0
|
|
|
|
|
2013-02-09 22:08:32 +00:00
|
|
|
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-4
|
|
|
|
- Rebuild for Boost-1.53.0
|
|
|
|
|
2013-01-28 13:34:02 +00:00
|
|
|
* Mon Jan 28 2013 Karsten Hopp <karsten@redhat.com> 1.1.3-3
|
|
|
|
- update PPC patch, use power64 macro
|
|
|
|
|
2013-01-18 14:23:35 +00:00
|
|
|
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.1.3-2
|
|
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
|
2013-01-14 19:05:42 +00:00
|
|
|
* Mon Jan 14 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.3-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
- Separate utilities and library packages.
|
|
|
|
|
2012-12-28 17:33:24 +00:00
|
|
|
* Fri Dec 28 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-3
|
|
|
|
- Rebuild, see
|
|
|
|
http://lists.fedoraproject.org/pipermail/devel/2012-December/175685.html
|
|
|
|
|
2012-12-13 18:40:28 +00:00
|
|
|
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 1.0.9-2
|
|
|
|
- Rebuild for glew 1.9.0
|
|
|
|
|
2012-09-22 13:50:42 +00:00
|
|
|
* Sat Sep 22 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.9-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2012-08-08 21:00:21 +00:00
|
|
|
* Wed Aug 8 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.8-2
|
|
|
|
- rebuild against boost-1.50
|
|
|
|
|
2012-08-01 15:08:14 +00:00
|
|
|
* Wed Aug 01 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2012-07-30 12:59:12 +00:00
|
|
|
* Mon Jul 30 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-3
|
|
|
|
- Rebuild for updated libGLEW.
|
|
|
|
|
2012-07-18 13:54:22 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-10 01:54:29 +00:00
|
|
|
* Mon Jul 09 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2012-06-28 20:40:00 +00:00
|
|
|
* Thu Jun 28 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.6-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
- Fix linking against TBB which broke at some point.
|
|
|
|
|
2012-06-12 17:27:40 +00:00
|
|
|
* Tue Jun 12 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.5-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2012-05-07 13:58:10 +00:00
|
|
|
* Mon May 07 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-2
|
|
|
|
- Rebuild for updated libtiff.
|
|
|
|
- Add OpenColorIO to build requirements.
|
|
|
|
|
2012-05-03 13:21:13 +00:00
|
|
|
* Thu May 03 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2012-06-28 20:40:00 +00:00
|
|
|
* Tue Apr 24 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.3-1
|
|
|
|
- Update to latest upstream release.
|
2012-03-13 21:30:55 +00:00
|
|
|
|
2012-03-02 20:27:51 +00:00
|
|
|
* Fri Mar 02 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.0-1
|
|
|
|
- Update to latest upstream release.
|
2014-01-13 14:35:31 +00:00
|
|
|
|
|
|
|
* Thu Jan 05 2012 Richard Shaw <hobbes1069@gmail.com> - 0.10.4-1
|
|
|
|
- Update to 0.10.4.
|
|
|
|
- Rebuild for GCC 4.7.0.
|
|
|
|
|
|
|
|
* Fri Dec 02 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
|
|
|
|
- Build against TBB library.
|
|
|
|
|
|
|
|
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
|
|
|
|
- Update to 0.10.3
|
|
|
|
- Rebuild for libpng 1.5.
|
|
|
|
- Fixed bulding against tbb library.
|
|
|
|
|
|
|
|
* Thu Aug 27 2011 Tom Callaway <spot@fedoraproject.org> - 0.10.2-1
|
|
|
|
- Update to 0.10.2
|
|
|
|
|
|
|
|
* Thu Aug 04 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.1-2
|
|
|
|
- New upstream release.
|
|
|
|
- Fix private shared object provides with python library.
|
|
|
|
|
|
|
|
* Mon Jul 18 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-2
|
|
|
|
- Disabled use of the TBB library.
|
|
|
|
- Moved headers to named directory.
|
|
|
|
|
|
|
|
* Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
|
|
|
|
- Inital Release.
|