-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "rust-jellyfin-rpc-cli.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |