3 %bcond_with tests # make check (requires BES server)
5 Summary: Gateway module for the OPeNDAP data server
6 Summary(pl.UTF-8): Moduł bramki dla serwera danych OPeNDAP
7 Name: opendap-gateway_module
12 Source0: http://www.opendap.org/pub/source/gateway_module-%{version}.tar.gz
13 # Source0-md5: ab84958865ad4c6f6d12aa58186231c1
14 Patch0: %{name}-includes.patch
15 Patch1: %{name}-link.patch
16 URL: http://opendap.org/
17 BuildRequires: autoconf >= 2.59
18 BuildRequires: automake >= 1:1.10
19 %{?with_tests:BuildRequires: bes >= 3.9.0}
20 BuildRequires: bes-devel >= 3.9.0
21 BuildRequires: curl-devel
22 BuildRequires: libdap-devel >= 3.11.0
23 BuildRequires: libstdc++-devel
24 BuildRequires: libtool >= 2:1.5
25 BuildRequires: pkgconfig
26 Requires: bes >= 3.9.0
27 Requires: libdap >= 3.11.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is the Gateway module for the OPeNDAP data server. It allows a
32 remote URL to be passed as a container to the BES, have that remote
33 URL accessed, and served locally.
35 %description -l pl.UTF-8
36 Ten pakiet zawiera moduł bramki (Gateway) dla serwera danych OPeNDAP.
37 Pozwala na przekazanie zdalnego URL-a jako kontenera do BES, który
38 odwołuje się do tego zdalnego URL-a i serwuje go lokalnie.
41 %setup -q -n gateway_module-%{version}
46 # rebuild autotools for -as-needed to work
55 %{?with_tests:%{__make} check}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc COPYRIGHT ChangeLog NEWS README
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/gateway.conf
72 %attr(755,root,root) %{_libdir}/bes/libgateway_module.so