pfstools/pfstools.spec

316 lines
8.2 KiB
RPMSpec
Raw Normal View History

2009-01-05 19:51:02 +00:00
Name: pfstools
Version: 1.7.0
Release: 8%{?dist}
2009-01-05 19:51:02 +00:00
Summary: Programs for handling high-dynamic range images
Group: Applications/Multimedia
License: GPLv2+
URL: http://pfstools.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{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
2009-01-05 19:51:02 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: automake
BuildRequires: libtool
BuildRequires: libtiff-devel
BuildRequires: openexr-devel
BuildRequires: octave-devel
BuildRequires: libGL-devel
BuildRequires: ImageMagick-devel
BuildRequires: freeglut-devel
BuildRequires: ImageMagick-c++-devel
BuildRequires: qt3-devel
BuildRequires: libXi-devel
BuildRequires: netpbm-devel
BuildRequires: texlive-latex
BuildRequires: gdal-devel
Requires: pfstools-libs = %{version}-%{release}
%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 libs
Summary: Libraries for HDR processing
Group: System Environment/Libraries
License: LGPLv2+
%description libs
The pfstools-libs package contains a runtime library of functions for
handling HDR graphics files.
%package qt
Summary: Qt-based viewer for HDR files
Group: Applications/Multimedia
Requires: pfstools-libs = %{version}-%{release}
%description qt
The pfstools-qt package contains viewer programs based on qt3 for
viewing HDR graphics files.
%package glview
Summary: GL-based viewer for HDR files
Group: Applications/Multimedia
Requires: pfstools-libs = %{version}-%{release}
%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: Applications/Multimedia
Requires: pfstools-libs = %{version}-%{release}
%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: Applications/Multimedia
Requires: pfstools-libs = %{version}-%{release}
%description imgmagick
The pfstools-exr 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: Applications/Multimedia
%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: Applications/Multimedia
%description gdal
The pfstools-gdal package contains programs which can handle GIS information
using the GDAL library.
%package devel
Summary: Files for development with PFS tools
Group: Development/Libraries
Requires: pfstools-libs = %{version}-%{release}
%description devel
The netpbm-devel package contains the header files and link libraries,
etc., for developing programs which can handle HDR graphics files.
%prep
%setup -q
%patch1 -p1 -b .mDATA
%patch2 -p1 -b .bf1
%patch3 -p1 -b .gcc44
%patch4 -p1 -b .strcmp
%patch5 -p1 -b .debuginfo
# Remove the following once the patches for configure.ac and Makefile.am
# are not necessary anymore.
autoreconf -i
2009-01-05 19:51:02 +00:00
%build
%configure --disable-static --disable-dependency-tracking
2009-01-05 19:51:02 +00:00
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
make DESTDIR=$RPM_BUILD_ROOT "INSTALL=install -p" install
# XXX Nuke unpackaged files
{ cd ${RPM_BUILD_ROOT}
rm -f .%{_libdir}/libpfs-1.2.la
rm -f .%{_mandir}/man1/pfsinjpeghdr.1
rm -f .%{_mandir}/man1/pfsoutjpeghdr.1
}
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%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}/pfsoutpfm
%{_bindir}/pfsoutppm
%{_bindir}/pfsoutrgbe
%{_bindir}/pfsouttiff
%{_bindir}/pfspad
%{_bindir}/pfspanoramic
%{_bindir}/pfsrotate
%{_bindir}/pfssize
%{_bindir}/pfstag
%{_mandir}/man1/pfsabsolute.1.gz
%{_mandir}/man1/pfscat.1.gz
%{_mandir}/man1/pfsclamp.1.gz
%{_mandir}/man1/pfscut.1.gz
%{_mandir}/man1/pfsdisplayfunction.1.gz
%{_mandir}/man1/pfsextractchannels.1.gz
%{_mandir}/man1/pfsflip.1.gz
%{_mandir}/man1/pfsgamma.1.gz
%{_mandir}/man1/pfsin.1.gz
%{_mandir}/man1/pfsindcraw.1.gz
%{_mandir}/man1/pfsinmulti.1.gz
%{_mandir}/man1/pfsinpfm.1.gz
%{_mandir}/man1/pfsinppm.1.gz
%{_mandir}/man1/pfsinrgbe.1.gz
%{_mandir}/man1/pfsintiff.1.gz
%{_mandir}/man1/pfsout.1.gz
%{_mandir}/man1/pfsoutffmpeg.1.gz
%{_mandir}/man1/pfsoutpfm.1.gz
%{_mandir}/man1/pfsoutppm.1.gz
%{_mandir}/man1/pfsoutrgbe.1.gz
%{_mandir}/man1/pfsouttiff.1.gz
%{_mandir}/man1/pfspad.1.gz
%{_mandir}/man1/pfspanoramic.1.gz
%{_mandir}/man1/pfsrotate.1.gz
%{_mandir}/man1/pfssize.1.gz
%{_mandir}/man1/pfstag.1.gz
%doc
%files libs
%defattr(-,root,root,-)
%{_libdir}/libpfs-1.2.so.0
%{_libdir}/libpfs-1.2.so.0.0.0
%files qt
%defattr(-,root,root,-)
%{_bindir}/pfsv
%{_bindir}/pfsview
%{_mandir}/man1/pfsv.1.gz
%{_mandir}/man1/pfsview.1.gz
%files glview
%defattr(-,root,root,-)
%{_bindir}/pfsglview
%{_mandir}/man1/pfsglview.1.gz
%files exr
%defattr(-,root,root,-)
%{_bindir}/pfsinexr
%{_bindir}/pfsoutexr
%{_mandir}/man1/pfsinexr.1.gz
%{_mandir}/man1/pfsoutexr.1.gz
%files imgmagick
%defattr(-,root,root,-)
%{_bindir}/pfsinimgmagick
%{_bindir}/pfsoutimgmagick
%{_mandir}/man1/pfsinimgmagick.1.gz
%{_mandir}/man1/pfsoutimgmagick.1.gz
%files octave
%defattr(-,root,root,-)
%{_bindir}/pfsoctavelum
%{_bindir}/pfsoctavergb
%{_bindir}/pfsstat
%{_libexecdir}/octave/*/site/oct/*/pfstools
2009-02-05 04:08:07 +00:00
%{_datadir}/octave/*/site/m/pfstools
2009-01-05 19:51:02 +00:00
%{_mandir}/man1/pfsoctavelum.1.gz
%{_mandir}/man1/pfsoctavergb.1.gz
%{_mandir}/man1/pfsstat.1.gz
%files gdal
%defattr(-,root,root,-)
%{_bindir}/pfsingdal
%{_mandir}/man1/pfsingdal.1.gz
%files devel
%defattr(-,root,root,-)
%doc doc/pfs_format_spec.pdf
%{_libdir}/libpfs-1.2.so
%{_libdir}/pkgconfig/pfs.pc
2009-02-05 04:08:07 +00:00
%{_includedir}/pfs-1.2
2009-01-05 19:51:02 +00:00
%changelog
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Jun 9 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.7.0-7
- Patch to generate useful debuginfo subpackage (#499912).
- Disable autotools dependency tracking during build for cleaner build logs
and possible slight build speedup.
* Sun May 10 2009 Ulrich Drepper <drepper@redhat.com> - 1.7.0-6
- fix up spec file. Remove unnecessary code.
- fix comparison of strings
* Mon Mar 23 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.7.0-5
- Add patch to fix building with GCC 4.4
2009-01-05 19:51:02 +00:00
2009-02-25 20:47:34 +00:00
* Wed Feb 25 2009 Ulrich Drepper <drepper@redhat.com> - 1.7.0-4
- recompile for hdf5 ABI change
2009-02-05 04:08:07 +00:00
* Wed Feb 4 2009 Ulrich Drepper <drepper@redhat.com> - 1.7.0-3
2009-02-25 20:47:34 +00:00
- add missing directories to spec file
2009-02-05 04:08:07 +00:00
2009-01-05 19:51:02 +00:00
* Mon Jan 5 2009 Ulrich Drepper <drepper@redhat.com> - 1.7.0-2
- Fix BuildRequires
* Fri Jan 1 2009 Ulrich Drepper <drepper@redhat.com> - 1.7.0-1
- update to most recent upstream release
- new subpackage pfstools-gdal for GIS data handling
- new program pfsdisplayfunction
* Fri Jan 1 2009 Ulrich Drepper <drepper@redhat.com> - 1.6.5-5
- add automake BuildRequires
* Wed Nov 5 2008 Ulrich Drepper <drepper@redhat.com> - 1.6.5-4
- ship more doc files
* Sun Oct 12 2008 Ulrich Drepper <drepper@redhat.com> - 1.6.5-3
- .spec file cleanups
- install Octave files without execution permission
* Wed Sep 03 2008 Manuel Wolfshant <wolfy@fedoraproject.org> - 1.6.5-2
- fix missing BR, Source URL, double inclusion of several files
- preserve timestamps
* Tue Aug 19 2008 Ulrich Drepper <drepper@redhat.com> - 1.6.5-1
- Initial package.