[packages/opendap-wcs_gateway_module] - new
qboosh
qboosh at pld-linux.org
Wed Mar 12 08:09:59 CET 2014
commit 551da0306b0d30ea2e493a32eb8f1ed76018cf3c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 12 08:12:50 2014 +0100
- new
opendap-wcs_gateway_module-includes.patch | 10 ++++
opendap-wcs_gateway_module-versions.patch | 32 +++++++++++++
opendap-wcs_gateway_module.spec | 78 +++++++++++++++++++++++++++++++
3 files changed, 120 insertions(+)
---
diff --git a/opendap-wcs_gateway_module.spec b/opendap-wcs_gateway_module.spec
new file mode 100644
index 0000000..e9db7c1
--- /dev/null
+++ b/opendap-wcs_gateway_module.spec
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_with tests # make check (requires BES server)
+#
+Summary: WCS Request module for the OPeNDAP data server
+Summary(pl.UTF-8): Moduł żądań WCS dla serwera danych OPeNDAP
+Name: opendap-wcs_gateway_module
+Version: 1.1.0
+Release: 1
+License: LGPL v2.1+
+Group: Daemons
+Source0: http://www.opendap.org/pub/source/wcs_gateway_module-%{version}.tar.gz
+# Source0-md5: 1527f2207b30dd8528745a61dc6574aa
+Patch0: %{name}-versions.patch
+Patch1: %{name}-includes.patch
+URL: http://opendap.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.10
+%{?with_tests:BuildRequires: bes >= 3.8.0}
+BuildRequires: bes-devel >= 3.8.0
+%{?with_tests:BuildRequires: cppunit-devel >= 1.12.0}
+BuildRequires: curl-devel >= 7.10.6
+BuildRequires: libdap-devel >= 3.10.0
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: libxml2-devel >= 1:2.5.7
+BuildRequires: pkgconfig
+Requires: bes >= 3.8.0
+Requires: curl >= 7.10.6
+Requires: libdap >= 3.10.0
+Requires: libxml2 >= 1:2.5.7
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is the WCS request module that is to be loaded in to the OPeNDAP
+Back-End Server (BES). It makes a WCS request, which returns a netcdf
+or hdf file, then reads the reponse files and returns DAP responses
+that are compatible with DAP2 and the dap-server software.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł żądań WCS ładowany do serwera backendu danych
+(BES) OPeNDAP. Tworzy żądania WCS, zwracające pliki netcdf lub hdf, a
+następnie odczytuje pliki odpowiedzi i zwraca odpowiedzi DAP zgodne z
+oprogramowaniem DAP2 i dap-server.
+
+%prep
+%setup -q -n wcs_gateway_module-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I conf
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-static
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYRIGHT_URI ChangeLog NEWS README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/wcsg.conf
+%attr(755,root,root) %{_libdir}/bes/libwcs_gateway_module.so
diff --git a/opendap-wcs_gateway_module-includes.patch b/opendap-wcs_gateway_module-includes.patch
new file mode 100644
index 0000000..3dabf94
--- /dev/null
+++ b/opendap-wcs_gateway_module-includes.patch
@@ -0,0 +1,10 @@
+--- wcs_gateway_module-1.1.0/WCSGatewayUtils.cc.orig 2010-01-11 04:23:18.000000000 +0100
++++ wcs_gateway_module-1.1.0/WCSGatewayUtils.cc 2014-03-11 20:16:45.940548351 +0100
+@@ -32,6 +32,7 @@
+
+ #include "config.h"
+
++#include <string.h>
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
diff --git a/opendap-wcs_gateway_module-versions.patch b/opendap-wcs_gateway_module-versions.patch
new file mode 100644
index 0000000..4a33eff
--- /dev/null
+++ b/opendap-wcs_gateway_module-versions.patch
@@ -0,0 +1,32 @@
+--- wcs_gateway_module-1.1.0/configure.ac.orig 2010-02-06 16:00:46.000000000 +0100
++++ wcs_gateway_module-1.1.0/configure.ac 2014-03-11 20:11:47.457227543 +0100
+@@ -64,7 +64,7 @@
+ dnl version.
+
+ dnl First test the minimum
+- if test $version_M -lt 2 || test $version_m -lt 5 || test $version_m_m -lt 7
++ if test $version_M -lt 2 || test $version_m -lt 5 || test $version_m -eq 5 -a $version_m_m -lt 7
+ then
+ AC_MSG_ERROR([must have libxml2 2.5.7 or greater, found $version_libxml2])
+ fi
+@@ -79,6 +79,11 @@
+ AC_DEFINE(LIBXML2_5_10, [1], [define if you have xml2 2.5.10 or greater])
+ AC_DEFINE(LIBXML2_6_16, [1], [define if you have xml2 2.6.16 or greater])
+ fi
++ if test $version_M -eq 2 && test $version_m -ge 7
++ then
++ AC_DEFINE(LIBXML2_5_10, [1], [define if you have xml2 2.5.10 or greater])
++ AC_DEFINE(LIBXML2_6_16, [1], [define if you have xml2 2.6.16 or greater])
++ fi
+
+ LIBS="$LIBS `xml2-config --libs`"
+ CPPFLAGS="$CPPFLAGS `xml2-config --cflags`"
+@@ -95,7 +100,7 @@
+ version_libcurl=`curl-config --version`
+ version_major=`echo $version_libcurl | sed 's@^libcurl \([[0-9]]\)*\.\([[0-9]]*\)\.\([[0-9]]*\)$@\1@'`
+ version_minor=`echo $version_libcurl | sed 's@^libcurl \([[0-9]]\)*\.\([[0-9]]*\)\.\([[0-9]]*\)$@\2@'`
+- if test $version_major -lt 7 || test $version_minor -lt 10 || test $version_minor -lt 6
++ if test $version_major -lt 7 || test $version_minor -lt 10
+ then
+ AC_MSG_ERROR([must have libcurl 7.10.6 or greater, found $version_libcurl])
+ fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opendap-wcs_gateway_module.git/commitdiff/551da0306b0d30ea2e493a32eb8f1ed76018cf3c
More information about the pld-cvs-commit
mailing list