SHA256
1
0
forked from pool/hugin
hugin/hugin.spec

166 lines
5.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package hugin
#
# Copyright (c) 2018 SUSE LINUX 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/
#
Name: hugin
BuildRequires: Mesa-devel
BuildRequires: OpenEXR-devel
BuildRequires: SDL-devel
%if 0%{?suse_version} > 1325
BuildRequires: libboost_filesystem-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: cmake >= 2.8.12
BuildRequires: desktop-file-utils
BuildRequires: exiftool
BuildRequires: fdupes
BuildRequires: fftw3-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: glew-devel
BuildRequires: lapack
BuildRequires: libXi-devel
BuildRequires: libXmu-devel
BuildRequires: libexiv2-devel
BuildRequires: libjpeg-devel
BuildRequires: liblapack3
Accepting request 376260 from home:sergeyopensuse:misc - Updated to version 2016.0.0 * Added user defined output. The user can define own output sequences to implement new use cases, e.g. zero noise output. * Added --clip-exposure switch to nona to automatically mask over and under exposed areas in input images. * Color management ** GUI tools (Hugin, calibrate_lens_gui) take ICC profiles in files and monitor color profile into account to display images. ** celeste and cpfind converts internal image to sRGB before working. * Some buttons got a context menu for easier access to some function ** Show all in fast preview window to allow better interaction with stacked projects ** Celeste in cp tab: the button can now create cp or clean cp * Updated internal levmar library to version 2.6 * The identify tool in the fast preview window shows now also the image numbers on top of the images. (This can be suppressed by pressing the alt button). * Fixes internal image format for GPU remapping. This should fix the "unsupported framebufferformat" error. * Use own code for OpenGL intialization. Now freeglut is not needed anymore. (This should prevent the appearing of window when running "nona -g". Linux/Window only) * Control point and mask editor retain viewpoint when changing zoom factor. * PTBatcherGUI: Minimize to tray is now user configurable. * Fixes a bug in photometric optimizer and merge projects with line control points. - Hugin is built in "build" subdirectory (in-source builds are not allowed now). OBS-URL: https://build.opensuse.org/request/show/376260 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=69
2016-03-23 16:21:11 +01:00
BuildRequires: liblcms2-devel
BuildRequires: libpano-devel >= 2.9.19
BuildRequires: libtiff-devel
BuildRequires: libxml2
BuildRequires: python-wxWidgets >= 3
Accepting request 328715 from home:sergeyopensuse:misc - Updated to version 2015.0.0 * The makefile based stitching engine has been replaced with direct calls to the underlying programs. * Hugin now has it's own blender, verdandi, based on a watershed algorithm, which has been included in 'nona'. * The lensfun library has been removed as it did not fulfill our expectations. It has been replaced with our own camera and lens database which uses a data mining approach and operates automatically without user intervention. * The fast preview window has a new tool to add or remove control points to selected areas in the output projection. * Automatic exposure stack detection is now applied when loading images, and an option has been added to unlink image position when adding stacks. * The fine-tune and auto-estimate functions in the control point tab have been made projection aware. * PTBatcherGUI has more choice for the end of the process: depending on the operating system the PTBatcherGUI can be closed, the computer can be shut down or send to the hibernate mode. * PTBatcherGUI now shows the thumbnails when searching for images in directories. * Many of the underlying tools in hugin are now able to use available cpu cores. * New command line tools for CLI processing: verdandi, hugin_executor, hugin_lensdb * Many more improvements and bug fixes. - Removed hugin-boost-1.56.0.patch (included upstream). - Removed hugin-lensfun-0.3.patch (support for lensfun has been dropped). OBS-URL: https://build.opensuse.org/request/show/328715 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=61
2015-09-03 12:50:46 +02:00
BuildRequires: sqlite3-devel
BuildRequires: swig
BuildRequires: update-desktop-files
Accepting request 328715 from home:sergeyopensuse:misc - Updated to version 2015.0.0 * The makefile based stitching engine has been replaced with direct calls to the underlying programs. * Hugin now has it's own blender, verdandi, based on a watershed algorithm, which has been included in 'nona'. * The lensfun library has been removed as it did not fulfill our expectations. It has been replaced with our own camera and lens database which uses a data mining approach and operates automatically without user intervention. * The fast preview window has a new tool to add or remove control points to selected areas in the output projection. * Automatic exposure stack detection is now applied when loading images, and an option has been added to unlink image position when adding stacks. * The fine-tune and auto-estimate functions in the control point tab have been made projection aware. * PTBatcherGUI has more choice for the end of the process: depending on the operating system the PTBatcherGUI can be closed, the computer can be shut down or send to the hibernate mode. * PTBatcherGUI now shows the thumbnails when searching for images in directories. * Many of the underlying tools in hugin are now able to use available cpu cores. * New command line tools for CLI processing: verdandi, hugin_executor, hugin_lensdb * Many more improvements and bug fixes. - Removed hugin-boost-1.56.0.patch (included upstream). - Removed hugin-lensfun-0.3.patch (support for lensfun has been dropped). OBS-URL: https://build.opensuse.org/request/show/328715 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=61
2015-09-03 12:50:46 +02:00
BuildRequires: vigra-devel
BuildRequires: wxWidgets-devel >= 3
BuildRequires: zip
%define mversion 2018.0
Version: 2018.0.0
Release: 0
Summary: Toolchain for Stitching of Images and Creating Panoramas
License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://hugin.sourceforge.net/
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{mversion}/%{name}-%{version}.tar.bz2
# For SVN snapshot:
# svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk hugin
#Source: %%{name}-svn2008xxxx.tar.bz2
Source1: %{name}-svn-dummy
# 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
Patch1: hugin-exiv2-0.27.patch
Requires: enblend-enfuse >= 3.2
# needed for photo stiching (bnc#822775)
Requires: make
Recommends: autopano-sift
Recommends: exiftool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define __find_provides %{SOURCE2}
#%%debug_package
%description
Hugin can be used to stitch multiple images together. The resulting
image can span 360 degrees. Another common use is the creation of very
high resolution pictures by combining multiple images.
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.
%prep
%setup -q
%patch0
%patch1 -p1
# For SVN snapshot:
#setup -q -n %%{name}
# Rename Catalan in Spain to Catalan (translation removed in version 2014.0.0).
#mv src/translations/ca_ES.po src/translations/ca.po
# 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
# For SVN snapshot:
#mkdir bin
#cp %%{SOURCE1} bin/svn
#chmod +x bin/svn
chmod 0755 %{SOURCE2}
%build
echo -n be8da0221960 > rev.txt
export PATH=$PWD/bin:$PATH
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
# 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"
LIB_SUFFIX=%{_lib}
LIB_SUFFIX=${LIB_SUFFIX#lib}
Accepting request 376260 from home:sergeyopensuse:misc - Updated to version 2016.0.0 * Added user defined output. The user can define own output sequences to implement new use cases, e.g. zero noise output. * Added --clip-exposure switch to nona to automatically mask over and under exposed areas in input images. * Color management ** GUI tools (Hugin, calibrate_lens_gui) take ICC profiles in files and monitor color profile into account to display images. ** celeste and cpfind converts internal image to sRGB before working. * Some buttons got a context menu for easier access to some function ** Show all in fast preview window to allow better interaction with stacked projects ** Celeste in cp tab: the button can now create cp or clean cp * Updated internal levmar library to version 2.6 * The identify tool in the fast preview window shows now also the image numbers on top of the images. (This can be suppressed by pressing the alt button). * Fixes internal image format for GPU remapping. This should fix the "unsupported framebufferformat" error. * Use own code for OpenGL intialization. Now freeglut is not needed anymore. (This should prevent the appearing of window when running "nona -g". Linux/Window only) * Control point and mask editor retain viewpoint when changing zoom factor. * PTBatcherGUI: Minimize to tray is now user configurable. * Fixes a bug in photometric optimizer and merge projects with line control points. - Hugin is built in "build" subdirectory (in-source builds are not allowed now). OBS-URL: https://build.opensuse.org/request/show/376260 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=69
2016-03-23 16:21:11 +01:00
mkdir build && cd build
cmake \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$LIB_SUFFIX \
-DENABLE_LAPACK=ON BUILD_HSI=ON \
Accepting request 376260 from home:sergeyopensuse:misc - Updated to version 2016.0.0 * Added user defined output. The user can define own output sequences to implement new use cases, e.g. zero noise output. * Added --clip-exposure switch to nona to automatically mask over and under exposed areas in input images. * Color management ** GUI tools (Hugin, calibrate_lens_gui) take ICC profiles in files and monitor color profile into account to display images. ** celeste and cpfind converts internal image to sRGB before working. * Some buttons got a context menu for easier access to some function ** Show all in fast preview window to allow better interaction with stacked projects ** Celeste in cp tab: the button can now create cp or clean cp * Updated internal levmar library to version 2.6 * The identify tool in the fast preview window shows now also the image numbers on top of the images. (This can be suppressed by pressing the alt button). * Fixes internal image format for GPU remapping. This should fix the "unsupported framebufferformat" error. * Use own code for OpenGL intialization. Now freeglut is not needed anymore. (This should prevent the appearing of window when running "nona -g". Linux/Window only) * Control point and mask editor retain viewpoint when changing zoom factor. * PTBatcherGUI: Minimize to tray is now user configurable. * Fixes a bug in photometric optimizer and merge projects with line control points. - Hugin is built in "build" subdirectory (in-source builds are not allowed now). OBS-URL: https://build.opensuse.org/request/show/376260 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=69
2016-03-23 16:21:11 +01:00
..
# parallel make kills our workers
make VERBOSE=1 %{?_smp_mflags} -j1
%install
Accepting request 376260 from home:sergeyopensuse:misc - Updated to version 2016.0.0 * Added user defined output. The user can define own output sequences to implement new use cases, e.g. zero noise output. * Added --clip-exposure switch to nona to automatically mask over and under exposed areas in input images. * Color management ** GUI tools (Hugin, calibrate_lens_gui) take ICC profiles in files and monitor color profile into account to display images. ** celeste and cpfind converts internal image to sRGB before working. * Some buttons got a context menu for easier access to some function ** Show all in fast preview window to allow better interaction with stacked projects ** Celeste in cp tab: the button can now create cp or clean cp * Updated internal levmar library to version 2.6 * The identify tool in the fast preview window shows now also the image numbers on top of the images. (This can be suppressed by pressing the alt button). * Fixes internal image format for GPU remapping. This should fix the "unsupported framebufferformat" error. * Use own code for OpenGL intialization. Now freeglut is not needed anymore. (This should prevent the appearing of window when running "nona -g". Linux/Window only) * Control point and mask editor retain viewpoint when changing zoom factor. * PTBatcherGUI: Minimize to tray is now user configurable. * Fixes a bug in photometric optimizer and merge projects with line control points. - Hugin is built in "build" subdirectory (in-source builds are not allowed now). OBS-URL: https://build.opensuse.org/request/show/376260 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=69
2016-03-23 16:21:11 +01:00
cd build
%make_install
Accepting request 376260 from home:sergeyopensuse:misc - Updated to version 2016.0.0 * Added user defined output. The user can define own output sequences to implement new use cases, e.g. zero noise output. * Added --clip-exposure switch to nona to automatically mask over and under exposed areas in input images. * Color management ** GUI tools (Hugin, calibrate_lens_gui) take ICC profiles in files and monitor color profile into account to display images. ** celeste and cpfind converts internal image to sRGB before working. * Some buttons got a context menu for easier access to some function ** Show all in fast preview window to allow better interaction with stacked projects ** Celeste in cp tab: the button can now create cp or clean cp * Updated internal levmar library to version 2.6 * The identify tool in the fast preview window shows now also the image numbers on top of the images. (This can be suppressed by pressing the alt button). * Fixes internal image format for GPU remapping. This should fix the "unsupported framebufferformat" error. * Use own code for OpenGL intialization. Now freeglut is not needed anymore. (This should prevent the appearing of window when running "nona -g". Linux/Window only) * Control point and mask editor retain viewpoint when changing zoom factor. * PTBatcherGUI: Minimize to tray is now user configurable. * Fixes a bug in photometric optimizer and merge projects with line control points. - Hugin is built in "build" subdirectory (in-source builds are not allowed now). OBS-URL: https://build.opensuse.org/request/show/376260 OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=69
2016-03-23 16:21:11 +01:00
cd ..
%suse_update_desktop_file hugin 2DGraphics
%suse_update_desktop_file PTBatcherGUI 2DGraphics
%suse_update_desktop_file calibrate_lens_gui 2DGraphics
# locales
%{find_lang} %{name}
# Use better place for MIME icons.
mv -f %{buildroot}%{_datadir}/icons/gnome %{buildroot}%{_datadir}/icons/hicolor
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}/
chmod -x %{buildroot}%{_docdir}/%{name}/*
%fdupes %{buildroot}
%post
%icon_theme_cache_post
%mime_database_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%mime_database_postun
%desktop_database_postun
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/hugin
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/*xml
%dir %{_libdir}/hugin
%{_libdir}/hugin/*.so.*
%doc %{_mandir}/man?/*.*
%changelog