3 %bcond_with gdal # GDAL module [since 2.0 GDAL has builtin KEA support]
5 Summary: KEALib - HDF5 based raster file format library
6 Summary(pl.UTF-8): KEALib - biblioteka rastrowego formatu plików opartego na HDF5
12 Source0: https://github.com/ubarsc/kealib/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: 494e9efc0c26f904c02c31fe2e668885
14 Patch0: %{name}-config.patch
15 URL: http://kealib.org/
16 BuildRequires: cmake >= 2.6.0
17 %{?with_gdal:BuildRequires: gdal-devel}
18 BuildRequires: hdf5-c++-devel
19 BuildRequires: libstdc++-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LibKEA is a project to provide an implementation of the GDAL
24 specification within the the HDF5 file format. Specifically, the
25 format will support raster attribute tables (commonly not included
26 within other formats), image pyramids, GDAL meta-data, in-built
27 statistics while also providing large file handling with compression
28 used throughout the file. Being based on the HDF5 standard, it will
29 also provide a base from which other formats could be derived and will
30 be a good choice for long term data archiving. An independent software
31 library (libKEA) has been provided through which complete access to
32 the KEA image format is provided alongside a GDAL driver allowing KEA
33 images to be used through any GDAL supported software.
35 %description -l pl.UTF-8
36 LibKEA to projekt dostarczający implementację specyfikacji GDAL
37 wewnątrz formatu plików HDF5. W szczególności format obsługuje tablice
38 atrybutów rastrowych (zwykle nie zawartych w innych formatach),
39 piramidy obrazów, metadane GDAL i statystyki wbudowane, zapewniając
40 także obsługę dużych plików z kompresją. Dzięki oparciu na standardzie
41 HDF5, zapewnia także podstawę, z której mogą wywodzić się inne
42 formaty; jest także dobrym wyborem do długoterminowej archiwizacji
43 danych. Udostępniono niezależną bibliotekę (libKEA), dającą pełny
44 dostęp do formatu obrazów KEA, a także sterownik GDA pozwalający na
45 używanie obrazów KEA w programach obsługujących GDAL.
48 Summary: Header files for LibKEA library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibKEA
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: hdf5-c++-devel
53 Requires: libstdc++-devel
56 Header files for LibKEA library.
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe biblioteki LibKEA.
62 Summary: KEA plugin for GDAL library
63 Summary(pl.UTF-8): Wtyczka KEA do biblioteki GDAL
65 Requires: %{name} = %{version}-%{release}
70 %description -n gdal-kea
71 KEA plugin for GDAL library.
73 %description -n gdal-kea -l pl.UTF-8
74 Wtyczka KEA do biblioteki GDAL.
83 -DGDAL_INCLUDE_DIR=%{_includedir}/gdal \
84 -DGDAL_LIB_PATH=%{_libdir} \
86 -DHDF5_INCLUDE_DIR=%{_includedir} \
87 -DHDF5_LIB_PATH=%{_libdir}
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libkea.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libkea.so.1.4
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/kea-config
111 %attr(755,root,root) %{_libdir}/libkea.so
112 %{_includedir}/libkea
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/gdalplugins/gdal_KEA.so