--- /dev/null
+--- qlandkartegt-1.8.1/src/CDeviceGPSD.cpp~ 2014-08-08 11:53:27.000000000 +0200
++++ qlandkartegt-1.8.1/src/CDeviceGPSD.cpp 2019-11-03 16:25:35.889558025 +0100
+@@ -212,7 +212,9 @@
+ } // if
+ else if( FD_ISSET( gpsdata->gps_fd, &fds ) )
+ {
+-#if GPSD_API_MAJOR_VERSION >= 5
++#if GPSD_API_MAJOR_VERSION >= 6
++ gps_read( gpsdata, NULL, 0 );
++#elif GPSD_API_MAJOR_VERSION >= 5
+ gps_read( gpsdata );
+ #else
+ gps_poll( gpsdata );
Summary(pl.UTF-8): Klon MapSource pod Linuksa
Name: qlandkartegt
Version: 1.8.1
-Release: 5
+Release: 6
License: GPLv2
Group: X11/Applications
Source0: http://downloads.sourceforge.net/qlandkartegt/%{name}-%{version}.tar.gz
# Source0-md5: 2bfe90aff7e21b19572b7b250d76a540
Patch0: gcc8.patch
+Patch1: gpsd-3.19.patch
URL: http://qlandkarte.org
BuildRequires: QtCore-devel >= 4.6.0
BuildRequires: QtDBus-devel >= 4.6.0
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
install -d build