--- /dev/null
+--- libdap-3.20.11/conf/ox_rhel8_tirpc.m4.orig 2022-07-01 20:20:09.000000000 +0200
++++ libdap-3.20.11/conf/ox_rhel8_tirpc.m4 2023-01-19 06:26:19.183531210 +0100
+@@ -27,7 +27,7 @@ AS_IF([test -f /etc/redhat-release && gr
+ dnl if this is RHEL8, then we need the tirpc library on CPPFLAGS and LDFLAGS
+ [
+ AC_MSG_NOTICE([Found a RHEL 8 or equivalent system...])
+- AS_IF([grep -q -v tirpc <<< $CPPFLAGS || grep -q -v tirpc <<< $LDFLAGS],
++ AS_IF([echo $CPPFLAGS | grep -q -v tirpc || echo $LDFLAGS | grep -q -v tirpc],
+ dnl if either CPPFLAGS or LDFLAGS lack 'tirpc', error
+ [
+ AC_MSG_ERROR([Libdap4 on Redhat Linux 8 requires the tirpc library be included on CPPFLAGS and LDFLAGS])
Libs: -L${libdir} -ldap
Libs.private: @xmlprivatelibs@ @PTHREAD_LIBS@
Requires.private: @xmlprivatereq@
---- libdap-3.20.6/dap-config.in.orig 2020-11-28 10:24:22.919805642 +0100
-+++ libdap-3.20.6/dap-config.in 2020-11-28 10:24:30.039767070 +0100
-@@ -56,7 +56,7 @@
- ;;
-
+--- libdap-3.20.11/dap-config.in.orig 2023-01-18 22:31:36.363868299 +0100
++++ libdap-3.20.11/dap-config.in 2023-01-18 22:32:15.696988547 +0100
+@@ -59,7 +59,7 @@ while test $# -gt 0; do
+ # which avoids issues with IDE warnings and will help later when there are
+ # two libdap libraries. jhrg 6/17/21
--cflags)
-- echo "-I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@"
-+ echo "-I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@ @TIRPC_CFLAGS@"
+- echo "-I${includedir} -I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@"
++ echo "-I${includedir} -I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@ @TIRPC_CFLAGS@"
;;
--libs)
Summary: OPeNDAP C++ implementation of the Data Access Protocol
Summary(pl.UTF-8): OPeNDAP - implementacja w C++ protokoĊu DAP (Data Access Protocol)
Name: libdap
-Version: 3.20.6
+Version: 3.20.11
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: https://www.opendap.org/pub/source/%{name}-%{version}.tar.gz
-# Source0-md5: 314de766b550de9a53fe49570149f84f
+# Source0-md5: 2072499296f396a07d886537f0b86ccd
Patch0: %{name}-tirpc.patch
Patch1: %{name}-config-no-libdirs.patch
+Patch2: %{name}-sh.patch
URL: https://www.opendap.org/
BuildRequires: autoconf >= 2.63
BuildRequires: automake
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%attr(755,root,root) %{_bindir}/getdap
%attr(755,root,root) %{_bindir}/getdap4
%attr(755,root,root) %{_libdir}/libdap.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdap.so.25
+%attr(755,root,root) %ghost %{_libdir}/libdap.so.27
%attr(755,root,root) %{_libdir}/libdapclient.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libdapclient.so.6
%attr(755,root,root) %{_libdir}/libdapserver.so.*.*.*