File enblend-enfuse.spec of Package enblend-enfuse

#
# spec file for package enblend-enfuse (Version 3.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           enblend-enfuse
Url:            http://enblend.sourceforge.net/
License:        GPL v2 or later; X11/MIT
Group:          Productivity/Graphics/Other
Summary:        Tool for Composing Images
Version:        3.2
Release:        1
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  OpenEXR-devel boost-devel freeglut-devel gcc-c++ glew-devel liblcms-devel libpng-devel libtiff-devel licenses plotutils
Requires:       licenses
Provides:       enblend = %{version}
Provides:       enfuse = %{version}
# package name for < openSUSE 11.1:
Obsoletes:      enblend < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%description
Enblend is a tool for compositing images using a Burt & Adelson
multiresolution spline. This technique tries to make the seams between
the input images invisible. The basic idea is that image features
should be blended across a transition zone, proportional in size to the
spatial frequency of the features. For example, objects like trees and
window panes have rapid changes in color. By blending these features in
a narrow zone, you cannot see the seam because the eye already expects
to see color changes at the edge of these features. Clouds and sky are
the opposite. These features must be blended across a wide transition
zone because any sudden change in color is immediately noticeable.



Authors:
--------
    Andrew Mihal <acmihal@users.sourceforge.net>
    Max Lyons

%prep
%setup -q
if test -f include/vigra_ext/PhaseCorrelation.h ; then
    if grep -iq "No commercial" include/vigra_ext/PhaseCorrelation.h ; then
	echo "PhaseCorrelation.h is not distributable! See bug #74354."
	exit 1
    fi
fi

%build
ACLOCAL="aclocal -I m4" autoreconf -f -i
%configure
# Work-around gcc crash in openSUSE == 10.3
# https://bugzilla.novell.com/show_bug.cgi?id=290663
if ! make -k %{?jobs:-j%jobs} ; then
    echo "Compilation failed. Trying without -g."
    sed -i 's/ -g\( \|$\)/\1/' src/Makefile Makefile
    make %{?jobs:-j%jobs}
fi

%install
%makeinstall
ln -sf /usr/share/doc/licenses/md5/$(md5sum COPYING | sed 's/ .*//') COPYING

%clean
rm -rf $RPM_BUILD_ROOT

%post
%install_info --info-dir=%{_infodir} %{_infodir}/enblend.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/enfuse.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/enfuse-focus-stacking.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/enblend.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/enfuse.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/enfuse-focus-stacking.info.gz

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO VIGRA_LICENSE
%{_bindir}/*
%doc %{_infodir}/*.*
%doc %{_mandir}/*/*.*

%changelog
* Wed Sep 10 2008 sbrabec@suse.cz
- Updated to version 3.2:
  * Project renamed to enblend-enfuse.
  * Fixed a bug in the NotifyingDirectionSelector's assignment
  operator.
  * Minor fixes.
  * Documentation fixes.
* Tue Jul 15 2008 sbrabec@suse.cz
- Updated to the current CVS snapshot:
  * enfuse code enhancements
  * vigra code cleanup
* Wed Apr 23 2008 sbrabec@suse.cz
- Enblend identifies itself as 3.1, set version tag to 3.0.99.x.
* Tue Apr 22 2008 sbrabec@suse.cz
- Updated to the current CVS snapshot:
  * Enfuse program for automatic multi-level exposure blending
  * Support for PNG and OpenEXR input files.
  * Correctly interpret alpha channel of float (HDR) images.
  * Output to jpg possible (8 bit only).
  * Compression can be specified with the new --compression option
* Wed Dec 12 2007 nadvornik@suse.cz
- fixed includes for gcc 4.3
* Tue Jul 24 2007 sbrabec@suse.cz
- Better work-around for internal compiler error (#290663).
* Tue Jul 10 2007 sbrabec@suse.cz
- Updated to version 3.0:
  * New, faster image processing algorithms for computing Gaussian
  and Laplacian pyramids.
  * Optional optimization of seam line placement to try to avoid
  mismatches and parallax errors in the image overlap region.
  * Masks can now be saved and loaded from files.
  * Checkpointing of partial results is now optional.
  * Optional blending using the CIECAM02 color appearance model.
  * Optional use of the graphics processor to speed up certain
  computations.
* Wed Apr 12 2006 sbrabec@suse.cz
- Removed non distributable PhaseCorrelation.h (#74354).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 02 2006 sbrabec@suse.cz
- Updated to version 2.5.
* Mon Apr 18 2005 mcihar@suse.cz
- update to 2.3
* Wed Mar 23 2005 mcihar@suse.cz
- remove non distributable header file (bug #74354)
* Mon Feb 07 2005 mcihar@suse.cz
- update to 2.2
* Tue Dec 21 2004 mcihar@suse.cz
- update to 2.1
* Fri Jul 30 2004 mcihar@suse.cz
- initial packaging
openSUSE Build Service is sponsored by