Name: kealib Version: 1.5.0 Release: 8%{?dist} Summary: HDF5 Based Raster File Format as a GDAL plugin License: MIT URL: http://kealib.org/ Source0: https://github.com/ubarsc/kealib/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ccache BuildRequires: gdal-devel BuildRequires: proj-devel BuildRequires: hdf5-devel Requires: gdal %description KEALib is a project to provide an implementation of the GDAL specification within the the HDF5 file format. Specifically, the format will support raster attribute tables (commonly not included within other formats), image pyramids, GDAL meta-data, in-built statistics while also providing large file handling with compression used throughout the file. %package devel Summary: KEA development headers Requires: %{name}%{?_isa} = %{version}-%{release} %description devel KEA development headers %prep %setup -q # fix wrong lib entry sed -i 's+set (PROJECT_LIBRARY_DIR lib)+set (PROJECT_LIBRARY_DIR %{_lib})+g' %{_builddir}/%{name}-%{version}/CMakeLists.txt %build # compile with kealib as a GDAL plugin (LIBKEA_WITH_GDAL:BOOL=ON) %cmake \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_BUILD_TYPE:STRING="Release" \ -DGDAL_INCLUDE_DIR:PATH=%{_includedir}/gdal \ -DGDAL_LIB_PATH:PATH=%{_libdir} \ -DHDF5_INCLUDE_DIR:PATH=%{_includedir} \ -DHDF5_LIB_PATH:PATH=%{_libdir} \ -DHDF5_STATIC_LIBS:BOOL=OFF \ -DLIBKEA_WITH_GDAL:BOOL=ON \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} . %cmake_build %install %cmake_install %ifnarch %ix86 # needed since libkea insists on using /usr/lib/ target nontheless sed above mkdir -p %{buildroot}%{_libdir}/ %{buildroot}%{_libdir}/gdalplugins/ mv %{buildroot}%{_prefix}/lib/libkea* %{buildroot}%{_libdir}/ mv %{buildroot}%{_prefix}/lib/gdalplugins/* %{buildroot}%{_libdir}/gdalplugins/ %endif %files %{_libdir}/libkea.so.1* %{_libdir}/gdalplugins/gdal_KEA.so %doc Changes.txt README.md %license LICENSE.txt %files devel %{_bindir}/kea-config %{_libdir}/libkea.so %{_includedir}/libkea %changelog * Mon May 13 2024 Sandro Mani - 1.5.0-8 - Rebuild (gdal) * Wed Jan 24 2024 Fedora Release Engineering - 1.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 15 2023 Sandro Mani - 1.5.0-5 - Rebuild (gdal) * Thu Jul 20 2023 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu May 11 2023 Sandro Mani - 1.5.0-3 - Rebuild (gdal) * Thu Jan 19 2023 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 23 2022 Markus Neteler - 1.5.0-1 - New upstream version kealib 1.5.0 with GDAL 3.6.0 support * Sat Nov 12 2022 Sandro Mani - 1.4.15-3 - Rebuild (gdal) * Fri Nov 04 2022 Markus Neteler - 1.4.15-2 - fix i386/i686 compilation * Fri Nov 04 2022 Markus Neteler - 1.4.15-1 - new upstream version * Wed Dec 22 2021 Markus Neteler - 1.4.14-1 - new upstream version * Tue Oct 06 2020 Markus Neteler - 1.4.13-3 - updated after package review RHBZ#1876864 * Wed Sep 16 2020 Markus Neteler - 1.4.13-2 - updated after package review RHBZ#1876864 * Wed Aug 19 2020 Markus Neteler - 1.4.13-1 - new upstream version * Thu Sep 14 2017 Markus Neteler - 1.4.6-1 - initial packaging