From 4a2d93438ffbe6ba896cf4a7a623bb89b5fd5cb9 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 17 May 2014 21:09:19 +0200 Subject: [PATCH] - new --- opendap-ugrid_functions-sh.patch | 11 +++++ opendap-ugrid_functions.spec | 74 ++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 opendap-ugrid_functions-sh.patch create mode 100644 opendap-ugrid_functions.spec diff --git a/opendap-ugrid_functions-sh.patch b/opendap-ugrid_functions-sh.patch new file mode 100644 index 0000000..c545994 --- /dev/null +++ b/opendap-ugrid_functions-sh.patch @@ -0,0 +1,11 @@ +--- ugrid_functions-1.0.1/configure.ac.orig 2014-04-24 00:13:23.000000000 +0200 ++++ ugrid_functions-1.0.1/configure.ac 2014-05-17 20:28:56.995109518 +0200 +@@ -100,7 +100,7 @@ + version_libgf=`gridfields-config --version | sed 's@gridfields \(.*\)@\1@'` + AX_COMPARE_VERSION([$version_libgf], [ge], [$libgf_needed], [libgf_ok='yes'], [libgf_ok='no']) + +- if test "$libgf_ok"="no" ++ if test "$libgf_ok" = "no" + then + AC_MSG_ERROR([must have libgf $libgf_needed or greater, found $version_libgf]) + fi diff --git a/opendap-ugrid_functions.spec b/opendap-ugrid_functions.spec new file mode 100644 index 0000000..1c1db73 --- /dev/null +++ b/opendap-ugrid_functions.spec @@ -0,0 +1,74 @@ +# +# Conditional build: +%bcond_with tests # make check (requires BES server) +# +Summary: ugrid functions handler for the OPeNDAP data server +Summary(pl.UTF-8): Moduł obsługi funkcji ugrid dla serwera danych OPeNDAP +Name: opendap-ugrid_functions +Version: 1.0.1 +Release: 1 +License: LGPL v2.1+ +Group: Daemons +Source0: http://www.opendap.org/pub/source/ugrid_functions-%{version}.tar.gz +# Source0-md5: 8ab724ae7a8629a2414311eb75a013de +Patch0: %{name}-sh.patch +URL: http://opendap.org/ +BuildRequires: autoconf >= 2.59 +BuildRequires: automake >= 1:1.10 +%{?with_tests:BuildRequires: bes >= 3.13.0} +BuildRequires: bes-devel >= 3.13.0 +%{?with_tests:BuildRequires: cppunit-devel >= 1.12.0} +BuildRequires: gridfields-devel >= 1.0.3 +BuildRequires: libdap-devel >= 3.13.0 +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:1.5 +BuildRequires: pkgconfig +Requires: bes >= 3.13.0 +Requires: libdap >= 3.13.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is the ugrid (Unstructured Grid or irregular mesh) subsetting +function handler for Hyrax. This Hyrax server function will subset a +compliant ugrid mesh and return a mesh that is also compliant. The +subset can be specified using latitude, longitude and time. + +%description -l pl.UTF-8 +Ten pakiet zawiera moduł ugrid (Unstructured Grid - tablicy bez +struktury lub maski nieregularnej) obsługujący funkcję podzbioru dla +serwera Hyrax. Funkcja serwera wyliczy podzbiór zgodny z siatką ugrid +i zwróci także zgodną siatkę. Podzbiór może być określony przy użyciu +szerokości, długości i czasu. + +%prep +%setup -q -n ugrid_functions-%{version} +%patch0 -p1 + +%build +# rebuild autotools for -as-needed to work +%{__libtoolize} +%{__aclocal} -I conf +%{__autoconf} +%{__autoheader} +%{__automake} +%configure +%{__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 INSTALL NEWS README +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/ugrid_functions.conf +%attr(755,root,root) %{_libdir}/bes/libugrid_functions.so -- 2.44.0