3 %bcond_with tests # make check (requires BES server)
5 Summary: OPeNDAP server module to return a GeoTiff, JP2k, etc., file for a DAP Data response
6 Summary(pl.UTF-8): Moduł serwera OPeNDAP zwracający pliki GeoTiff, JP2k itp. jako odpowiedź DAP
7 Name: opendap-fileout_gdal
12 Source0: http://www.opendap.org/pub/source/fileout_gdal-%{version}.tar.gz
13 # Source0-md5: 85428b7c475f4cbd8b79e28aaba0bfd0
14 Patch0: %{name}-includes.patch
15 URL: http://opendap.org/
16 BuildRequires: autoconf >= 2.61
17 BuildRequires: automake >= 1:1.10
18 %{?with_tests:BuildRequires: bes >= 3.13.0}
19 BuildRequires: bes-devel >= 3.13.0
20 BuildRequires: gdal-devel >= 1.9.0
21 BuildRequires: libdap-devel >= 3.13.0
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:1.5
24 BuildRequires: pkgconfig
25 Requires: bes >= 3.13.0
26 Requires: gdal >= 1.9.0
27 Requires: libdap >= 3.13.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is the fileout GDAL response handler for Hyrax - the OPeNDAP data
32 server. With this handler a server can easily be configured to return
33 data packaged in a GeoTiff, JP2, etc., file.
35 %description -l pl.UTF-8
36 Ten pakiet zawiera moduł serwera danych OPeNDAP (Hyrax) obsługujący
37 odpowiedzi fileout GDAL. Przy jego użyciu można łatwo skonfigurować
38 serwer, aby zwracał dane spakowane w pliku GeoTiff, JP2 itp.
41 %setup -q -n fileout_gdal-%{version}
45 # rebuild autotools for -as-needed to work
52 --with-openjpeg-prefix=/usr
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 ChangeLog NEWS README
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fong.conf
72 %attr(755,root,root) %{_libdir}/bes/libfong_module.so