Skip to content

Commit

Permalink
Update hugin to version 2020.0.0 / rev 69 via SR 914957
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/914957
by user pgajdos + dimstar_suse
* Add hugin-EGL-link-against-X11.patch: Link against X11 even when building with EGL support (https://bugs.launchpad.net/hugin/+bug/1938453).
* Set up conditionals for building with EGL, but disable EGL support until glew bug is fixed (gh#nigels-com/glew#315).
* Switch bcond_with to build with system flann: library is now available on all supported openSUSE versions.
* Minor cleanup with spec-cleaner. (forwarded request 914704 from badshah400)
  • Loading branch information
pgajdos authored and bmwiedemann committed Aug 30, 2021
1 parent 40dca24 commit dd5d3ad
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 30 deletions.
Binary file modified packages/h/hugin/.files
Binary file not shown.
11 changes: 11 additions & 0 deletions packages/h/hugin/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -543,4 +543,15 @@
<comment></comment>
<requestid>911915</requestid>
</revision>
<revision rev="69" vrev="3">
<srcmd5>8cef1b0006f2df47ab19dc134416360c</srcmd5>
<version>2020.0.0</version>
<time>1630324521</time>
<user>dimstar_suse</user>
<comment>* Add hugin-EGL-link-against-X11.patch: Link against X11 even when building with EGL support (https://bugs.launchpad.net/hugin/+bug/1938453).
* Set up conditionals for building with EGL, but disable EGL support until glew bug is fixed (gh#nigels-com/glew#315).
* Switch bcond_with to build with system flann: library is now available on all supported openSUSE versions.
* Minor cleanup with spec-cleaner. (forwarded request 914704 from badshah400)</comment>
<requestid>914957</requestid>
</revision>
</revisionlist>
13 changes: 13 additions & 0 deletions packages/h/hugin/hugin-EGL-link-against-X11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: hugin-2020.0.0/CMakeLists.txt
===================================================================
--- hugin-2020.0.0.orig/CMakeLists.txt
+++ hugin-2020.0.0/CMakeLists.txt
@@ -256,7 +256,7 @@ IF(NOT HUGIN_SHARED OR NOT WIN32)
ADD_DEFINITIONS(-DGLEW_STATIC)
ENDIF()

-IF(NOT APPLE AND NOT WIN32 AND NOT HAVE_EGL)
+IF(NOT APPLE AND NOT WIN32)
MESSAGE(STATUS "Searching X11 header")
FIND_PACKAGE(X11 REQUIRED)
ENDIF()
12 changes: 12 additions & 0 deletions packages/h/hugin/hugin.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Aug 12 01:47:14 UTC 2021 - Atri Bhattacharya <[email protected]>

- Add hugin-EGL-link-against-X11.patch: Link against X11 even when
building with EGL support
(https://bugs.launchpad.net/hugin/+bug/1938453).
- Set up conditionals for building with EGL, but disable EGL
support until glew bug is fixed (gh#nigels-com/glew#315).
- Switch bcond_with to build with system flann: library is now
available on all supported openSUSE versions.
- Minor cleanup with spec-cleaner.

-------------------------------------------------------------------
Tue Aug 10 11:25:24 UTC 2021 - [email protected]

Expand Down
68 changes: 38 additions & 30 deletions packages/h/hugin/hugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,59 +16,65 @@
#


%define mversion 2020.0
%bcond_with hsi
%bcond_with system_flann
%bcond_without system_flann
%bcond_without lapack

# Cannot use EGL unless glew bug https://github.com/nigels-com/glew/issues/315 is fixed
%bcond_with egl
Name: hugin
Version: 2020.0.0
Release: 0
Summary: Toolchain for Stitching of Images and Creating Panoramas
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
Patch0: hugin.appdata.patch
# https://src.fedoraproject.org/rpms/hugin/blob/rawhide/f/hugin-openexr3.patch
Patch1: hugin-openexr3.patch
# PATCH-FIX-UPSTREAM hugin-EGL-link-against-X11.patch [email protected] -- Link against X11 even when building with EGL support
Patch2: hugin-EGL-link-against-X11.patch
BuildRequires: Mesa-devel
BuildRequires: OpenEXR-devel
BuildRequires: cmake >= 3.1.0
BuildRequires: desktop-file-utils
BuildRequires: exiftool
BuildRequires: fdupes
BuildRequires: fftw3-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel
%if %{with system_flann}
BuildRequires: flann-devel
%endif
BuildRequires: gcc-c++
BuildRequires: glew-devel
%if %{with lapack}
BuildRequires: lapack-devel
%endif
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel
BuildRequires: libexiv2-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: libpano-devel >= 2.9.19
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
%if %{with hsi}
BuildRequires: python-wxWidgets >= 3
BuildRequires: swig
%endif
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: sqlite3-devel
BuildRequires: update-desktop-files
BuildRequires: vigra-devel
BuildRequires: wxGTK3-devel >= 3
%define mversion 2020.0
Version: 2020.0.0
Release: 0
Summary: Toolchain for Stitching of Images and Creating Panoramas
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
Patch0: hugin.appdata.patch
# https://src.fedoraproject.org/rpms/hugin/blob/rawhide/f/hugin-openexr3.patch
Patch1: hugin-openexr3.patch
BuildRequires: wxGTK3-devel >= 3.1.5
Requires: enblend-enfuse >= 3.2
# needed for photo stiching (bnc#822775)
Requires: make
Recommends: autopano-sift-C
Recommends: exiftool
%if %{with system_flann}
BuildRequires: flann-devel
%endif
%if %{with lapack}
BuildRequires: lapack-devel
%endif
%if %{with hsi}
BuildRequires: python-wxWidgets >= 3
BuildRequires: swig
%endif
%if %{with egl}
BuildRequires: pkgconfig(egl)
%endif

%description
Hugin can be used to stitch multiple images together. The resulting
Expand All @@ -83,6 +89,7 @@ detection and extraction of key points.
%setup -q
%patch0
%patch1 -p1
%patch2 -p1

chmod -x AUTHORS authors.txt Changes.txt README COPYING.txt

Expand All @@ -99,7 +106,8 @@ rm CMakeModules/FindZLIB.cmake
-DENABLE_LAPACK=%{?with_lapack:ON}%{!?with_lapack:OFF} \
-DBUILD_HSI=%{?with_hsi:ON}%{!?with_hsi:OFF} \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DUSE_GDKBACKEND_X11:BOOL=ON
-DBUILD_WITH_EGL:BOOL=%{?with_egl:ON}%{!?with_egl:OFF} \
-DUSE_GDKBACKEND_X11:BOOL=%{?with_egl:OFF}%{!?with_egl:ON}

%cmake_build

Expand All @@ -110,7 +118,7 @@ rm CMakeModules/FindZLIB.cmake
%suse_update_desktop_file PTBatcherGUI 2DGraphics
%suse_update_desktop_file calibrate_lens_gui 2DGraphics
# locales
%{find_lang} %{name}
%find_lang %{name}

# Use better place for MIME icon.
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes
Expand All @@ -135,6 +143,6 @@ install -m644 -D -t %{buildroot}%{_licensedir}/hugin/ COPYING.txt
%{_datadir}/metainfo/*xml
%dir %{_libdir}/hugin
%{_libdir}/hugin/*.so.*
%doc %{_mandir}/man?/*.*
%{_mandir}/man?/*.*

%changelog

0 comments on commit dd5d3ad

Please sign in to comment.