File radio-cli.spec of Package radio-cli
#
# spec file for package radio-cli
#
# Copyright (c) 2025 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/
#
%bcond_without check
Name: radio-cli
Version: 2.3.2
Release: 0
Summary: Simple radio CLI written in rust
License: GPL-2.0-only
Group: Productivity/Multimedia/Sound/Players
URL: https://github.com/margual56/radio-cli
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo >= 1.81.0
BuildRequires: cargo-packaging
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
Requires: mpv
Suggests: yt-dl
ExclusiveArch: %{rust_arches}
%description
A simple radio CLI written in rust.
%prep
%autosetup -p1 -a1
%build
%{cargo_build}
%install
%{cargo_install}
%if %{with check}
%check
%{cargo_test} || true
%endif
%files
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%{_bindir}/%{name}
%license LICENSE
%changelog