%define major 1.2 %define libname %mklibname OpenImageIO %{major} %define develname %mklibname OpenImageIO -d Name: openimageio Version: 1.2.0 Release: %mkrel 12 Summary: Library for reading and writing images Group: System/Libraries License: BSD URL: https://sites.google.com/site/openimageio/home Source0: https://github.com/OpenImageIO/oiio/archive/Release-%{version}.tar.gz Patch0: OpenImageIO-1.2.0-dl.patch BuildRequires: cmake BuildRequires: boost-devel BuildRequires: glew-devel BuildRequires: qt4-devel BuildRequires: OpenEXR-devel BuildRequires: ilmbase-devel BuildRequires: python-devel BuildRequires: txt2man BuildRequires: png-devel BuildRequires: libtiff-devel BuildRequires: zlib-devel BuildRequires: jasper-devel BuildRequires: openjpeg-devel BuildRequires: libjpeg-devel BuildRequires: pugixml-devel BuildRequires: hdf5-devel BuildRequires: webp-devel Obsoletes: OpenImageIO < %{version} %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 -n %{libname} Summary: A library for reading and writing images Group: System/Libraries %description -n %{libname} OpenImageIO is a library for reading and writing images. %package -n %{develname} Summary: Development files for %{name} Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Development files for %{name} library. %prep %setup -qn oiio-Release-%{version} %patch0 -p1 # Remove bundled pugixml rm -f src/include/pugixml.hpp \ src/include/pugiconfig.hpp \ src/libutil/pugixml.cpp %build %cmake -DCMAKE_SKIP_RPATH:BOOL=TRUE \ -DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \ -DINCLUDE_INSTALL_DIR:PATH=/usr/include/OpenImageIO \ -DINSTALL_DOCS:BOOL=OFF \ -DSTOP_ON_WARNING=OFF \ -DUSE_EXTERNAL_PUGIXML:BOOL=ON \ ../src %make %install %makeinstall_std -C build # Move man pages to the right directory %__mkdir_p %{buildroot}%{_mandir}/man1 %__cp -a build/doc/*.1 %{buildroot}%{_mandir}/man1 %files %doc CHANGES LICENSE %{_bindir}/* %{python_sitearch}/OpenImageIO.so %{_mandir}/man1/* %files -n %{libname} %{_libdir}/libOpenImageIO.so.%{major}* %files -n %{develname} %doc src/doc/*.pdf %{_libdir}/libOpenImageIO.so %{_includedir}/* %changelog * Wed Oct 15 2014 umeabot <umeabot> 1.2.0-12.mga5 + Revision: 750496 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.2.0-11.mga5 + Revision: 683214 - Mageia 5 Mass Rebuild * Fri Sep 05 2014 luigiwalser <luigiwalser> 1.2.0-10.mga5 + Revision: 672251 - rebuild for glew * Sun Aug 24 2014 luigiwalser <luigiwalser> 1.2.0-9.mga5 + Revision: 666999 - rebuild for ilmbase and OpenEXR * Thu Aug 07 2014 fwang <fwang> 1.2.0-8.mga5 + Revision: 660835 - rebuild for new pugixml * Fri Apr 25 2014 akien <akien> 1.2.0-7.mga5 + Revision: 618074 - Rebuild for new OpenEXR and IlmBase * Sat Feb 15 2014 luigiwalser <luigiwalser> 1.2.0-6.mga5 + Revision: 592108 - rebuild for libwebp * Sat Feb 08 2014 barjac <barjac> 1.2.0-5.mga5 + Revision: 586737 - rebuild against boost-1.55 * Sat Oct 19 2013 umeabot <umeabot> 1.2.0-4.mga4 + Revision: 534418 - Mageia 4 Mass Rebuild * Thu Sep 12 2013 fwang <fwang> 1.2.0-3.mga4 + Revision: 477848 - rebuild for new openexr * Wed Jul 24 2013 sander85 <sander85> 1.2.0-2.mga4 + Revision: 457678 - Rebuild for new glew * Mon Jul 15 2013 fwang <fwang> 1.2.0-1.mga4 + Revision: 454647 - disable werror - update dl patch - new version 1.2.0 * Mon Jul 08 2013 fwang <fwang> 1.0.8-11.mga4 + Revision: 451208 - rebuild for new boost * Thu Jun 06 2013 fwang <fwang> 1.0.8-10.mga4 + Revision: 438301 - rebuild again for updated openjpeg * Thu Jun 06 2013 fwang <fwang> 1.0.8-9.mga4 + Revision: 438284 - rebuild for new openjpeg * Sun Jun 02 2013 fwang <fwang> 1.0.8-8.mga4 + Revision: 434729 - rebuild for new libpng * Thu Apr 11 2013 barjac <barjac> 1.0.8-7.mga3 + Revision: 409667 - rebuild for boost-1.53 * Sun Jan 13 2013 umeabot <umeabot> 1.0.8-6.mga3 + Revision: 362041 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Dec 20 2012 fwang <fwang> 1.0.8-5.mga3 + Revision: 332957 - rebuild for new boost * Sun Dec 02 2012 fwang <fwang> 1.0.8-4.mga3 + Revision: 325021 - rebuild for new openexr * Sun Oct 07 2012 fwang <fwang> 1.0.8-3.mga3 + Revision: 303247 - rebuild for new openjpeg * Tue Aug 21 2012 fwang <fwang> 1.0.8-2.mga3 + Revision: 282870 - rebuild for new glew * Tue Jul 31 2012 fwang <fwang> 1.0.8-1.mga3 + Revision: 276474 - new version 1.0.8 - rebuild for new glew * Tue May 29 2012 fwang <fwang> 1.0.4-2.mga3 + Revision: 249531 - rebuild for new boost * Fri May 25 2012 fwang <fwang> 1.0.4-1.mga3 + Revision: 236018 - fix upgrade from previous name - br jpeg - imported package openimageio