From e87a44a758644cc454d2b6b5778c17a9ea5acdb0 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 17 Jul 2023 11:35:06 +0200 Subject: [PATCH] split X clients to separate subpackage --- gpsd.spec | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/gpsd.spec b/gpsd.spec index fc8b0d9..de57304 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -97,13 +97,33 @@ with the libgps library from gpsd. Summary: Clients for gpsd Requires: python3-%{name} = %{epoch}:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} -Requires: python3-cairo -Requires: python3-gobject -Requires: gtk3 %description clients This package contains various clients using gpsd. +%package xclients +Summary: Graphical clients for gpsd +Requires: python3-%{name} = %{epoch}:%{version}-%{release} +Requires: python3-cairo +Requires: python3-gobject +Requires: gtk3 +# subpackage split +Conflicts: gpsd-clients < 1:3.25-6 + +%description xclients +This package contains X clients using gpsd. + +%package compat +Summary: Transitional package for gpsd-clients +Obsoletes: gpsd-clients < 1:3.25-6 +Requires: gpsd-clients = %{epoch}:%{version}-%{release} +Requires: gpsd-xclients = %{epoch}:%{version}-%{release} + +%description compat +This package only exists to help transition gpsd-clients users to the new +package split. It will be removed after one distribution release cycle, please +do not reference it or depend on it in any way. + %prep %setup -q %patch -P 1 -p1 -b .apistatus @@ -272,8 +292,6 @@ rm -rf %{buildroot}%{_docdir}/gpsd %{_bindir}/gpssubframe %{_bindir}/gpxlogger %{_bindir}/lcdgps -%{_bindir}/xgps -%{_bindir}/xgpsspeed %{_bindir}/gpsfake %{_bindir}/ubxtool %{_bindir}/zerk @@ -291,16 +309,22 @@ rm -rf %{buildroot}%{_docdir}/gpsd %{_mandir}/man1/gpssubframe.1* %{_mandir}/man1/gpxlogger.1* %{_mandir}/man1/lcdgps.1* -%{_mandir}/man1/xgps.1* -%{_mandir}/man1/xgpsspeed.1* %{_mandir}/man1/cgps.1* %{_mandir}/man1/gpscat.1* %{_mandir}/man1/gpsfake.1* %{_mandir}/man1/ubxtool.1* %{_mandir}/man1/zerk.1* + +%files xclients +%{_bindir}/xgps +%{_bindir}/xgpsspeed %{_datadir}/applications/*.desktop %dir %{_datadir}/gpsd %{_datadir}/gpsd/gpsd-logo.png +%{_mandir}/man1/xgps.1* +%{_mandir}/man1/xgpsspeed.1* + +%files compat %changelog * Thu Jun 15 2023 Python Maint - 1:3.25-5