File termusic.spec of Package termusic
#
# spec file for package termusic
#
# 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/
#
%bcond_without check
Name: termusic
Version: 0.12.0
Release: 0
Summary: Music Player TUI written in Rust
License: GPL-3.0-only AND MIT
Group: Productivity/Multimedia/Sound/Players
URL: https://github.com/tramhao/termusic
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: clang-devel
BuildRequires: clang
BuildRequires: gcc-c++
BuildRequires: llvm-gold
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(protobuf)
ExclusiveArch: %{rust_arches}
%description
Terminal Music and Podcast Player written in Rust.
%prep
%autosetup -a1
#ouch vendor/stream-download/README.md
%build
%{cargo_build}
%install
#%%{cargo_install}
install -Dm 0755 target/release/%{name} -t %{buildroot}%{_bindir}/
install -Dm 0755 target/release/%{name}-server %{buildroot}%{_bindir}/
%if %{with check}
%check
%{cargo_test}
%endif
%files
%doc CHANGELOG.md CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-server
%license LICENSE_GPLv3 LICENSE_MIT
%changelog