3 %bcond_with tests # make check (requires BES server)
5 Summary: NetCDF 3 data handler module for the OPeNDAP data server
6 Summary(pl.UTF-8): Moduł obsługujący dane NetCDF 3 dla serwera danych OPeNDAP
7 Name: opendap-netcdf_handler
12 Source0: http://www.opendap.org/pub/source/netcdf_handler-%{version}.tar.gz
13 # Source0-md5: a4453fbf1f2a73ede4aa399cd02021c3
14 URL: http://opendap.org/
15 BuildRequires: autoconf >= 2.61
16 BuildRequires: automake >= 1:1.10
17 %{?with_tests:BuildRequires: bes >= 3.9.0}
18 BuildRequires: bes-devel >= 3.9.0
19 BuildRequires: libdap-devel >= 3.11.0
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool >= 2:2
22 BuildRequires: netcdf-devel >= 3.6
23 BuildRequires: pkgconfig
24 Requires: bes >= 3.9.0
25 Requires: libdap >= 3.11.0
26 Requires: netcdf >= 3.6
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is the NetCDF data handler module for the OPeNDAP data server. It
31 reads NetCDF 3 files and returns DAP responses that are compatible
32 with DAP2 and the dap-server software.
34 %description -l pl.UTF-8
35 Ten pakiet zawiera moduł obsługujący dane NetCDF dla serwera danych
36 OPeNDAP. Odczytuje pliki NetCDF 3 i zwraca odpowiedzi DAP zgodne z
37 oprogramowaniem DAP2 i dap-server.
40 %setup -q -n netcdf_handler-%{version}
43 # rebuild autotools for -as-needed to work
52 %{?with_tests:%{__make} check}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
60 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.la
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc COPYRIGHT ChangeLog NEWS README
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/nc.conf
69 %attr(755,root,root) %{_libdir}/bes/libnc_module.so
70 %dir %{_datadir}/hyrax/data/nc
71 %{_datadir}/hyrax/data/nc/*.das
72 %{_datadir}/hyrax/data/nc/*.nc
73 %doc %{_datadir}/hyrax/data/nc/*.nc.html