From e70c09ce477e60615dcaa240c7cb2df8a79b9579 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 16 Apr 2024 14:08:08 +0200 Subject: [PATCH] fix dependencies for build without libs Related: RHEL-14750 --- gpsd.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsd.spec b/gpsd.spec index 53ce403..f795780 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -89,7 +89,9 @@ manage access to a GPS for applications %if %{with_qt} %package qt Summary: C++/Qt5 bindings for the gpsd library +%if %{with_libs} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} +%endif %description qt This package provide C++ and Qt bindings for use with the libgps library from @@ -97,7 +99,6 @@ gpsd. %package qt-devel Summary: Development files for the C++/Qt5 bindings for the gpsd library -Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-qt%{?_isa} = %{epoch}:%{version}-%{release} %description qt-devel @@ -107,7 +108,9 @@ with the libgps library from gpsd. %package -n python3-%{name} Summary: Python libraries and modules for use with gpsd +%if %{with_libs} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} +%endif Requires: python3-pyserial %{?python_provide:%python_provide python3-%{name}} @@ -118,7 +121,9 @@ applications. %package clients Summary: Clients for gpsd Requires: python3-%{name} = %{epoch}:%{version}-%{release} +%if %{with_libs} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} +%endif %description clients This package contains various clients using gpsd.