2011-07-28 01:39:14 +00:00
|
|
|
Name: OpenImageIO
|
2011-11-05 21:23:41 +00:00
|
|
|
Version: 0.10.3
|
2011-11-05 21:39:56 +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
|
|
|
|
|
2011-11-05 21:23:41 +00:00
|
|
|
Source0: https://download.github.com/%{name}-oiio-Release-%{version}-0-ge93cd33.tar.gz
|
2011-08-27 13:54:19 +00:00
|
|
|
Patch0: OpenImageIO-0.10.2-git_backports.patch
|
2011-07-28 01:39:14 +00:00
|
|
|
Patch1: OpenImageIO-0.10.0-atomic_test_fix.patch
|
2011-11-05 21:23:41 +00:00
|
|
|
Patch2: OpenImageIO-0.10.3-use_system_tbb.patch
|
|
|
|
Patch3: OpenImageIO-0.10.2-Z_BEST_COMPRESSION.patch
|
2011-07-28 01:39:14 +00:00
|
|
|
|
|
|
|
BuildRequires: boost-devel glew-devel qt-devel OpenEXR-devel ilmbase-devel
|
|
|
|
BuildRequires: python2-devel txt2man
|
|
|
|
BuildRequires: libpng libtiff-devel
|
|
|
|
BuildRequires: zlib-devel jasper-devel
|
|
|
|
BuildRequires: pugixml-devel
|
2011-11-05 21:39:56 +00:00
|
|
|
# Disable until it works properly
|
|
|
|
#BuildRequires: tbb-devel
|
2011-07-28 01:39:14 +00:00
|
|
|
# Field3D support is not considered stable at this time and no package
|
|
|
|
# currently exists for Fedora. Re-enable when fixed.
|
|
|
|
#BuildRequires: hdf5-devel Field3D-devel
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for package %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-11-05 21:23:41 +00:00
|
|
|
%setup -q -n %{name}-oiio-7d98ca6
|
2011-08-27 13:54:19 +00:00
|
|
|
%patch0 -p1 -b .backport
|
|
|
|
%patch1 -p1 -b .atomic
|
2011-11-05 21:39:56 +00:00
|
|
|
#patch2 -p1 -b .tbb
|
2011-11-05 21:23:41 +00:00
|
|
|
%patch3 -p1 -b .zlib
|
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
|
2011-11-05 21:23:41 +00:00
|
|
|
# Remove bundled tbb
|
2011-07-28 01:39:14 +00:00
|
|
|
rm -rf src/include/tbb
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p build
|
|
|
|
pushd build
|
|
|
|
%cmake -DCMAKE_SKIP_RPATH:BOOL=TRUE \
|
|
|
|
-DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
|
|
|
|
-DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \
|
|
|
|
-DINSTALL_DOCS:BOOL=OFF \
|
|
|
|
-DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
|
|
|
|
-DUSE_TBB:BOOL=OFF \
|
|
|
|
../src
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
2011-11-05 21:39:56 +00:00
|
|
|
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-2
|
2011-11-05 21:23:41 +00:00
|
|
|
- Update to 0.10.3
|
|
|
|
- Rebuild for libpng 1.5.
|
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.
|