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
|
|
|
#
|
2018-02-02 11:57:07 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
2017-02-07 13:12:56 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
%else
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: boost-devel
|
2017-02-07 13:12:56 +01:00
|
|
|
%endif
|
2016-07-04 11:26:15 +02:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
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-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
|
2016-03-23 16:21:11 +01:00
|
|
|
BuildRequires: liblcms2-devel
|
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
|
2016-07-04 11:26:15 +02:00
|
|
|
BuildRequires: python-wxWidgets >= 3
|
2015-09-03 12:50:46 +02:00
|
|
|
BuildRequires: sqlite3-devel
|
2013-01-16 15:24:28 +01:00
|
|
|
BuildRequires: swig
|
2011-10-21 09:27:10 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2015-09-03 12:50:46 +02:00
|
|
|
BuildRequires: vigra-devel
|
2016-07-04 11:26:15 +02:00
|
|
|
BuildRequires: wxWidgets-devel >= 3
|
2013-07-26 11:44:43 +02:00
|
|
|
BuildRequires: zip
|
2018-02-06 09:37:52 +01:00
|
|
|
%define mversion 2018.0
|
|
|
|
Version: 2018.0.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/
|
2017-12-24 16:59:49 +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
|
2016-02-05 19:17:43 +01:00
|
|
|
# This script is a combined appdata.prov and desktop-file.prov to enable hugin to provide appdata.xml and desktop files see boo#952324
|
|
|
|
Source2: find-hugin-provides.prov
|
|
|
|
Patch0: hugin.appdata.patch
|
2019-01-29 21:39:55 +01:00
|
|
|
Patch1: hugin-exiv2-0.27.patch
|
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
|
2016-02-05 19:17:43 +01:00
|
|
|
|
|
|
|
%define __find_provides %{SOURCE2}
|
|
|
|
#%%debug_package
|
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
|
2016-02-05 19:17:43 +01:00
|
|
|
%patch0
|
2019-01-29 21:39:55 +01:00
|
|
|
%patch1 -p1
|
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
|
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
|
2016-02-09 22:05:22 +01:00
|
|
|
chmod 0755 %{SOURCE2}
|
2007-04-16 04:31:26 +02:00
|
|
|
|
|
|
|
%build
|
2017-06-04 02:48:49 +02:00
|
|
|
echo -n be8da0221960 > rev.txt
|
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}
|
2016-03-23 16:21:11 +01:00
|
|
|
mkdir build && cd build
|
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 \
|
2016-03-23 16:21:11 +01:00
|
|
|
..
|
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
|
2016-03-23 16:21:11 +01:00
|
|
|
cd build
|
2011-10-21 09:27:10 +02:00
|
|
|
%make_install
|
2016-03-23 16:21:11 +01:00
|
|
|
cd ..
|
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.
|
2016-02-05 19:17:43 +01:00
|
|
|
mv -f %{buildroot}%{_datadir}/icons/gnome %{buildroot}%{_datadir}/icons/hicolor
|
2011-10-21 09:27:10 +02:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
Accepting request 428467 from home:sergeyopensuse:misc
- Updated to version 2016.2.0
* Allow reading of image positions from Papywizard XML files: First add the image to a new project and then select File, Import settings from Papywizard XML file... This will read the lens settings, the image positions and also, if applicable, the bracket settings. After this, the usual workflow is to run cpfind with --prealigned switch and then geocpset to connect orphanded images.
* The internal blender and verdandi got the possibility to blend seams as alternative to current hard seam: For each seam the color of second image is adapted to the match the color of the first seam. For this blender, the blender order changes according to the overlap. The blending starts with the exposure anchor and blends then all overlapping images. This blending mode is not suited if there are bigger misalignments or bigger parallax errors.
* The display of the control point error (after optimizing and in fast preview window) and the control point list window can now limited to take only control points in active images into account (menu Edit, Optimize only active images, connected with the setting on the optimizer tab).
* Improvements to mask tab in Hugin (edit crop of all images of the same lens at once) and find panorama dialog in PTBatcherGUI (remove images from found panoramas, split found panorama into two).
* Fixes several issues with fast preview window which could result in random crashes (uninitialized variables, memory leaks).
OBS-URL: https://build.opensuse.org/request/show/428467
OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=73
2016-09-18 19:51:06 +02:00
|
|
|
cp -a AUTHORS authors.txt COPYING.txt Changes.txt README TODO %{buildroot}%{_docdir}/%{name}/
|
2011-10-21 09:27:10 +02:00
|
|
|
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?/*.*
|
2007-12-12 18:11:50 +01:00
|
|
|
|
2007-05-09 20:03:47 +02:00
|
|
|
%changelog
|