[packages/kealib] - new

qboosh qboosh at pld-linux.org
Sun Mar 20 11:26:09 CET 2016


commit f4067d4ff5e318127857fe83e99102f5d3bcc779
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 20 11:30:08 2016 +0100

    - new

 kealib-config.patch |  55 +++++++++++++++++++++++++
 kealib.spec         | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+)
---
diff --git a/kealib.spec b/kealib.spec
new file mode 100644
index 0000000..7018c87
--- /dev/null
+++ b/kealib.spec
@@ -0,0 +1,116 @@
+#
+# Conditional build:
+%bcond_with	gdal	# GDAL module [since 2.0 GDAL has builtin KEA support]
+#
+Summary:	KEALib - HDF5 based raster file format library
+Summary(pl.UTF-8):	KEALib - biblioteka rastrowego formatu plików opartego na HDF5
+Name:		kealib
+Version:	1.4.4
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/kealib/%{name}-%{version}.tar.gz
+# Source0-md5:	a754cc25553a0a3924effdb5907317c2
+Patch0:		%{name}-config.patch
+URL:		http://kealib.org/
+BuildRequires:	cmake >= 2.6.0
+%{?with_gdal:BuildRequires:	gdal-devel}
+BuildRequires:	hdf5-c++-devel
+BuildRequires:	libstdc++-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LibKEA 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. Being based on the HDF5 standard, it will
+also provide a base from which other formats could be derived and will
+be a good choice for long term data archiving. An independent software
+library (libKEA) has been provided through which complete access to
+the KEA image format is provided alongside a GDAL driver allowing KEA
+images to be used through any GDAL supported software.
+
+%description -l pl.UTF-8
+LibKEA to projekt dostarczający implementację specyfikacji GDAL
+wewnątrz formatu plików HDF5. W szczególności format obsługuje tablice
+atrybutów rastrowych (zwykle nie zawartych w innych formatach),
+piramidy obrazów, metadane GDAL i statystyki wbudowane, zapewniając
+także obsługę dużych plików z kompresją. Dzięki oparciu na standardzie
+HDF5, zapewnia także podstawę, z której mogą wywodzić się inne
+formaty; jest także dobrym wyborem do długoterminowej archiwizacji
+danych. Udostępniono niezależną bibliotekę (libKEA), dającą pełny
+dostęp do formatu obrazów KEA, a także sterownik GDA pozwalający na
+używanie obrazów KEA w programach obsługujących GDAL.
+
+%package devel
+Summary:	Header files for LibKEA library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki LibKEA
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	hdf5-c++-devel
+Requires:	libstdc++-devel
+
+%description devel
+Header files for LibKEA library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki LibKEA.
+
+%package -n gdal-kea
+Summary:	KEA plugin for GDAL library
+Summary(pl.UTF-8):	Wtyczka KEA do biblioteki GDAL
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+%requires_ge	gdal
+
+%description -n gdal-kea
+KEA plugin for GDAL library.
+
+%description -n gdal-kea -l pl.UTF-8
+Wtyczka KEA do biblioteki GDAL.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+cd trunk
+%cmake . \
+%if %{with gdal}
+	-DGDAL_INCLUDE_DIR=%{_includedir}/gdal \
+	-DGDAL_LIB_PATH=%{_libdir} \
+%endif
+	-DHDF5_INCLUDE_DIR=%{_includedir} \
+	-DHDF5_LIB_PATH=%{_libdir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C trunk install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libdir}/libkea.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/kea-config
+%attr(755,root,root) %{_libdir}/libkea.so
+%{_includedir}/libkea
+
+%if %{with gdal}
+%files -n gdal-kea
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gdalplugins/gdal_KEA.so
+%endif
diff --git a/kealib-config.patch b/kealib-config.patch
new file mode 100644
index 0000000..d898700
--- /dev/null
+++ b/kealib-config.patch
@@ -0,0 +1,55 @@
+--- kealib-1.4.4/trunk/CMakeLists.txt.orig	2015-01-08 08:48:57.000000000 +0100
++++ kealib-1.4.4/trunk/CMakeLists.txt	2016-03-20 10:31:35.276684756 +0100
+@@ -21,7 +21,7 @@
+ endif()
+ 
+ set (PROJECT_BINARY_DIR bin)
+-set (PROJECT_LIBRARY_DIR lib)
++set (PROJECT_LIBRARY_DIR lib${LIB_SUFFIX})
+ set (PROJECT_SOURCE_DIR src)
+ set (PROJECT_HEADER_DIR include)
+ set (PROJECT_TOOLS_DIR tools)
+--- kealib-1.4.4/trunk/src/CMakeLists.txt.orig	2015-01-08 08:48:57.000000000 +0100
++++ kealib-1.4.4/trunk/src/CMakeLists.txt	2016-03-20 10:32:17.330016324 +0100
+@@ -48,6 +48,6 @@
+ 
+ ###############################################################################
+ # Installation 
+-install (TARGETS ${LIBKEA_LIB_NAME} DESTINATION lib)
++install (TARGETS ${LIBKEA_LIB_NAME} DESTINATION lib${LIB_SUFFIX})
+ install (FILES ${LIBKEA_H} DESTINATION include/libkea)
+-###############################################################################
+\ No newline at end of file
++###############################################################################
+--- kealib-1.4.4/trunk/tools/kea-config.in.orig	2015-01-08 08:48:57.000000000 +0100
++++ kealib-1.4.4/trunk/tools/kea-config.in	2016-03-20 10:33:47.626679202 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env bash
++#!/bin/sh
+ 
+ usage()
+ {
+@@ -40,10 +40,10 @@
+     echo -n "-I at CMAKE_INSTALL_PREFIX@/@PROJECT_HEADER_DIR@ "
+       ;;
+     --libs)
+-      echo -n "-L at CMAKE_INSTALL_PREFIX@/@PROJECT_LIBRARY_DIR@ -l at LIBKEA_LIB_NAME@ "
++      echo -n "-l at LIBKEA_LIB_NAME@ "
+       ;;
+     --ldflags)
+-      echo -n "@CMAKE_INSTALL_PREFIX@/@PROJECT_LIBRARY_DIR@ "
++      echo -n "-L at CMAKE_INSTALL_PREFIX@/@PROJECT_LIBRARY_DIR@ "
+       ;;
+     --includes)
+       echo -n "@CMAKE_INSTALL_PREFIX@/@PROJECT_HEADER_DIR@ "
+--- kealib-1.4.4/trunk/gdal/CMakeLists.txt.orig	2015-01-08 08:48:57.000000000 +0100
++++ kealib-1.4.4/trunk/gdal/CMakeLists.txt	2016-03-20 11:17:02.653236966 +0100
+@@ -45,5 +45,5 @@
+ 
+ ###############################################################################
+ # Installation 
+-install (TARGETS ${LIBKEA_GDAL_DRIVER} DESTINATION gdalplugins)
+-###############################################################################
+\ No newline at end of file
++install (TARGETS ${LIBKEA_GDAL_DRIVER} DESTINATION lib${LIB_SUFFIX}/gdalplugins)
++###############################################################################
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kealib.git/commitdiff/f4067d4ff5e318127857fe83e99102f5d3bcc779



More information about the pld-cvs-commit mailing list