|
|
7a63317 |
Name: OpenImageIO
|
|
|
6c9f5a1 |
Version: 1.2.0
|
|
|
4a3ef26 |
Release: 3%{?dist}
|
|
|
7a63317 |
Summary: Library for reading and writing images
|
|
|
7a63317 |
|
|
|
7a63317 |
Group: Development/Libraries
|
|
|
7a63317 |
License: BSD
|
|
|
7a63317 |
URL: https://sites.google.com/site/openimageio/home
|
|
|
7a63317 |
|
|
|
2f57d9f |
Source0: https://download.github.com/oiio-Release-%{version}.tar.gz
|
|
|
3bbc3b7 |
# Images for test suite
|
|
|
a0d96ee |
#Source1: oiio-images.tar.gz
|
|
|
3bbc3b7 |
Source101: FindTBB.cmake
|
|
|
527c815 |
|
|
|
6c9f5a1 |
Patch0: oiio-arm.patch
|
|
|
6c9f5a1 |
Patch1: oiio-ppc.patch
|
|
|
6c9f5a1 |
Patch2: oiio-s390.patch
|
|
|
67b5ae2 |
# https://github.com/OpenImageIO/oiio/pull/642
|
|
|
67b5ae2 |
Patch3: oiio-typedef.patch
|
|
|
7a63317 |
|
|
|
2f57d9f |
BuildRequires: cmake txt2man
|
|
|
e4810c4 |
BuildRequires: qt4-devel
|
|
|
2f57d9f |
BuildRequires: boost-devel
|
|
|
2f57d9f |
BuildRequires: glew-devel
|
|
|
2f57d9f |
BuildRequires: OpenEXR-devel ilmbase-devel
|
|
|
2f57d9f |
BuildRequires: python2-devel
|
|
|
48e2b68 |
BuildRequires: libpng-devel libtiff-devel openjpeg-devel libwebp-devel
|
|
|
2f57d9f |
BuildRequires: zlib-devel
|
|
|
2f57d9f |
BuildRequires: jasper-devel
|
|
|
7a63317 |
BuildRequires: pugixml-devel
|
|
|
cb02be2 |
#%ifarch x86_64
|
|
|
cb02be2 |
#BuildRequires: tbb-devel
|
|
|
cb02be2 |
#%endif
|
|
|
527c815 |
BuildRequires: hdf5-devel Field3D-devel
|
|
|
b8cbdd9 |
BuildRequires: OpenColorIO-devel
|
|
|
7a63317 |
|
|
|
66ec4f2 |
# We don't want to provide private python extension libs
|
|
|
66ec4f2 |
%{?filter_setup:
|
|
|
66ec4f2 |
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
66ec4f2 |
%filter_setup
|
|
|
66ec4f2 |
}
|
|
|
66ec4f2 |
|
|
|
7a63317 |
|
|
|
7a63317 |
%description
|
|
|
7a63317 |
OpenImageIO is a library for reading and writing images, and a bunch of related
|
|
|
7a63317 |
classes, utilities, and applications. Main features include:
|
|
|
7a63317 |
- Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
|
|
|
7a63317 |
writing 2D images that is format agnostic.
|
|
|
7a63317 |
- Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
|
|
|
7a63317 |
DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
|
|
|
7a63317 |
PNM/PPM/PGM/PBM, Field3d.
|
|
|
7a63317 |
- An ImageCache class that transparently manages a cache so that it can access
|
|
|
7a63317 |
truly vast amounts of image data.
|
|
|
2f57d9f |
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%package utils
|
|
|
2f57d9f |
Summary: Command line utilies for %{name}
|
|
|
2f57d9f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%description utils
|
|
|
2f57d9f |
Command-line tools to minipulate and get information on images using the
|
|
|
2f57d9f |
%{name} library.
|
|
|
2f57d9f |
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%package iv
|
|
|
2f57d9f |
Summary: %{name} based image viewer.
|
|
|
2f57d9f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%description iv
|
|
|
2f57d9f |
A really nice image viewer, iv, based on %{name} classes (and so will work with
|
|
|
2f57d9f |
any formats for which plugins are available).
|
|
|
7a63317 |
|
|
|
527c815 |
|
|
|
7a63317 |
%package devel
|
|
|
527c815 |
Summary: Documentation for %{name}
|
|
|
7a63317 |
Group: Development/Libraries
|
|
|
7a63317 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7a63317 |
|
|
|
7a63317 |
%description devel
|
|
|
7a63317 |
Development files for package %{name}
|
|
|
7a63317 |
|
|
|
7a63317 |
|
|
|
7a63317 |
%prep
|
|
|
2f57d9f |
%setup -q -n oiio-Release-%{version}
|
|
|
6c9f5a1 |
%patch0 -p1 -b .arm
|
|
|
6c9f5a1 |
%patch1 -p1 -b .ppc
|
|
|
6c9f5a1 |
#patch2 -p1 -b .s390
|
|
|
67b5ae2 |
%patch3 -p1 -b .typedef
|
|
|
7a63317 |
|
|
|
3bbc3b7 |
# Install FindTBB.cmake
|
|
|
3bbc3b7 |
install %{SOURCE101} src/cmake/modules/
|
|
|
3bbc3b7 |
|
|
|
7a63317 |
# Remove bundled pugixml
|
|
|
7a63317 |
rm -f src/include/pugixml.hpp \
|
|
|
7a63317 |
src/include/pugiconfig.hpp \
|
|
|
5371afc |
src/libutil/pugixml.cpp
|
|
|
527c815 |
|
|
|
1a39c4a |
# Remove bundled tbb
|
|
|
7a63317 |
rm -rf src/include/tbb
|
|
|
3bbc3b7 |
|
|
|
3bbc3b7 |
# Install test images
|
|
|
3bbc3b7 |
#rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images
|
|
|
3bbc3b7 |
#tar --strip-components=1 -xzf %{SOURCE1}
|
|
|
7a63317 |
|
|
|
7a63317 |
|
|
|
7a63317 |
%build
|
|
|
3bbc3b7 |
rm -rf build/linux && mkdir -p build/linux && pushd build/linux
|
|
|
527c815 |
# CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes
|
|
|
527c815 |
# CMAKE_INSTALL_RPATH to be cleared, which is the desiered result.
|
|
|
fdddaa9 |
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
fdddaa9 |
-DCMAKE_SKIP_RPATH:BOOL=TRUE \
|
|
|
7a63317 |
-DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
|
|
|
7a63317 |
-DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \
|
|
|
527c815 |
-DINSTALL_DOCS:BOOL=FALSE \
|
|
|
7a63317 |
-DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
|
|
|
03f891c |
-DUSE_TBB:BOOL=FALSE \
|
|
|
5d225ec |
%ifarch ppc ppc64
|
|
|
f84394c |
-DNOTHREADS:BOOL=TRUE \
|
|
|
f84394c |
%endif
|
|
|
3bbc3b7 |
../../src
|
|
|
7a63317 |
|
|
|
7a63317 |
make %{?_smp_mflags}
|
|
|
7a63317 |
|
|
|
7a63317 |
|
|
|
7a63317 |
%install
|
|
|
3bbc3b7 |
pushd build/linux
|
|
|
7a63317 |
make DESTDIR=%{buildroot} install
|
|
|
7a63317 |
|
|
|
7a63317 |
# Move man pages to the right directory
|
|
|
7a63317 |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
7a63317 |
cp -a doc/*.1 %{buildroot}%{_mandir}/man1
|
|
|
7a63317 |
|
|
|
7a63317 |
|
|
|
7a63317 |
%post -p /sbin/ldconfig
|
|
|
7a63317 |
%postun -p /sbin/ldconfig
|
|
|
7a63317 |
|
|
|
7a63317 |
|
|
|
527c815 |
%check
|
|
|
5d225ec |
# Not all tests pass on linux
|
|
|
3bbc3b7 |
#pushd build/linux && make test
|
|
|
527c815 |
|
|
|
527c815 |
|
|
|
7a63317 |
%files
|
|
|
7a63317 |
%doc CHANGES LICENSE
|
|
|
7a63317 |
%{_libdir}/libOpenImageIO.so.*
|
|
|
7a63317 |
%{python_sitearch}/OpenImageIO.so
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%files utils
|
|
|
2f57d9f |
%exclude %{_bindir}/iv
|
|
|
2f57d9f |
%{_bindir}/*
|
|
|
2f57d9f |
%exclude %{_mandir}/man1/iv.1.gz
|
|
|
2f57d9f |
%{_mandir}/man1/*.1.gz
|
|
|
2f57d9f |
|
|
|
2f57d9f |
%files iv
|
|
|
2f57d9f |
%{_bindir}/iv
|
|
|
2f57d9f |
%{_mandir}/man1/iv.1.gz
|
|
|
7a63317 |
|
|
|
7a63317 |
%files devel
|
|
|
7a63317 |
%doc src/doc/*.pdf
|
|
|
7a63317 |
%{_libdir}/libOpenImageIO.so
|
|
|
7a63317 |
%{_includedir}/*
|
|
|
7a63317 |
|
|
|
5371afc |
|
|
|
7a63317 |
%changelog
|
|
|
4a3ef26 |
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
|
|
|
4a3ef26 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4a3ef26 |
|
|
Petr Machata |
55ccc44 |
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.0-2
|
|
Petr Machata |
55ccc44 |
- Rebuild for boost 1.54.0
|
|
Petr Machata |
55ccc44 |
|
|
|
6c9f5a1 |
* Fri Jul 15 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.0-1
|
|
|
6c9f5a1 |
- Update to latest upstream release.
|
|
|
67b5ae2 |
- Add patch for more pedantic gcc 4.8.
|
|
|
6c9f5a1 |
|
|
|
05eae90 |
* Wed Jul 3 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.13-1
|
|
|
05eae90 |
- Update to latest bugfix release.
|
|
|
05eae90 |
|
|
|
cb02be2 |
* Mon Jul 1 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.11-1
|
|
|
cb02be2 |
- Update to lastest bugfix release.
|
|
|
cb02be2 |
- Upstream patch makes native spinlocks faster than TBB. TBB no longer needed.
|
|
|
cb02be2 |
|
|
|
71bc860 |
* Mon May 27 2013 Karsten Hopp <karsten@redhat.com> 1.1.10-4
|
|
|
71bc860 |
- modify ppc patch for current release
|
|
|
71bc860 |
|
|
Petr Machata |
83b6557 |
* Fri May 24 2013 Petr Machata <pmachata@redhat.com> - 1.1.10-3
|
|
Petr Machata |
83b6557 |
- Rebuild for TBB memory barrier bug
|
|
Petr Machata |
83b6557 |
|
|
|
0c096be |
* Mon May 20 2013 Dan HorĂ¡k <dan[at]danny.cz> - 1.1.10-2
|
|
|
0c096be |
- fix build on s390(x)
|
|
|
0c096be |
|
|
|
5d225ec |
* Tue Apr 23 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.10-1
|
|
|
5d225ec |
- Update to latest upstream release.
|
|
|
5d225ec |
|
|
|
3a13036 |
* Sun Mar 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-7
|
|
|
3a13036 |
- Add upstream patch to fix FTBFS on ARM (RHBZ 924932)
|
|
|
3a13036 |
|
|
Rex Dieter |
09c7d85 |
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> 1.1.3-6
|
|
Rex Dieter |
09c7d85 |
- rebuild (OpenEXR)
|
|
Rex Dieter |
09c7d85 |
|
|
|
2a87510 |
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-5
|
|
|
2a87510 |
- Rebuild for Boost-1.53.0
|
|
|
2a87510 |
|
|
|
68b74cf |
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-4
|
|
|
68b74cf |
- Rebuild for Boost-1.53.0
|
|
|
68b74cf |
|
|
|
7709c72 |
* Mon Jan 28 2013 Karsten Hopp <karsten@redhat.com> 1.1.3-3
|
|
|
7709c72 |
- update PPC patch, use power64 macro
|
|
|
7709c72 |
|
|
|
cdf8b4c |
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.1.3-2
|
|
|
cdf8b4c |
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
cdf8b4c |
|
|
|
2f57d9f |
* Mon Jan 14 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.3-1
|
|
|
2f57d9f |
- Update to latest upstream release.
|
|
|
2f57d9f |
- Separate utilities and library packages.
|
|
|
2f57d9f |
|
|
|
e022e03 |
* Fri Dec 28 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-3
|
|
|
e022e03 |
- Rebuild, see
|
|
|
e022e03 |
http://lists.fedoraproject.org/pipermail/devel/2012-December/175685.html
|
|
|
e022e03 |
|
|
|
768618c |
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 1.0.9-2
|
|
|
768618c |
- Rebuild for glew 1.9.0
|
|
|
768618c |
|
|
|
7a11365 |
* Sat Sep 22 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.9-1
|
|
|
7a11365 |
- Update to latest upstream release.
|
|
|
7a11365 |
|
|
|
ab84acc |
* Wed Aug 8 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.8-2
|
|
|
ab84acc |
- rebuild against boost-1.50
|
|
|
ab84acc |
|
|
|
c957a89 |
* Wed Aug 01 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-1
|
|
|
c957a89 |
- Update to latest upstream release.
|
|
|
c957a89 |
|
|
|
93f47c7 |
* Mon Jul 30 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-3
|
|
|
93f47c7 |
- Rebuild for updated libGLEW.
|
|
|
93f47c7 |
|
|
|
32db067 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
|
32db067 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
32db067 |
|
|
|
945f553 |
* Mon Jul 09 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-1
|
|
|
945f553 |
- Update to latest upstream release.
|
|
|
945f553 |
|
|
|
3bbc3b7 |
* Thu Jun 28 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.6-1
|
|
|
3bbc3b7 |
- Update to latest upstream release.
|
|
|
3bbc3b7 |
- Fix linking against TBB which broke at some point.
|
|
|
3bbc3b7 |
|
|
|
6933418 |
* Tue Jun 12 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.5-1
|
|
|
6933418 |
- Update to latest upstream release.
|
|
|
6933418 |
|
|
|
b8cbdd9 |
* Mon May 07 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-2
|
|
|
b8cbdd9 |
- Rebuild for updated libtiff.
|
|
|
b8cbdd9 |
- Add OpenColorIO to build requirements.
|
|
|
b8cbdd9 |
|
|
|
48e2b68 |
* Thu May 03 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-1
|
|
|
48e2b68 |
- Update to latest upstream release.
|
|
|
48e2b68 |
|
|
|
3bbc3b7 |
* Tue Apr 24 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.3-1
|
|
|
3bbc3b7 |
- Update to latest upstream release.
|
|
|
03f891c |
|
|
|
fdddaa9 |
* Fri Mar 02 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.0-1
|
|
|
fdddaa9 |
- Update to latest upstream release.
|
|
|
fdddaa9 |
|
|
|
989180a |
* Thu Jan 05 2012 Richard Shaw <hobbes1069@gmail.com> - 0.10.4-1
|
|
|
527c815 |
- Update to 0.10.4.
|
|
|
527c815 |
- Rebuild for GCC 4.7.0.
|
|
|
527c815 |
|
|
|
527c815 |
* Fri Dec 02 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
|
|
|
527c815 |
- Build against TBB library.
|
|
|
c3a3daf |
|
|
|
527c815 |
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
|
|
|
1a39c4a |
- Update to 0.10.3
|
|
|
1a39c4a |
- Rebuild for libpng 1.5.
|
|
|
527c815 |
- Fixed bulding against tbb library.
|
|
|
2a7b94c |
|
|
|
927d71d |
* Thu Aug 27 2011 Tom Callaway <spot@fedoraproject.org> - 0.10.2-1
|
|
|
1a39c4a |
- Update to 0.10.2
|
|
|
927d71d |
|
|
|
66ec4f2 |
* Thu Aug 04 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.1-2
|
|
|
5371afc |
- New upstream release.
|
|
|
66ec4f2 |
- Fix private shared object provides with python library.
|
|
|
5371afc |
|
|
|
7a63317 |
* Mon Jul 18 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-2
|
|
|
7a63317 |
- Disabled use of the TBB library.
|
|
|
5371afc |
- Moved headers to named directory.
|
|
|
7a63317 |
|
|
|
7a63317 |
* Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
|
|
|
7a63317 |
- Inital Release.
|