File kftray.spec of Package kftray
#
# spec file for package kftray
#
# Copyright (c) 2024 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/
#
Name: kftray
Version: 0.15.2
Release: 0
Summary: Port forward manager for kubectl
License: GPL-3.0-or-later
URL: https://github.com/hcavarsan/kftray
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo >= 1.82.0
BuildRequires: cargo-packaging
BuildRequires: zstd
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(javascriptcoregtk-4.0)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(openssl)
%description
kftray and kftray are independent, cross-platform applications. They help you
set up and manage multiple port-forwarding settings easily. Both apps are part
of the same open-source project and aim to make working with Kubernetes easier.
kftray has a desktop interface, while kftui has a terminal interface, so you
can choose the one that suits you best.
%package -n kftui
Summary: Terminal-based port forward manager for kubectl
%description -n kftui
Port forward manager for kubectl, using a terminal interface.
%prep
%autosetup -p 1 -a 1
%build
%{cargo_build} --all
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name}-server %{buildroot}%{_bindir}/%{name}-server
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name}-tauri %{buildroot}%{_bindir}/%{name}-tauri
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/kftui %{buildroot}%{_bindir}/kftui
%files
%doc README.md
%license LICENSE.md
%{_bindir}/%{name}-server
%{_bindir}/%{name}-tauri
%files -n kftui
%doc README.md
%license LICENSE.md
%{_bindir}/kftui
%changelog