]> git.pld-linux.org Git - packages/opendap-fileout_gdal.git/commitdiff
- new auto/th/opendap-fileout_gdal-0.9.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Mar 2014 07:03:17 +0000 (08:03 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Mar 2014 07:03:17 +0000 (08:03 +0100)
opendap-fileout_gdal-includes.patch [new file with mode: 0644]
opendap-fileout_gdal.spec [new file with mode: 0644]

diff --git a/opendap-fileout_gdal-includes.patch b/opendap-fileout_gdal-includes.patch
new file mode 100644 (file)
index 0000000..9ca6c35
--- /dev/null
@@ -0,0 +1,20 @@
+--- fileout_gdal-0.9.2/GeoTiffTransmitter.cc.orig      2013-10-01 23:36:18.000000000 +0200
++++ fileout_gdal-0.9.2/GeoTiffTransmitter.cc   2014-03-10 02:57:33.070124249 +0100
+@@ -26,6 +26,7 @@
+ #include <cstdlib>
++#include <unistd.h>
+ #include <sys/types.h>                  // For umask
+ #include <sys/stat.h>
+--- fileout_gdal-0.9.2/JPEG2000Transmitter.cc.orig     2013-10-01 23:36:18.000000000 +0200
++++ fileout_gdal-0.9.2/JPEG2000Transmitter.cc  2014-03-10 02:58:12.953455910 +0100
+@@ -26,6 +26,7 @@
+ #include <cstdlib>
++#include <unistd.h>
+ #include <sys/types.h>                  // For umask
+ #include <sys/stat.h>
diff --git a/opendap-fileout_gdal.spec b/opendap-fileout_gdal.spec
new file mode 100644 (file)
index 0000000..0fec2f3
--- /dev/null
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_with    tests   # make check (requires BES server)
+#
+Summary:       OPeNDAP server module to return a GeoTiff, JP2k, etc., file for a DAP Data response
+Summary(pl.UTF-8):     Moduł serwera OPeNDAP zwracający pliki GeoTiff, JP2k itp. jako odpowiedź DAP
+Name:          opendap-fileout_gdal
+Version:       0.9.2
+Release:       1
+License:       LGPL v2.1+
+Group:         Daemons
+Source0:       http://www.opendap.org/pub/source/fileout_gdal-%{version}.tar.gz
+# Source0-md5: 45750b1bd1707848f9bc2d9bbb52f098
+Patch0:                %{name}-includes.patch
+URL:           http://opendap.org/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.10
+%{?with_tests:BuildRequires:   bes >= 3.11.0}
+BuildRequires: bes-devel >= 3.11.0
+BuildRequires: gdal-devel >= 1.9.0
+BuildRequires: libdap-devel >= 3.11.0
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig
+Requires:      bes >= 3.11.0
+Requires:      gdal >= 1.9.0
+Requires:      libdap >= 3.11.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is the fileout GDAL response handler for Hyrax - the OPeNDAP data
+server. With this handler a server can easily be configured to return
+data packaged in a GeoTiff, JP2, etc., file.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł serwera danych OPeNDAP (Hyrax) obsługujący
+odpowiedzi fileout GDAL. Przy jego użyciu można łatwo skonfigurować
+serwer, aby zwracał dane spakowane w pliku GeoTiff, JP2 itp.
+
+%prep
+%setup -q -n fileout_gdal-%{version}
+%patch0 -p1
+
+%build
+# rebuild autotools for -as-needed to work
+%{__libtoolize}
+%{__aclocal} -I conf
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --with-openjpeg-prefix=/usr
+%{__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 ChangeLog NEWS README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/fong.conf
+%attr(755,root,root) %{_libdir}/bes/libfong_module.so
This page took 0.076117 seconds and 4 git commands to generate.