Skip to content

Commit

Permalink
add: jellyfin-rpc-cli (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Oct 22, 2024
1 parent 6bb80ea commit 9efe460
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/langs/rust/jellyfin-rpc/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-jellyfin-rpc-cli.spec"
}
}
58 changes: 58 additions & 0 deletions anda/langs/rust/jellyfin-rpc/rust-jellyfin-rpc-cli.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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 <[email protected]> - 1.2.2-1
- Initial package

0 comments on commit 9efe460

Please sign in to comment.