%define minor 1.2 %define major 0 %define libname %mklibname %{name} %{minor} %{major} %define develname %mklibname %{name} -d Name: pfstools Version: 1.8.5 %define subrel 1 Release: %mkrel 1 Summary: Programs for handling high-dynamic range images Group: Graphics/Utilities License: GPLv2+ URL: http://pfstools.sourceforge.net/ Source0: http://sourceforge.net/projects/pfstools/files/%{name}/%{version}/%{name}-%{version}.tar.gz Patch1: pfstools-mDATA.patch Patch2: pfstools-1.7.0-bf1.patch Patch3: pfstools-1.7.0-gcc44.patch Patch4: pfstools-1.7-strcmp.patch Patch5: pfstools-1.7.0-debuginfo.patch Patch6: pfstools-1.8.5-wformat.patch BuildRequires: automake BuildRequires: libtool BuildRequires: texlive BuildRequires: qt4-devel BuildRequires: octave-devel BuildRequires: freeglut-devel BuildRequires: netpbm-devel BuildRequires: gdal-devel BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(OpenEXR) BuildRequires: pkgconfig(ImageMagick) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(xi) %description pfstools is a set of command line programs for reading, writing, manipulating and viewing high-dynamic range (HDR) images and video frames. All programs in the package exchange data using unix pipes and a simple generic HDR image format (pfs). The concept of the pfstools is similar to netpbm package for low-dynamic range images. %package -n %{libname} Summary: Libraries for HDR processing Group: System/Libraries License: LGPLv2+ %description -n %{libname} The lib(64)pfstools package contains a runtime library of functions for handling HDR graphics files. %package qt Summary: Qt-based viewer for HDR files Group: Graphics/Viewers %description qt The pfstools-qt package contains viewer programs based on qt4 for viewing HDR graphics files. %package glview Summary: GL-based viewer for HDR files Group: Graphics/Viewers %description glview The pfstools-glview package contains viewer programs based on OpenGL for viewing HDR graphics files. %package exr Summary: EXR file import for PFS tools Group: Graphics/Utilities %description exr The pfstools-exr package contains input and output filters for EXR files to and from the HDR graphics file format used in pfstools. %package imgmagick Summary: ImageMagick file import for PFS tools Group: Graphics/Utilities %description imgmagick The pfstools-imgmagick package contains input and output filters based in ImageMagick to and from the HDR graphics file format used in pfstools. %package octave Summary: Octave interaction with PFS tools Group: Graphics/Utilities %description octave The pfstools-octave package contains programs to process red, green and blue channels or luminance channels in pfs stream using Octave. %package gdal Summary: PFS Tools using the GDAL library to handle GIS information Group: Graphics/Utilities %description gdal The pfstools-gdal package contains programs which can handle GIS information using the GDAL library. %package -n %{develname} Summary: Files for development with PFS tools Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{develname} The lib(64)pfstools-devel package contains the header files and link libraries, etc., for developing programs which can handle HDR graphics files. %prep %setup -q %apply_patches %build # Remove the following once the patches for configure.ac and Makefile.am # are not necessary anymore. autoreconf -vfi %configure2_5x \ --disable-static \ --disable-dependency-tracking %make %install %makeinstall_std # we don't want these find %{buildroot} -name '*.la' -delete # nuke unpackaged files find %{buildroot} -name 'pfsinjpeghdr.1' -delete find %{buildroot} -name 'pfsoutjpeghdr.1' -delete %files %doc README TODO doc/faq.txt %{_bindir}/pfsabsolute %{_bindir}/pfscat %{_bindir}/pfsclamp %{_bindir}/pfscut %{_bindir}/pfsextractchannels %{_bindir}/pfsdisplayfunction %{_bindir}/pfsflip %{_bindir}/pfsgamma %{_bindir}/pfsin %{_bindir}/pfsindcraw %{_bindir}/pfsinmulti %{_bindir}/pfsinpfm %{_bindir}/pfsinppm %{_bindir}/pfsinrgbe %{_bindir}/pfsintiff %{_bindir}/pfsout %{_bindir}/pfsoutffmpeg %{_bindir}/pfsouthdrhtml %{_bindir}/pfsoutpfm %{_bindir}/pfsoutppm %{_bindir}/pfsoutrgbe %{_bindir}/pfsouttiff %{_bindir}/pfspad %{_bindir}/pfspanoramic %{_bindir}/pfsrotate %{_bindir}/pfssize %{_bindir}/pfstag %{_datadir}/pfstools/hdrhtml_c_b2.csv %{_datadir}/pfstools/hdrhtml_c_b3.csv %{_datadir}/pfstools/hdrhtml_c_b4.csv %{_datadir}/pfstools/hdrhtml_c_b5.csv %{_datadir}/pfstools/hdrhtml_default_templ/ %{_datadir}/pfstools/hdrhtml_hdrlabs_templ/ %{_datadir}/pfstools/hdrhtml_t_b2.csv %{_datadir}/pfstools/hdrhtml_t_b3.csv %{_datadir}/pfstools/hdrhtml_t_b4.csv %{_datadir}/pfstools/hdrhtml_t_b5.csv %{_mandir}/man1/pfsabsolute.1.xz %{_mandir}/man1/pfscat.1.xz %{_mandir}/man1/pfsclamp.1.xz %{_mandir}/man1/pfscut.1.xz %{_mandir}/man1/pfsdisplayfunction.1.xz %{_mandir}/man1/pfsextractchannels.1.xz %{_mandir}/man1/pfsflip.1.xz %{_mandir}/man1/pfsgamma.1.xz %{_mandir}/man1/pfsin.1.xz %{_mandir}/man1/pfsindcraw.1.xz %{_mandir}/man1/pfsinmulti.1.xz %{_mandir}/man1/pfsinpfm.1.xz %{_mandir}/man1/pfsinppm.1.xz %{_mandir}/man1/pfsinrgbe.1.xz %{_mandir}/man1/pfsintiff.1.xz %{_mandir}/man1/pfsout.1.xz %{_mandir}/man1/pfsoutffmpeg.1.xz %{_mandir}/man1/pfsouthdrhtml.1.xz %{_mandir}/man1/pfsoutpfm.1.xz %{_mandir}/man1/pfsoutppm.1.xz %{_mandir}/man1/pfsoutrgbe.1.xz %{_mandir}/man1/pfsouttiff.1.xz %{_mandir}/man1/pfspad.1.xz %{_mandir}/man1/pfspanoramic.1.xz %{_mandir}/man1/pfsrotate.1.xz %{_mandir}/man1/pfssize.1.xz %{_mandir}/man1/pfstag.1.xz %files -n %{libname} %{_libdir}/libpfs-%{minor}.so.%{major} %{_libdir}/libpfs-%{minor}.so.%{major}.* %files qt %{_bindir}/pfsv %{_bindir}/pfsview %{_mandir}/man1/pfsv.1.xz %{_mandir}/man1/pfsview.1.xz %files glview %{_bindir}/pfsglview %{_mandir}/man1/pfsglview.1.xz %files exr %{_bindir}/pfsinexr %{_bindir}/pfsoutexr %{_mandir}/man1/pfsinexr.1.xz %{_mandir}/man1/pfsoutexr.1.xz %files imgmagick %{_bindir}/pfsinimgmagick %{_bindir}/pfsoutimgmagick %{_mandir}/man1/pfsinimgmagick.1.xz %{_mandir}/man1/pfsoutimgmagick.1.xz %files octave %{_bindir}/pfsoctavelum %{_bindir}/pfsoctavergb %{_bindir}/pfsstat %{_libdir}/octave/*/site/oct/*/pfstools %{_datadir}/octave/*/site/m/pfstools %{_mandir}/man1/pfsoctavelum.1.xz %{_mandir}/man1/pfsoctavergb.1.xz %{_mandir}/man1/pfsstat.1.xz %files gdal %{_bindir}/pfsingdal %{_mandir}/man1/pfsingdal.1.xz %files -n %{develname} %doc doc/pfs_format_spec.pdf %{_libdir}/libpfs-%{minor}.so %{_libdir}/pkgconfig/pfs.pc %{_includedir}/pfs-%{minor} %changelog * Tue Jun 21 2016 shlomif <shlomif> 1.8.5-1.1.mga5 + Revision: 1037109 - Rebuild for the new libMagick++ * Tue Jan 27 2015 daviddavid <daviddavid> 1.8.5-1.mga5 + Revision: 812448 - imported package pfstools - based from Fedora's package - adapt for Mageia