File lxi-tools.spec of Package lxi-tools
#
# spec file for package lxi-tools
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
Name:           lxi-tools
Version:        2.8
Release:        0
Summary:        Tools for managing LXI-compatible instruments
License:        BSD-3-Clause
URL:            https://github.com/lxi-tools/lxi-tools
Source0:        https://github.com/lxi-tools/lxi-tools/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:        https://github.com/lxi-tools/lxi-tools/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
BuildRequires:  c_compiler
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(bash-completion)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.74
BuildRequires:  pkgconfig(gtk4) >= 4.6.0
BuildRequires:  pkgconfig(gtksourceview-5) >= 5.4.0
BuildRequires:  pkgconfig(json-glib-1.0) >= 1.4
BuildRequires:  pkgconfig(libadwaita-1) >= 1.2
BuildRequires:  pkgconfig(liblxi) >= 1.13
BuildRequires:  pkgconfig(lua)
BuildRequires:  pkgconfig(readline)
BuildSystem:    meson
%description
lxi-tools are software tools for managing network-attached
LXI-compatible test instruments such as modern oscilloscopes,
power supplies, spectrum analyzers, etc.
Features include automatic discovery of test instruments, sending
SCPI commands, grabbing screenshots from supported instruments,
benchmarking SCPI message performance, and powerful scripting for
test automation.
Both a command line tool and a GUI tool are available.
%package bash-completion
Summary:        Bash Completion for %{name}
Requires:       %{name} = %{version}-%{release}
Requires:       bash-completion
BuildArch:      noarch
%description bash-completion
Bash command line completion support for %{name}.
%package gui
Summary:        GUI frontend for %{name}
%description gui
Graphical tool for managing LXI-compatible instruments
%files
%license LICENSE
%doc AUTHORS NEWS README.md TODO
%{_bindir}/lxi
%{_mandir}/man1/lxi.1%{?ext_man}
%files bash-completion
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/lxi*
%files gui
%{_bindir}/lxi-gui
%{_datadir}/applications/io.github.lxi-tools.lxi-gui.desktop
%{_datadir}/glib-2.0/schemas/io.github.lxi-tools.lxi-gui.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/io.github.lxi-tools.lxi-gui.svg
%{_datadir}/icons/hicolor/symbolic/apps/io.github.lxi-tools.lxi-gui-symbolic.svg
%{_datadir}/metainfo/io.github.lxi-tools.lxi-gui.appdata.xml
%changelog