diff --git a/plasma-workspace-5.19.4-gpsd-3.21.patch b/plasma-workspace-5.19.4-gpsd-3.21.patch new file mode 100644 index 0000000..f2b56d4 --- /dev/null +++ b/plasma-workspace-5.19.4-gpsd-3.21.patch @@ -0,0 +1,26 @@ +From e3134289f522edb140797818fffd60d641b86cd8 Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Wed, 5 Aug 2020 14:07:24 +0200 +Subject: [PATCH] Fix build with gpsd 3.21 + +Adapt to API changes +--- + dataengines/geolocation/location_gps.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/dataengines/geolocation/location_gps.cpp b/dataengines/geolocation/location_gps.cpp +index 021c29ac5..476117ca3 100644 +--- a/dataengines/geolocation/location_gps.cpp ++++ b/dataengines/geolocation/location_gps.cpp +@@ -65,7 +65,11 @@ void Gpsd::run() + if (m_gpsdata->online) { + #endif + //qDebug() << "online"; ++#if GPSD_API_MAJOR_VERSION >= 10 ++ if (m_gpsdata->fix.status != STATUS_NO_FIX) { ++#else + if (m_gpsdata->status != STATUS_NO_FIX) { ++#endif + //qDebug() << "fix"; + d["accuracy"] = 30; + d["latitude"] = QString::number(m_gpsdata->fix.latitude); diff --git a/plasma-workspace.spec b/plasma-workspace.spec index 40fa64c..bb80886 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -2,7 +2,7 @@ Name: plasma-workspace Version: 5.19.4 -Release: 1mamba +Release: 2mamba Summary: KDE Frameworks 5 Workspace Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -13,6 +13,7 @@ Source: http://download.kde.org/stable/plasma/%{plasmaver}/plasma-workspa Source1: plasma-workspace-pam Source2: plasma-workspace-pam-no-password Source3: openmamba.plasma.logo.png +Patch0: plasma-workspace-5.19.4-gpsd-3.21.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -89,6 +90,7 @@ BuildRequires: libxcb-image-devel BuildRequires: libxcb-util-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END +BuildRequires: libgps-devel >= 3.21-1mamba BuildRequires: libqalculate-devel >= 2.6.2-1mamba BuildRequires: libkscreen-devel >= 5.6.1-1mamba BuildRequires: cmake @@ -148,6 +150,7 @@ This package contains libraries and header files for developing applications tha %prep %setup -q +%patch0 -p1 %build %cmake_kde5 -d build @@ -335,6 +338,9 @@ exit 0 %{_libdir}/cmake/LibColorCorrect/LibColorCorrect*.cmake %changelog +* Thu Aug 20 2020 Silvan Calarco 5.19.4-2mamba +- rebuilt by autoport with build requirements: libgps-devel>=3.21-1mamba + * Thu Jul 30 2020 Automatic Build System 5.19.4-1mamba - automatic version update by autodist