From b93fae760d8df1d30b06296f6b4bbf604b53d550 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 20 Feb 2024 15:47:35 +0100 Subject: [PATCH] drop unneeded API-compatibility patch --- gpsd-apistatus.patch | 16 ---------------- gpsd.spec | 4 ---- 2 files changed, 20 deletions(-) delete mode 100644 gpsd-apistatus.patch diff --git a/gpsd-apistatus.patch b/gpsd-apistatus.patch deleted file mode 100644 index 5380585..0000000 --- a/gpsd-apistatus.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/include/gps.h b/include/gps.h -index 55b9aa621..e5935304d 100644 ---- a/include/gps.h -+++ b/include/gps.h -@@ -173,6 +173,11 @@ struct gps_fix_t { - * PPS is the encrypted military P(Y)-code */ - #define STATUS_PPS_FIX 9 - -+// Old status names for compatibility -+#define STATUS_NO_FIX STATUS_UNK -+#define STATUS_FIX STATUS_GPS -+#define STATUS_DGPS_FIX STATUS_DGPS -+ - double ept; // Expected time uncertainty, seconds - double latitude; // Latitude in degrees (valid if mode >= 2) - double epy; // Latitude position uncertainty, meters diff --git a/gpsd.spec b/gpsd.spec index 82d50e2..8bd4f05 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -18,9 +18,6 @@ URL: https://gpsd.gitlab.io/gpsd/index.html Source0: https://download-mirror.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.gz Source11: gpsd.sysconfig -# Add old status names to gps.h for compatibility -Patch1: gpsd-apistatus.patch - BuildRequires: gcc BuildRequires: dbus-devel BuildRequires: ncurses-devel @@ -138,7 +135,6 @@ do not reference it or depend on it in any way. %prep %setup -q -%patch -P 1 -p1 -b .apistatus # don't try reloading systemd when installing in the build root sed -i 's|systemctl daemon-reload|true|' SConscript