]>
Commit | Line | Data |
---|---|---|
343e8808 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # make check (requires BES server) | |
4 | # | |
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 | |
393fe8f2 | 8 | Version: 1.1.2 |
343e8808 JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Daemons | |
12 | Source0: http://www.opendap.org/pub/source/gateway_module-%{version}.tar.gz | |
393fe8f2 | 13 | # Source0-md5: bf91212327e59bbd7eeb168b4cfb818a |
343e8808 JB |
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 | |
393fe8f2 JB |
19 | %{?with_tests:BuildRequires: bes >= 3.13.0} |
20 | BuildRequires: bes-devel >= 3.13.0 | |
343e8808 | 21 | BuildRequires: curl-devel |
393fe8f2 | 22 | BuildRequires: libdap-devel >= 3.13.0 |
343e8808 JB |
23 | BuildRequires: libstdc++-devel |
24 | BuildRequires: libtool >= 2:1.5 | |
25 | BuildRequires: pkgconfig | |
393fe8f2 JB |
26 | Requires: bes >= 3.13.0 |
27 | Requires: libdap >= 3.13.0 | |
343e8808 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
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. | |
34 | ||
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. | |
39 | ||
40 | %prep | |
41 | %setup -q -n gateway_module-%{version} | |
42 | %patch0 -p1 | |
43 | %patch1 -p1 | |
44 | ||
45 | %build | |
46 | # rebuild autotools for -as-needed to work | |
47 | %{__libtoolize} | |
48 | %{__aclocal} -I conf | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
51 | %{__automake} | |
52 | %configure | |
53 | %{__make} | |
54 | ||
55 | %{?with_tests:%{__make} check} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
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 |