Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hugin for openSUSE:Factory checked 
in at 2021-08-16 10:11:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hugin (Old)
 and      /work/SRC/openSUSE:Factory/.hugin.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hugin"

Mon Aug 16 10:11:24 2021 rev:68 rq:911915 version:2020.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/hugin/hugin.changes      2020-12-29 
15:53:19.300289321 +0100
+++ /work/SRC/openSUSE:Factory/.hugin.new.1899/hugin.changes    2021-08-16 
10:17:30.170665076 +0200
@@ -1,0 +2,8 @@
+Tue Aug 10 11:25:24 UTC 2021 - pgaj...@suse.com
+
+- build with OpenEXR 3
+- added patches
+  fix 
https://src.fedoraproject.org/rpms/hugin/blob/rawhide/f/hugin-openexr3.patch
+  + hugin-openexr3.patch
+
+-------------------------------------------------------------------

New:
----
  hugin-openexr3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hugin.spec ++++++
--- /var/tmp/diff_new_pack.O7ZyQ6/_old  2021-08-16 10:17:30.670664475 +0200
+++ /var/tmp/diff_new_pack.O7ZyQ6/_new  2021-08-16 10:17:30.674664470 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hugin
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -62,6 +62,8 @@
 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
 Requires:       enblend-enfuse >= 3.2
 # needed for photo stiching (bnc#822775)
 Requires:       make
@@ -80,6 +82,7 @@
 %prep
 %setup -q
 %patch0
+%patch1 -p1
 
 chmod -x AUTHORS authors.txt Changes.txt README COPYING.txt
 
@@ -90,6 +93,8 @@
 #sed -i "s/ca_ES/ca/;s/cs_CZ/cs/" src/hugin/po/LINGUAS
 
 %build
+# Doesn't define the ZLIB::ZLIB target needed by OpenEXR 3
+rm CMakeModules/FindZLIB.cmake
 %cmake \
        -DENABLE_LAPACK=%{?with_lapack:ON}%{!?with_lapack:OFF} \
        -DBUILD_HSI=%{?with_hsi:ON}%{!?with_hsi:OFF} \

++++++ hugin-openexr3.patch ++++++
Index: hugin-2020.0.0/CMakeLists.txt
===================================================================
--- hugin-2020.0.0.orig/CMakeLists.txt
+++ hugin-2020.0.0/CMakeLists.txt
@@ -214,7 +214,18 @@ ENDIF()
 
 ENDIF()
 
-FIND_PACKAGE(OpenEXR REQUIRED)
+FIND_PACKAGE(Imath CONFIG)
+IF(TARGET Imath::Imath)
+    FIND_PACKAGE(OpenEXR CONFIG REQUIRED)
+       FIND_PACKAGE(ZLIB REQUIRED)
+       get_target_property(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXRConfig 
INTERFACE_INCLUDE_DIRECTORIES)
+       get_target_property(IMATH_INCLUDE_DIR Imath::ImathConfig 
INTERFACE_INCLUDE_DIRECTORIES)
+    list(APPEND OPENEXR_INCLUDE_DIR ${IMATH_INCLUDE_DIR})
+       set(OPENEXR_LIBRARIES OpenEXR::OpenEXR Imath::Imath ${ZLIB_LIBRARIES})
+       set(OPENEXR_FOUND TRUE)
+ELSE()
+    FIND_PACKAGE(OpenEXR REQUIRED)
+ENDIF()
 include_directories(${OPENEXR_INCLUDE_DIR})
 
 FIND_PACKAGE(VIGRA 1.9.0 REQUIRED)
Index: hugin-2020.0.0/src/hugin_base/vigra_ext/ReduceOpenEXR.h
===================================================================
--- hugin-2020.0.0.orig/src/hugin_base/vigra_ext/ReduceOpenEXR.h
+++ hugin-2020.0.0/src/hugin_base/vigra_ext/ReduceOpenEXR.h
@@ -25,8 +25,8 @@
 #include <vigra_ext/HDRUtils.h>
 #include <vigra_ext/FileRAII.h>
 
-#include <ImfRgbaFile.h>
-#include <ImfArray.h>
+#include <OpenEXR/ImfRgbaFile.h>
+#include <OpenEXR/ImfArray.h>
 
 
 // hack to read pgm header
Index: hugin-2020.0.0/CMakeModules/FindVIGRA.cmake
===================================================================
--- hugin-2020.0.0.orig/CMakeModules/FindVIGRA.cmake
+++ hugin-2020.0.0/CMakeModules/FindVIGRA.cmake
@@ -75,6 +75,9 @@ IF (VIGRA_FOUND)
       )
       STRING(TOLOWER "${OUTPUT_LDD_VIGRA}" OUTPUT_LDD_VIGRA_LOWER)
       IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libilmimf")
+      ELSEIF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libiopenexr")
+           MESSAGE(STATUS "OpenEXR is version 3 or greter.")
+         ELSE()
         MESSAGE(FATAL_ERROR "Libvigraimpex found. But vigraimpex seems to 
compiled without OpenEXR support. OpenEXR support is required for Hugin.")
       ENDIF()
     ELSE()

Reply via email to