From 80cb3fb4b1588c8016e2764b15301e44e6a984e7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Jan 2018 10:58:58 +0000 Subject: [PATCH] Use libtirpc for RPC routines Resolves: fedora pr #5 --- gdal.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gdal.spec b/gdal.spec index a06d1a4..0f36e04 100644 --- a/gdal.spec +++ b/gdal.spec @@ -185,6 +185,7 @@ BuildRequires: unixODBC-devel BuildRequires: xerces-c-devel BuildRequires: xz-devel BuildRequires: zlib-devel +BuildRequires: libtirpc-devel # Run time dependency for gpsbabel driver Requires: gpsbabel @@ -415,8 +416,8 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC" %else export CFLAGS="$RPM_OPT_FLAGS -fpic" %endif -export CXXFLAGS="$CFLAGS -I%{_includedir}/libgeotiff" -export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff" +export CXXFLAGS="$CFLAGS -I%{_includedir}/libgeotiff -I%{_includedir}/tirpc" +export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff -I%{_includedir}/tirpc" # For future reference: # epsilon: Stalled review -- https://bugzilla.redhat.com/show_bug.cgi?id=660024 @@ -429,7 +430,7 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff" %endif %configure \ - LIBS=-l%{g2clib} \ + LIBS="-l%{g2clib} -ltirpc" \ --with-autoload=%{_libdir}/%{name}plugins \ --datadir=%{_datadir}/%{name}/ \ --includedir=%{_includedir}/%{name}/ \ @@ -882,6 +883,9 @@ popd #Or as before, using ldconfig %changelog +* Tue Feb 13 2018 Tom Hughes - 2.2.3-7 +- Use libtirpc for RPC routines + * Wed Feb 07 2018 Fedora Release Engineering - 2.2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild