File ekos-debugger.spec of Package ekos-debugger

#
# spec file for package ekos-debugger
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} < 1600
%global qt6_enable OFF
%else 
%global qt6_enable ON
%endif

Name:           ekos-debugger
Version:        1.1~git.20250914
Release:        0
Summary:        Helper application for KStars, Ekos, and INDI debugging
License:        GPL-2.0-or-later
URL:            https://github.com/knro/ekosdebugger
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
%if 0%{?suse_version} < 1600
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Sql)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
BuildRequires:  cmake(Qt5DBus)
%else
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Sql)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  cmake(Qt6Core5Compat)
%endif

%description
Ekos Debugger is a helper application to KStars, Ekos, and INDI debugging. It can be used to troubleshoot KStars, INDI, or both.
The generated log files can be shared with developers in order to investigate any issues with the software and help to improve it.

%prep
%autosetup

%build
%cmake -DBUILD_WITH_QT6=%{qt6_enable}
%cmake_build

%install
%cmake_install

%files
%license COPYING
%doc README.md
%{_bindir}/ekosdebugger

%changelog
openSUSE Build Service is sponsored by