From 9efe4608111a82595d12ae048fd870e84032dfb9 Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 22 Oct 2024 15:04:02 +0800 Subject: [PATCH] add: jellyfin-rpc-cli (#1910) --- anda/langs/rust/jellyfin-rpc/anda.hcl | 5 ++ .../jellyfin-rpc/rust-jellyfin-rpc-cli.spec | 58 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 anda/langs/rust/jellyfin-rpc/anda.hcl create mode 100644 anda/langs/rust/jellyfin-rpc/rust-jellyfin-rpc-cli.spec diff --git a/anda/langs/rust/jellyfin-rpc/anda.hcl b/anda/langs/rust/jellyfin-rpc/anda.hcl new file mode 100644 index 0000000000..9a335cfcef --- /dev/null +++ b/anda/langs/rust/jellyfin-rpc/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-jellyfin-rpc-cli.spec" + } +} diff --git a/anda/langs/rust/jellyfin-rpc/rust-jellyfin-rpc-cli.spec b/anda/langs/rust/jellyfin-rpc/rust-jellyfin-rpc-cli.spec new file mode 100644 index 0000000000..f644a5b263 --- /dev/null +++ b/anda/langs/rust/jellyfin-rpc/rust-jellyfin-rpc-cli.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm 26 +%bcond_without check +%bcond_without mold + +%global crate jellyfin-rpc-cli + +Name: rust-jellyfin-rpc-cli +Version: 1.2.2 +Release: %autorelease +Summary: Displays the content you're currently watching on Discord! + +License: GPL-3.0-or-later +URL: https://crates.io/crates/jellyfin-rpc-cli +Source0: %{crates_source} +Source1: https://raw.githubusercontent.com/Radiicall/jellyfin-rpc/%version/LICENSE +Packager: madonuko + +BuildRequires: mold anda-srpm-macros cargo-rpm-macros >= 24 + +%global _description %{expand: +Displays the content you're currently watching on Discord!.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: GPL-3.0-or-later +Provides: jellyfin-rpc + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license %_datadir/licenses/%name/LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/jellyfin-rpc + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online + +%build +#{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install + +install -Dpm644 %SOURCE1 %buildroot%_datadir/licenses/%name/LICENSE + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu Aug 15 2024 madonuko - 1.2.2-1 +- Initial package