Name: kealib Version: 1.4.15 Release: 1%{?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 # 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/ %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 * 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