2007-04-16 04:31:26 +02:00
|
|
|
#
|
2011-03-21 21:08:04 +01:00
|
|
|
# spec file for package hugin
|
2007-04-16 04:31:26 +02:00
|
|
|
#
|
2014-04-24 11:20:46 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-04-16 04:31:26 +02:00
|
|
|
#
|
2008-10-08 11:47:41 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-04-16 04:31:26 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-10 20:06:53 +01:00
|
|
|
|
2007-04-16 04:31:26 +02:00
|
|
|
Name: hugin
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
2013-01-16 15:24:28 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
2014-10-13 20:53:04 +02:00
|
|
|
BuildRequires: exiftool
|
2012-03-19 19:36:51 +01:00
|
|
|
BuildRequires: fdupes
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
BuildRequires: lapack
|
2013-01-16 15:24:28 +01:00
|
|
|
BuildRequires: lensfun-devel
|
2013-04-23 10:26:25 +02:00
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libXmu-devel
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: libexiv2-devel
|
2012-03-19 19:36:51 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: liblapack3
|
2014-10-13 20:53:04 +02:00
|
|
|
BuildRequires: libpano-devel >= 2.9.19
|
2012-03-19 19:36:51 +01:00
|
|
|
BuildRequires: libtiff-devel
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: libxml2
|
2013-01-16 15:24:28 +01:00
|
|
|
BuildRequires: python-devel
|
2013-07-26 11:44:43 +02:00
|
|
|
BuildRequires: python-wxWidgets >= 2.7.0
|
2013-01-16 15:24:28 +01:00
|
|
|
BuildRequires: swig
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: tclap
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: vigra
|
|
|
|
BuildRequires: wxWidgets-devel
|
2013-07-26 11:44:43 +02:00
|
|
|
BuildRequires: zip
|
2014-10-13 20:53:04 +02:00
|
|
|
%define mversion 2014.0
|
2011-12-28 12:30:41 +01:00
|
|
|
Version: %{mversion}.0
|
2011-12-22 07:42:42 +01:00
|
|
|
Release: 0
|
2008-08-02 04:04:50 +02:00
|
|
|
Summary: Toolchain for Stitching of Images and Creating Panoramas
|
2011-12-28 12:35:00 +01:00
|
|
|
License: GPL-2.0+
|
2011-10-21 09:27:10 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
2011-12-28 12:35:00 +01:00
|
|
|
Url: http://hugin.sourceforge.net/
|
2011-12-28 12:30:41 +01:00
|
|
|
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{mversion}/%{name}-%{version}.tar.bz2
|
2008-10-08 11:47:41 +02:00
|
|
|
# For SVN snapshot:
|
2008-08-02 04:04:50 +02:00
|
|
|
# svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk hugin
|
2011-10-21 09:27:10 +02:00
|
|
|
#Source: %%{name}-svn2008xxxx.tar.bz2
|
2008-04-25 16:05:24 +02:00
|
|
|
Source1: %{name}-svn-dummy
|
2008-10-08 11:47:41 +02:00
|
|
|
Requires: enblend-enfuse >= 3.2
|
2014-04-24 11:20:46 +02:00
|
|
|
# needed for photo stiching (bnc#822775)
|
|
|
|
Requires: make
|
2011-10-21 09:27:10 +02:00
|
|
|
Recommends: autopano-sift
|
|
|
|
Recommends: exiftool
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-17 14:59:16 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%description
|
2008-08-02 04:04:50 +02:00
|
|
|
Hugin can be used to stitch multiple images together. The resulting
|
2007-04-16 04:31:26 +02:00
|
|
|
image can span 360 degrees. Another common use is the creation of very
|
|
|
|
high resolution pictures by combining multiple images.
|
|
|
|
|
2008-08-02 04:04:50 +02:00
|
|
|
Other tools in this package can correct lens distortion, vignetting and
|
|
|
|
chromatic abberation, create HDR images, provide automatic feature
|
|
|
|
detection and extraction of key points.
|
|
|
|
|
2007-04-16 04:31:26 +02:00
|
|
|
%prep
|
2008-10-08 11:47:41 +02:00
|
|
|
%setup -q
|
2011-10-21 09:27:10 +02:00
|
|
|
|
2008-10-08 11:47:41 +02:00
|
|
|
# For SVN snapshot:
|
2011-10-21 09:27:10 +02:00
|
|
|
#setup -q -n %%{name}
|
2014-10-13 20:53:04 +02:00
|
|
|
# Rename Catalan in Spain to Catalan (translation removed in version 2014.0.0).
|
|
|
|
#mv src/translations/ca_ES.po src/translations/ca.po
|
2008-04-24 01:29:11 +02:00
|
|
|
# Rename Czech in Czech Republic to Czech.
|
|
|
|
mv src/translations/cs_CZ.po src/translations/cs.po
|
|
|
|
#sed -i "s/ca_ES/ca/;s/cs_CZ/cs/" src/hugin/po/LINGUAS
|
|
|
|
# Convert Japanese documentation to UTF-8 and delete note about Shift-JIS:
|
|
|
|
iconv -f shift-jis -t utf-8 <README_JP >README_JP.new
|
|
|
|
sed 1,4d <README_JP.new >README_JP.new2
|
|
|
|
touch -r README_JP README_JP.new2
|
|
|
|
mv README_JP.new2 README_JP
|
|
|
|
rm README_JP.new
|
2008-10-08 11:47:41 +02:00
|
|
|
# For SVN snapshot:
|
|
|
|
#mkdir bin
|
2011-10-21 09:27:10 +02:00
|
|
|
#cp %%{SOURCE1} bin/svn
|
2008-10-08 11:47:41 +02:00
|
|
|
#chmod +x bin/svn
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%build
|
2008-04-25 16:05:24 +02:00
|
|
|
export PATH=$PWD/bin:$PATH
|
2011-10-21 09:27:10 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2013-10-25 19:20:00 +02:00
|
|
|
# FIXME: This is an ugly hack. Build system should be fixed instead! Remove as soon as upstream fixes it (bnc#846944).
|
|
|
|
export LDFLAGS="-Wl,-rpath -Wl,%{_libdir}/hugin"
|
2008-04-24 01:29:11 +02:00
|
|
|
LIB_SUFFIX=%{_lib}
|
|
|
|
LIB_SUFFIX=${LIB_SUFFIX#lib}
|
2013-08-10 14:16:35 +02:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$LIB_SUFFIX \
|
|
|
|
-DENABLE_LAPACK=ON BUILD_HSI=ON \
|
|
|
|
.
|
2011-10-04 20:27:23 +02:00
|
|
|
# parallel make kills our workers
|
2013-07-26 11:44:43 +02:00
|
|
|
make VERBOSE=1 %{?_smp_mflags} -j1
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%install
|
2011-10-21 09:27:10 +02:00
|
|
|
%make_install
|
2009-08-08 00:53:09 +02:00
|
|
|
%suse_update_desktop_file hugin 2DGraphics
|
|
|
|
%suse_update_desktop_file PTBatcherGUI 2DGraphics
|
2011-10-21 09:27:10 +02:00
|
|
|
%suse_update_desktop_file calibrate_lens_gui 2DGraphics
|
2007-04-16 04:31:26 +02:00
|
|
|
# locales
|
|
|
|
%{find_lang} %{name}
|
2007-07-16 23:36:13 +02:00
|
|
|
# Use better place for MIME icons.
|
2011-10-21 09:27:10 +02:00
|
|
|
mv %{buildroot}%{_datadir}/icons/gnome %{buildroot}%{_datadir}/icons/hicolor
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -a AUTHORS authors.txt COPYING ChangeLog LICENCE_VIGRA README README_JP TODO %{buildroot}%{_docdir}/%{name}/
|
|
|
|
chmod -x %{buildroot}%{_docdir}/%{name}/*
|
2012-03-19 19:36:51 +01:00
|
|
|
%fdupes %{buildroot}
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%post
|
2013-07-26 11:44:43 +02:00
|
|
|
%icon_theme_cache_post
|
|
|
|
%mime_database_post
|
|
|
|
%desktop_database_post
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%postun
|
2013-07-26 11:44:43 +02:00
|
|
|
%icon_theme_cache_postun
|
|
|
|
%mime_database_postun
|
|
|
|
%desktop_database_postun
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2011-04-26 19:40:30 +02:00
|
|
|
%doc %{_docdir}/%{name}
|
2007-04-16 04:31:26 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/hugin
|
2008-04-24 01:29:11 +02:00
|
|
|
%{_datadir}/applications/*.desktop
|
2007-07-16 23:36:13 +02:00
|
|
|
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
|
2007-04-16 04:31:26 +02:00
|
|
|
%{_datadir}/mime/packages/*.xml
|
|
|
|
%{_datadir}/pixmaps/*.png
|
2014-10-13 20:53:04 +02:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/*xml
|
2011-04-26 19:40:30 +02:00
|
|
|
%dir %{_libdir}/hugin
|
|
|
|
%{_libdir}/hugin/*.so.*
|
|
|
|
%doc %{_mandir}/man?/*.*
|
2013-01-16 15:24:28 +01:00
|
|
|
%{py_sitedir}/*hpi*
|
|
|
|
%{py_sitedir}/*hsi*
|
2007-12-12 18:11:50 +01:00
|
|
|
|
2007-05-09 20:03:47 +02:00
|
|
|
%changelog
|