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 BuildRequires: rpmbuild(macros) >= 1.605
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 LibKEA is a project to provide an implementation of the GDAL
25 specification within the the HDF5 file format. Specifically, the
26 format will support raster attribute tables (commonly not included
27 within other formats), image pyramids, GDAL meta-data, in-built
28 statistics while also providing large file handling with compression
29 used throughout the file. Being based on the HDF5 standard, it will
30 also provide a base from which other formats could be derived and will
31 be a good choice for long term data archiving. An independent software
32 library (libKEA) has been provided through which complete access to
33 the KEA image format is provided alongside a GDAL driver allowing KEA
34 images to be used through any GDAL supported software.
36 %description -l pl.UTF-8
37 LibKEA to projekt dostarczający implementację specyfikacji GDAL
38 wewnątrz formatu plików HDF5. W szczególności format obsługuje tablice
39 atrybutów rastrowych (zwykle nie zawartych w innych formatach),
40 piramidy obrazów, metadane GDAL i statystyki wbudowane, zapewniając
41 także obsługę dużych plików z kompresją. Dzięki oparciu na standardzie
42 HDF5, zapewnia także podstawę, z której mogą wywodzić się inne
43 formaty; jest także dobrym wyborem do długoterminowej archiwizacji
44 danych. Udostępniono niezależną bibliotekę (libKEA), dającą pełny
45 dostęp do formatu obrazów KEA, a także sterownik GDA pozwalający na
46 używanie obrazów KEA w programach obsługujących GDAL.
49 Summary: Header files for LibKEA library
50 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibKEA
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 Requires: hdf5-c++-devel
54 Requires: libstdc++-devel
57 Header files for LibKEA library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki LibKEA.
63 Summary: KEA plugin for GDAL library
64 Summary(pl.UTF-8): Wtyczka KEA do biblioteki GDAL
66 Requires: %{name} = %{version}-%{release}
71 %description -n gdal-kea
72 KEA plugin for GDAL library.
74 %description -n gdal-kea -l pl.UTF-8
75 Wtyczka KEA do biblioteki GDAL.
84 -DGDAL_INCLUDE_DIR=%{_includedir}/gdal \
85 -DGDAL_LIB_PATH=%{_libdir} \
87 -DHDF5_INCLUDE_DIR=%{_includedir} \
88 -DHDF5_LIB_PATH=%{_libdir}
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libkea.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libkea.so.1.4
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/kea-config
112 %attr(755,root,root) %{_libdir}/libkea.so
113 %{_includedir}/libkea
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/gdalplugins/gdal_KEA.so