2012-06-28 20:40:00 +00:00
|
|
|
%global githash1 g47d4346
|
|
|
|
%global githash2 f0a566a
|
|
|
|
%global githash3 9bf4356
|
2012-01-05 19:21:41 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
Name: OpenImageIO
|
2012-06-28 20:40:00 +00:00
|
|
|
Version: 1.0.6
|
2012-06-12 17:27:40 +00:00
|
|
|
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
|
|
|
|
|
2012-01-05 19:21:41 +00:00
|
|
|
Source0: https://download.github.com/%{name}-oiio-Release-%{version}-0-%{githash1}.tar.gz
|
2012-06-28 20:40:00 +00:00
|
|
|
# Images for test suite
|
|
|
|
#Source1: %{name}-oiio-images-%{githash3}.tar.gz
|
|
|
|
Source101: FindTBB.cmake
|
2012-01-05 19:21:41 +00:00
|
|
|
|
2012-03-02 20:27:51 +00:00
|
|
|
Patch0: OpenImageIO-1.0.0-use_external_tbb.patch
|
2012-03-04 23:10:14 +00:00
|
|
|
Patch1: OpenImageIO-1.0.0-tbb_include.patch
|
2012-06-12 19:03:59 +00:00
|
|
|
Patch2: OpenImageIO-ppc.patch
|
2011-07-28 01:39:14 +00:00
|
|
|
|
2012-05-01 17:45:09 +00:00
|
|
|
BuildRequires: cmake
|
2012-05-02 13:22:05 +00:00
|
|
|
BuildRequires: qt4-devel
|
2012-05-03 13:21:13 +00:00
|
|
|
BuildRequires: boost-devel glew-devel OpenEXR-devel ilmbase-devel
|
2011-07-28 01:39:14 +00:00
|
|
|
BuildRequires: python2-devel txt2man
|
2012-05-03 13:21:13 +00:00
|
|
|
BuildRequires: libpng-devel libtiff-devel openjpeg-devel libwebp-devel
|
2011-07-28 01:39:14 +00:00
|
|
|
BuildRequires: zlib-devel jasper-devel
|
|
|
|
BuildRequires: pugixml-devel
|
2012-03-13 21:30:55 +00:00
|
|
|
%ifarch x86_64
|
2012-01-05 19:21:41 +00:00
|
|
|
BuildRequires: tbb-devel
|
2012-03-13 21:30:55 +00:00
|
|
|
%endif
|
2012-01-05 19:21:41 +00:00
|
|
|
BuildRequires: hdf5-devel Field3D-devel
|
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.
|
|
|
|
- A really nice image viewer, iv, also based on OpenImageIO classes (and so
|
|
|
|
will work with any formats for which plugins are available).
|
|
|
|
|
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
|
2012-01-05 19:21:41 +00:00
|
|
|
%setup -q -n %{name}-oiio-%{githash2}
|
2012-03-04 23:10:14 +00:00
|
|
|
%patch0 -p1 -b .exttbb
|
|
|
|
%patch1 -p1 -b .tbbinc
|
2012-06-12 19:03:59 +00:00
|
|
|
%patch2 -p1 -b .ppc
|
2011-07-28 01:39:14 +00:00
|
|
|
|
2012-06-28 20:40:00 +00:00
|
|
|
# Install FindTBB.cmake
|
|
|
|
install %{SOURCE101} src/cmake/modules/
|
|
|
|
|
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
|
|
|
%ifarch x86_64
|
2012-01-05 19:21:41 +00:00
|
|
|
-DUSE_TBB:BOOL=TRUE \
|
2012-03-02 20:27:51 +00:00
|
|
|
-DUSE_EXTERNAL_TBB=TRUE \
|
2012-03-13 21:30:55 +00:00
|
|
|
%else
|
|
|
|
-DUSE_TBB:BOOL=FALSE \
|
2012-06-13 20:25:50 +00:00
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64
|
|
|
|
-DNOTHREADS:BOOL=TRUE \
|
2012-03-13 21:30:55 +00:00
|
|
|
%endif
|
2012-06-28 20:40:00 +00:00
|
|
|
../../src
|
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
|
|
|
|
cp -a doc/*.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2012-01-05 19:21:41 +00:00
|
|
|
%check
|
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
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/libOpenImageIO.so.*
|
|
|
|
%{python_sitearch}/OpenImageIO.so
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%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
|
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 May 05 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.3-2
|
|
|
|
- Add cmake as BuildRequire.
|
|
|
|
- Add webp-devel for additional format support.
|
2012-04-19 18:00:03 +00:00
|
|
|
|
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.
|
|
|
|
|
2012-01-05 19:22:28 +00:00
|
|
|
* Thu Jan 05 2012 Richard Shaw <hobbes1069@gmail.com> - 0.10.4-1
|
2012-01-05 19:21:41 +00:00
|
|
|
- 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.
|
2011-11-20 14:55:53 +00:00
|
|
|
|
2012-01-05 19:21:41 +00:00
|
|
|
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-1
|
2011-11-05 21:23:41 +00:00
|
|
|
- Update to 0.10.3
|
|
|
|
- Rebuild for libpng 1.5.
|
2012-01-05 19:21:41 +00:00
|
|
|
- Fixed bulding against tbb library.
|
2011-11-05 19:09:09 +00:00
|
|
|
|
2011-08-27 13:54:19 +00:00
|
|
|
* Thu Aug 27 2011 Tom Callaway <spot@fedoraproject.org> - 0.10.2-1
|
2011-11-05 21:23:41 +00:00
|
|
|
- Update to 0.10.2
|
2011-08-27 13:54:19 +00:00
|
|
|
|
2011-08-08 21:16:36 +00:00
|
|
|
* Thu Aug 04 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.1-2
|
2011-08-05 00:41:29 +00:00
|
|
|
- New upstream release.
|
2011-08-08 21:16:36 +00:00
|
|
|
- Fix private shared object provides with python library.
|
2011-08-05 00:41:29 +00:00
|
|
|
|
2011-07-28 01:39:14 +00:00
|
|
|
* Mon Jul 18 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-2
|
|
|
|
- Disabled use of the TBB library.
|
2011-08-05 00:41:29 +00:00
|
|
|
- Moved headers to named directory.
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
* Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
|
|
|
|
- Inital Release.
|