]> git.pld-linux.org Git - packages/hugin.git/commitdiff
- added exiv2 patch, release 7 (exiv2 0.28) auto/th/hugin-2020.0.0-7
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Jul 2023 05:11:21 +0000 (07:11 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Jul 2023 05:11:21 +0000 (07:11 +0200)
hugin-exiv2.patch [new file with mode: 0644]
hugin.spec

diff --git a/hugin-exiv2.patch b/hugin-exiv2.patch
new file mode 100644 (file)
index 0000000..6bc49f9
--- /dev/null
@@ -0,0 +1,67 @@
+--- hugin-2020.0.0/src/hugin_base/panodata/SrcPanoImage.cpp.orig       2020-09-12 12:46:03.000000000 +0200
++++ hugin-2020.0.0/src/hugin_base/panodata/SrcPanoImage.cpp    2023-07-28 22:43:30.687904298 +0200
+@@ -362,7 +362,7 @@ bool SrcPanoImage::readEXIF()
+                     pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageWidthPixels"));
+                     if (pos != xmpData.end())
+                     {
+-                        croppedWidth = pos->toLong();
++                        croppedWidth = pos->toInt64();
+                     }
+                     else
+                     {
+@@ -372,7 +372,7 @@ bool SrcPanoImage::readEXIF()
+                     pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageHeightPixels"));
+                     if (pos != xmpData.end())
+                     {
+-                        croppedHeight = pos->toLong();
++                        croppedHeight = pos->toInt64();
+                     }
+                     else
+                     {
+@@ -386,7 +386,7 @@ bool SrcPanoImage::readEXIF()
+                         double hfov = 0;
+                         if (pos != xmpData.end())
+                         {
+-                            hfov = 360 * croppedWidth / (double)pos->toLong();
++                            hfov = 360 * croppedWidth / (double)pos->toInt64();
+                         }
+                         else
+                         {
+@@ -397,7 +397,7 @@ bool SrcPanoImage::readEXIF()
+                         pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.FullPanoHeightPixels"));
+                         if (pos != xmpData.end())
+                         {
+-                            fullHeight = pos->toLong();
++                            fullHeight = pos->toInt64();
+                         }
+                         else
+                         {
+@@ -408,7 +408,7 @@ bool SrcPanoImage::readEXIF()
+                         pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaTopPixels"));
+                         if (pos != xmpData.end())
+                         {
+-                            cropTop = pos->toLong();
++                            cropTop = pos->toInt64();
+                         }
+                         else
+                         {
+--- hugin-2020.0.0/src/hugin_base/panodata/Exiv2Helper.cpp.orig        2019-05-15 17:30:47.000000000 +0200
++++ hugin-2020.0.0/src/hugin_base/panodata/Exiv2Helper.cpp     2023-07-29 06:56:08.543554353 +0200
+@@ -40,7 +40,7 @@ namespace HuginBase
+             Exiv2::ExifData::iterator itr = exifData.findKey(Exiv2::ExifKey(keyName));
+             if (itr != exifData.end() && itr->count())
+             {
+-                value = itr->toLong();
++                value = itr->toInt64();
+                 return true;
+             }
+             else
+@@ -165,7 +165,7 @@ namespace HuginBase
+         {
+             if(it!=exifData.end() && it->count())
+             {
+-                return it->toLong();
++                return it->toInt64();
+             }
+             return 0;
+         };
index 165b06bfceb0e633e86cd22c255dd3ae72153195..03e8e29b8c705a34485db38dd8fdef24dbee5e33 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Toolchain to create panoramic images
 Summary(pl.UTF-8):     Zestaw narzędzi do tworzenia panoramicznych zdjęć
 Name:          hugin
 Version:       2020.0.0
-Release:       6
+Release:       7
 License:       GPL v2+
 Group:         X11/Applications/Graphics
 Source0:       http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
@@ -10,6 +10,7 @@ Source0:      http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
 Patch0:                %{name}-cppflags.patch
 Patch1:                python-install.patch
 Patch2:                openexr3.patch
+Patch3:                %{name}-exiv2.patch
 URL:           http://hugin.sourceforge.net/
 BuildRequires: OpenEXR-devel
 BuildRequires: OpenGL-glut-devel
@@ -67,6 +68,7 @@ ekspozycji, więc warto zainstalować pakiet enblend-enfuse.
 %patch0 -p0
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # Old, broken duplicate of the system cmake one
 %{__rm} CMakeModules/FindZLIB.cmake
This page took 0.064615 seconds and 4 git commands to generate.