2014-05-20 20:28:54 +00:00
|
|
|
%global subname oiio
|
2015-01-22 14:22:05 +00:00
|
|
|
#global beta beta1
|
2014-05-20 20:28:54 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
Name: OpenImageIO
|
2015-01-28 18:34:28 +00:00
|
|
|
Version: 1.5.11
|
2015-02-04 13:08:04 +00:00
|
|
|
Release: 2%{?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
|
|
|
|
|
2014-05-20 20:28:54 +00:00
|
|
|
Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}/%{subname}-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-11-06 16:56:34 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
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
|
2014-11-14 14:42:44 +00:00
|
|
|
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}
|
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
|
2014-08-01 13:44:48 +00:00
|
|
|
-DNOTHREADS:BOOL=FALSE \
|
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.*
|
2014-05-20 20:28:54 +00:00
|
|
|
%{_libdir}/libOpenImageIO_Util.so.*
|
2011-07-28 01:39:14 +00:00
|
|
|
%{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
|
2014-05-20 20:28:54 +00:00
|
|
|
%{_libdir}/libOpenImageIO_Util.so
|
2011-07-28 01:39:14 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
|
2011-08-05 00:41:29 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
%changelog
|
2015-02-04 13:08:04 +00:00
|
|
|
* Wed Feb 04 2015 Petr Machata <pmachata@redhat.com> - 1.5.11-2
|
|
|
|
- Bump for rebuild.
|
|
|
|
|
2015-01-28 18:34:28 +00:00
|
|
|
* Wed Jan 28 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.11-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2015-01-27 17:33:20 +00:00
|
|
|
* Tue Jan 27 2015 Richard Shaw <hobbes1069@gmail.com> - 1.5.10-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2015-01-27 17:00:54 +00:00
|
|
|
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.4.16-2
|
|
|
|
- Rebuild for boost 1.57.0
|
|
|
|
|
2015-01-22 14:22:05 +00:00
|
|
|
* Thu Jan 22 2015 Richard Shaw <hobbes1069@gmail.com> - 1.4.16-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2014-11-26 14:57:20 +00:00
|
|
|
* Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.4.15-2
|
|
|
|
- rebuild (openexr)
|
|
|
|
|
2014-11-25 13:55:32 +00:00
|
|
|
* Tue Nov 25 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.15-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2014-11-14 14:42:44 +00:00
|
|
|
* Fri Nov 14 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.14-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2014-09-05 14:48:03 +00:00
|
|
|
* Fri Sep 5 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-4
|
|
|
|
- Rebuild for Field3D 1.4.3.
|
|
|
|
|
2014-09-04 15:46:34 +00:00
|
|
|
* Thu Sep 04 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4.12-3
|
|
|
|
- Rebuild for pugixml 1.4
|
|
|
|
|
2014-08-15 18:57:58 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-01 13:44:48 +00:00
|
|
|
* Fri Aug 1 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
2014-06-06 22:58:45 +00:00
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-23 10:29:53 +00:00
|
|
|
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.4.7-3
|
|
|
|
- Rebuild for boost 1.55.0
|
|
|
|
|
2014-05-23 09:41:12 +00:00
|
|
|
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.4.7-2
|
|
|
|
- rebuild for boost 1.55.0
|
|
|
|
|
2014-05-20 20:28:54 +00:00
|
|
|
* Mon May 19 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.7-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
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
|