forked from pool/hugin
Accepting request 671001 from graphics
OBS-URL: https://build.opensuse.org/request/show/671001 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hugin?expand=0&rev=60
This commit is contained in:
commit
8f7974f11d
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 30 19:17:03 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- spec file cleanup (%license, %defattr)
|
||||
- add HSI (Hugin Scripting Interface) bcond, correct -DBUILD_HSI
|
||||
option syntax for cmake
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 29 09:23:42 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
43
hugin.spec
43
hugin.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package hugin
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@ -12,10 +12,12 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with hsi
|
||||
|
||||
Name: hugin
|
||||
BuildRequires: Mesa-devel
|
||||
BuildRequires: OpenEXR-devel
|
||||
@ -25,7 +27,7 @@ BuildRequires: libboost_filesystem-devel
|
||||
%else
|
||||
BuildRequires: boost-devel
|
||||
%endif
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: cmake >= 3.1.0
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: exiftool
|
||||
BuildRequires: fdupes
|
||||
@ -34,8 +36,6 @@ 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
|
||||
@ -43,7 +43,9 @@ BuildRequires: liblcms2-devel
|
||||
BuildRequires: libpano-devel >= 2.9.19
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libxml2
|
||||
%if %{with hsi}
|
||||
BuildRequires: python-wxWidgets >= 3
|
||||
%endif
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: update-desktop-files
|
||||
@ -54,7 +56,7 @@ BuildRequires: zip
|
||||
Version: 2018.0.0
|
||||
Release: 0
|
||||
Summary: Toolchain for Stitching of Images and Creating Panoramas
|
||||
License: GPL-2.0+
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Graphics/Other
|
||||
Url: http://hugin.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{mversion}/%{name}-%{version}.tar.bz2
|
||||
@ -90,6 +92,8 @@ detection and extraction of key points.
|
||||
%patch0
|
||||
%patch1 -p1
|
||||
|
||||
chmod -x AUTHORS authors.txt Changes.txt README TODO COPYING.txt
|
||||
|
||||
# For SVN snapshot:
|
||||
#setup -q -n %%{name}
|
||||
# Rename Catalan in Spain to Catalan (translation removed in version 2014.0.0).
|
||||
@ -110,21 +114,19 @@ 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}
|
||||
mkdir build && cd build
|
||||
cmake \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$LIB_SUFFIX \
|
||||
-DENABLE_LAPACK=ON BUILD_HSI=ON \
|
||||
|
||||
%cmake \
|
||||
-DENABLE_LAPACK=ON \
|
||||
-DBUILD_HSI=%{?with_hsi:ON}%{!?with_hsi:OFF} \
|
||||
..
|
||||
# parallel make kills our workers
|
||||
make VERBOSE=1 %{?_smp_mflags} -j1
|
||||
|
||||
%install
|
||||
cd build
|
||||
%make_install
|
||||
cd ..
|
||||
pushd .
|
||||
%cmake_install
|
||||
|
||||
popd
|
||||
%suse_update_desktop_file hugin 2DGraphics
|
||||
%suse_update_desktop_file PTBatcherGUI 2DGraphics
|
||||
%suse_update_desktop_file calibrate_lens_gui 2DGraphics
|
||||
@ -132,9 +134,8 @@ cd ..
|
||||
%{find_lang} %{name}
|
||||
# Use better place for MIME icons.
|
||||
mv -f %{buildroot}%{_datadir}/icons/gnome %{buildroot}%{_datadir}/icons/hicolor
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp -a AUTHORS authors.txt COPYING.txt Changes.txt README TODO %{buildroot}%{_docdir}/%{name}/
|
||||
chmod -x %{buildroot}%{_docdir}/%{name}/*
|
||||
# Install manually so it can be dedup'ed with the one in the program resources
|
||||
install -m644 -D -t %{buildroot}%{_licensedir}/hugin/ COPYING.txt
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%post
|
||||
@ -148,8 +149,8 @@ chmod -x %{buildroot}%{_docdir}/%{name}/*
|
||||
%desktop_database_postun
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}
|
||||
%license COPYING.txt
|
||||
%doc AUTHORS authors.txt Changes.txt README TODO
|
||||
%{_bindir}/*
|
||||
%{_datadir}/hugin
|
||||
%{_datadir}/applications/*.desktop
|
||||
|
Loading…
Reference in New Issue
Block a user