Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: OpenImageIO
- Version: 0.10.0
- Release: 1%{?dist}
- Summary: Library for reading and writing images
- Group: Development/Libraries
- License: BSD
- URL: https://sites.google.com/site/openimageio/home
- Source0: %{name}-oiio-Release-%{version}-12-g8055b0f.tar.gz
- Patch0: OpenImageIO-0.10.0-soname_fix.patch
- BuildRequires: boost-devel glew-devel qt-devel OpenEXR-devel
- BuildRequires: python2-devel
- BuildRequires: libpng libtiff-devel
- BuildRequires: zlib-devel hdf5-devel jasper-devel
- %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 doc
- Summary: Documentation for %{name}
- License: BSD
- Group: Documentation
- BuildArch: noarch
- %description doc
- HTML Documentation for package %{name}
- %package devel
- Summary: Documentation for %{name}
- License: BSD
- Group: Development/Libraries
- Requires: %{name}%{?_isa} = %{version}-%{release}
- %description devel
- Development files for package %{name}
- %prep
- %setup -q -n %{name}-oiio-8055b0f
- %patch0 -p1
- %build
- mkdir -p build
- pushd build
- %cmake -DCMAKE_SKIP_RPATH:BOOL=TRUE \
- ../src
- make %{?_smp_mflags}
- %install
- pushd build
- make DESTDIR=%{buildroot} install
- popd
- # Remove these files as the %doc macro will take care of them
- rm -f %{buildroot}%{_usr}/CHANGES \
- %{buildroot}%{_usr}/INSTALL \
- %{buildroot}%{_usr}/LICENSE
- # Install libraries to the correct directory
- mkdir -p %{buildroot}%{python_sitearch}
- mv %{buildroot}%{_usr}/python/* %{buildroot}%{python_sitearch}
- rmdir %{buildroot}%{_usr}/python
- %ifarch x86_64
- mv %{buildroot}%{_usr}/lib/* %{buildroot}%{_usr}/lib64
- %endif
- # Move documentation so it will go in the right directory
- rm -rf $(pwd)/_tmpdoc && mkdir $(pwd)/_tmpdoc
- mv -f %{buildroot}%{_usr}/doc/* $(pwd)/_tmpdoc/
- %files
- %defattr(-,root,root,-)
- %doc CHANGES INSTALL LICENSE
- %{_bindir}/*
- %{_libdir}/libOpenImageIO.so.*
- %{python_sitearch}/OpenImageIO.so
- %files doc
- %defattr(-,root,root,-)
- %doc _tmpdoc/*
- %files devel
- %defattr(-,root,root,-)
- %{_libdir}/libOpenImageIO.so
- %{_includedir}/*
- %changelog
- * Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
- - Inital build.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement