Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: jellyfin-rpc-cli #1910

Merged
merged 6 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading