--- /dev/null
+--- kealib-1.4.14/CMakeLists.txt.orig 2020-11-27 02:19:08.000000000 +0100
++++ kealib-1.4.14/CMakeLists.txt 2021-06-25 16:26:33.890160007 +0200
+@@ -139,9 +139,10 @@
+ string(CONCAT HDF5_LIBRARIES_LIBTOOL ${HDF5_LIBRARIES_LIBTOOL} " -L" ${dir_name})
+ endforeach(dir_name)
+
+-foreach(lib_name ${HDF5_LIBRARIES_NAMES})
+- string(CONCAT HDF5_LIBRARIES_LIBTOOL ${HDF5_LIBRARIES_LIBTOOL} " -l" ${lib_name})
+-endforeach(lib_name)
++#foreach(lib_name ${HDF5_LIBRARIES_NAMES})
++# string(CONCAT HDF5_LIBRARIES_LIBTOOL ${HDF5_LIBRARIES_LIBTOOL} " -l" ${lib_name})
++#endforeach(lib_name)
++set(HDF5_LIBRARIES_LIBTOOL " -lhdf5_cpp -lhdf5_hl_cpp ")
+ message(STATUS "HDF5_LIBRARIES_LIBTOOL ${HDF5_LIBRARIES_LIBTOOL}")
+
+ set(HDF5_INCLUDE_LIBTOOL)
Summary(pl.UTF-8): KEALib - biblioteka rastrowego formatu plików opartego na HDF5
Name: kealib
Version: 1.4.14
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: https://github.com/ubarsc/kealib/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 494e9efc0c26f904c02c31fe2e668885
Patch0: %{name}-config.patch
+Patch1: %{name}-hdf5_libs.patch
URL: http://kealib.org/
BuildRequires: cmake >= 2.6.0
%{?with_gdal:BuildRequires: gdal-devel}
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%cmake . \