[packages/opendap-gateway_module] - new
qboosh
qboosh at pld-linux.org
Mon Mar 10 14:35:18 CET 2014
commit 343e8808bc25d062af96969ff7af2d3fbb1303c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 10 14:38:07 2014 +0100
- new
opendap-gateway_module-includes.patch | 20 ++++++++++
opendap-gateway_module-link.patch | 11 ++++++
opendap-gateway_module.spec | 72 +++++++++++++++++++++++++++++++++++
3 files changed, 103 insertions(+)
---
diff --git a/opendap-gateway_module.spec b/opendap-gateway_module.spec
new file mode 100644
index 0000000..ce11a5a
--- /dev/null
+++ b/opendap-gateway_module.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_with tests # make check (requires BES server)
+#
+Summary: Gateway module for the OPeNDAP data server
+Summary(pl.UTF-8): Moduł bramki dla serwera danych OPeNDAP
+Name: opendap-gateway_module
+Version: 1.1.1
+Release: 1
+License: LGPL v2.1+
+Group: Daemons
+Source0: http://www.opendap.org/pub/source/gateway_module-%{version}.tar.gz
+# Source0-md5: ab84958865ad4c6f6d12aa58186231c1
+Patch0: %{name}-includes.patch
+Patch1: %{name}-link.patch
+URL: http://opendap.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.10
+%{?with_tests:BuildRequires: bes >= 3.9.0}
+BuildRequires: bes-devel >= 3.9.0
+BuildRequires: curl-devel
+BuildRequires: libdap-devel >= 3.11.0
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig
+Requires: bes >= 3.9.0
+Requires: libdap >= 3.11.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is the Gateway module for the OPeNDAP data server. It allows a
+remote URL to be passed as a container to the BES, have that remote
+URL accessed, and served locally.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł bramki (Gateway) dla serwera danych OPeNDAP.
+Pozwala na przekazanie zdalnego URL-a jako kontenera do BES, który
+odwołuje się do tego zdalnego URL-a i serwuje go lokalnie.
+
+%prep
+%setup -q -n gateway_module-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+# rebuild autotools for -as-needed to work
+%{__libtoolize}
+%{__aclocal} -I conf
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__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 ChangeLog NEWS README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/gateway.conf
+%attr(755,root,root) %{_libdir}/bes/libgateway_module.so
diff --git a/opendap-gateway_module-includes.patch b/opendap-gateway_module-includes.patch
new file mode 100644
index 0000000..22f4a9f
--- /dev/null
+++ b/opendap-gateway_module-includes.patch
@@ -0,0 +1,20 @@
+--- gateway_module-1.1.1/RemoteHttpResource.cc.orig 2013-10-01 23:36:13.000000000 +0200
++++ gateway_module-1.1.1/RemoteHttpResource.cc 2014-03-10 13:32:15.848526068 +0100
+@@ -29,6 +29,7 @@
+ // ndp Nathan Potter <ndp at opendap.org>
+
+ #include <sstream>
++#include <unistd.h>
+ #include <GNURegex.h>
+
+ #include "util.h"
+--- gateway_module-1.1.1/curl_utils.cc.orig 2013-10-01 23:36:13.000000000 +0200
++++ gateway_module-1.1.1/curl_utils.cc 2014-03-10 13:51:44.065143709 +0100
+@@ -31,6 +31,7 @@
+
+ #include <GNURegex.h>
+ #include <algorithm> // std::for_each
++#include <unistd.h>
+
+
+ #include "util.h"
diff --git a/opendap-gateway_module-link.patch b/opendap-gateway_module-link.patch
new file mode 100644
index 0000000..e599450
--- /dev/null
+++ b/opendap-gateway_module-link.patch
@@ -0,0 +1,11 @@
+--- gateway_module-1.1.1/Makefile.am.orig 2013-09-12 00:26:47.000000000 +0200
++++ gateway_module-1.1.1/Makefile.am 2014-03-10 14:32:59.938373140 +0100
+@@ -30,7 +30,7 @@
+ libgateway_module_la_SOURCES = $(GATEWAY_SRCS) $(GATEWAY_HDRS)
+ libgateway_module_la_CPPFLAGS = $(BES_CPPFLAGS)
+ libgateway_module_la_LDFLAGS = -avoid-version -module
+-libgateway_module_la_LIBADD = $(BES_DAP_LIBS)
++libgateway_module_la_LIBADD = $(BES_DAP_LIBS) -ldapclient -lcurl
+
+ EXTRA_PROGRAMS =
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opendap-gateway_module.git/commitdiff/343e8808bc25d062af96969ff7af2d3fbb1303c0
More information about the pld-cvs-commit
mailing list