7a6331
Name:           OpenImageIO
5d225e
Version:        1.1.10
5d225e
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
2f57d9
Source0:        https://download.github.com/oiio-Release-%{version}.tar.gz
3bbc3b
# Images for test suite
a0d96e
#Source1:        oiio-images.tar.gz
3bbc3b
Source101:      FindTBB.cmake
527c81
5d225e
Patch0:         OpenImageIO-ppc.patch
5d225e
Patch1:         589.patch
5d225e
Patch2:         oiio-arm.patch
7a6331
2f57d9
BuildRequires:  cmake txt2man
e4810c
BuildRequires:  qt4-devel
2f57d9
BuildRequires:  boost-devel
2f57d9
BuildRequires:  glew-devel
2f57d9
BuildRequires:  OpenEXR-devel ilmbase-devel
2f57d9
BuildRequires:  python2-devel
48e2b6
BuildRequires:  libpng-devel libtiff-devel openjpeg-devel libwebp-devel
2f57d9
BuildRequires:  zlib-devel
2f57d9
BuildRequires:  jasper-devel
7a6331
BuildRequires:  pugixml-devel
03f891
%ifarch x86_64
527c81
BuildRequires:  tbb-devel
03f891
%endif
527c81
BuildRequires:  hdf5-devel Field3D-devel
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
2f57d9
%package utils
2f57d9
Summary:        Command line utilies for %{name}
2f57d9
Requires:       %{name}%{?_isa} = %{version}-%{release}
2f57d9
2f57d9
%description utils
2f57d9
Command-line tools to minipulate and get information on images using the
2f57d9
%{name} library.
2f57d9
2f57d9
2f57d9
%package iv
2f57d9
Summary:        %{name} based image viewer.
2f57d9
Requires:       %{name}%{?_isa} = %{version}-%{release}
2f57d9
2f57d9
%description iv
2f57d9
A really nice image viewer, iv, based on %{name} classes (and so will work with
2f57d9
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}
5d225e
%ifarch ppc ppc64
5d225e
%patch0 -p1 -b .ppc
2f57d9
%endif
5d225e
%patch1 -p1 -b .spinlocks
5d225e
%patch2 -p1 -b .arm
7a6331
3bbc3b
# Install FindTBB.cmake
3bbc3b
install %{SOURCE101} src/cmake/modules/
3bbc3b
7a6331
# Remove bundled pugixml
7a6331
rm -f src/include/pugixml.hpp \
7a6331
      src/include/pugiconfig.hpp \
5371af
      src/libutil/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 \
7a6331
       -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
03f891
       -DUSE_TBB:BOOL=FALSE \
5d225e
%ifarch ppc ppc64
f84394
       -DNOTHREADS:BOOL=TRUE \
f84394
%endif
3bbc3b
       ../../src
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
7a6331
cp -a 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
7a6331
%doc CHANGES LICENSE
7a6331
%{_libdir}/libOpenImageIO.so.*
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
7a6331
%{_includedir}/*
7a6331
5371af
7a6331
%changelog
5d225e
* Tue Apr 23 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.10-1
5d225e
- Update to latest upstream release.
5d225e
3a1303
* Sun Mar 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-7
3a1303
- Add upstream patch to fix FTBFS on ARM (RHBZ 924932)
3a1303
Rex Dieter 09c7d8
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> 1.1.3-6
Rex Dieter 09c7d8
- rebuild (OpenEXR)
Rex Dieter 09c7d8
2a8751
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-5
2a8751
- Rebuild for Boost-1.53.0
2a8751
68b74c
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.1.3-4
68b74c
- Rebuild for Boost-1.53.0
68b74c
7709c7
* Mon Jan 28 2013 Karsten Hopp <karsten@redhat.com> 1.1.3-3
7709c7
- update PPC patch, use power64 macro
7709c7
cdf8b4
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.1.3-2
cdf8b4
- rebuild due to "jpeg8-ABI" feature drop
cdf8b4
2f57d9
* Mon Jan 14 2013 Richard Shaw <hobbes1069@gmail.com> - 1.1.3-1
2f57d9
- Update to latest upstream release.
2f57d9
- Separate utilities and library packages.
2f57d9
e022e0
* Fri Dec 28 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-3
e022e0
- Rebuild, see
e022e0
  http://lists.fedoraproject.org/pipermail/devel/2012-December/175685.html
e022e0
768618
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 1.0.9-2
768618
- Rebuild for glew 1.9.0
768618
7a1136
* Sat Sep 22 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.9-1
7a1136
- Update to latest upstream release.
7a1136
ab84ac
* Wed Aug  8 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.8-2
ab84ac
- rebuild against boost-1.50
ab84ac
c957a8
* Wed Aug 01 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-1
c957a8
- Update to latest upstream release.
c957a8
93f47c
* Mon Jul 30 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-3
93f47c
- Rebuild for updated libGLEW.
93f47c
32db06
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
32db06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
32db06
945f55
* Mon Jul 09 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-1
945f55
- Update to latest upstream release.
945f55
3bbc3b
* Thu Jun 28 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.6-1
3bbc3b
- Update to latest upstream release.
3bbc3b
- Fix linking against TBB which broke at some point.
3bbc3b
693341
* Tue Jun 12 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.5-1
693341
- Update to latest upstream release.
693341
b8cbdd
* Mon May 07 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-2
b8cbdd
- Rebuild for updated libtiff.
b8cbdd
- Add OpenColorIO to build requirements.
b8cbdd
48e2b6
* Thu May 03 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.4-1
48e2b6
- Update to latest upstream release.
48e2b6
3bbc3b
* Tue Apr 24 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.3-1
3bbc3b
- Update to latest upstream release.
03f891
fdddaa
* Fri Mar 02 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.0-1
fdddaa
- Update to latest upstream release.
fdddaa
989180
* Thu Jan 05 2012 Richard Shaw <hobbes1069@gmail.com> - 0.10.4-1
527c81
- Update to 0.10.4.
527c81
- Rebuild for GCC 4.7.0.
527c81
527c81
* Fri Dec 02 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
527c81
- Build against TBB library.
c3a3da
527c81
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
1a39c4
- Update to 0.10.3
1a39c4
- Rebuild for libpng 1.5.
527c81
- Fixed bulding against tbb library.
2a7b94
927d71
* Thu Aug 27 2011 Tom Callaway <spot@fedoraproject.org> - 0.10.2-1
1a39c4
- Update to 0.10.2
927d71
66ec4f
* Thu Aug 04 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.1-2
5371af
- New upstream release.
66ec4f
- Fix private shared object provides with python library.
5371af
7a6331
* Mon Jul 18 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-2
7a6331
- Disabled use of the TBB library.
5371af
- Moved headers to named directory.
7a6331
7a6331
* Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
7a6331
- Inital Release.