-
-
Notifications
You must be signed in to change notification settings - Fork 108
add: ncspot #10701
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
base: frawhide
Are you sure you want to change the base?
add: ncspot #10701
Changes from 6 commits
c509b4d
2fff5d5
361d41b
264bb65
9498fd8
6d4cc8f
31eb979
962189d
85dc9af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| project pkg { | ||
| rpm { | ||
| spec = "ncspot.spec" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,59 @@ | ||||||||||||||||||||||
| %global crate ncspot | ||||||||||||||||||||||
| %global cargo_features cover | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| Name: ncspot | ||||||||||||||||||||||
| Version: 1.3.3 | ||||||||||||||||||||||
| Release: 1%{?dist} | ||||||||||||||||||||||
| Summary: Cross-platform ncurses Spotify client written in Rust | ||||||||||||||||||||||
| Packager: like-engels <higashikataengels@icloud.com> | ||||||||||||||||||||||
| License: BSD-2-Clause | ||||||||||||||||||||||
| URL: https://crates.io/crates/%{crate} | ||||||||||||||||||||||
| Source0: %{crates_source} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| Requires: dbus | ||||||||||||||||||||||
| Requires: glibc | ||||||||||||||||||||||
| Requires: libxcb | ||||||||||||||||||||||
| Requires: pipewire-pulseaudio | ||||||||||||||||||||||
| Requires: pulseaudio-libs | ||||||||||||||||||||||
| Requires: openssl | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
Comment on lines
+13
to
+19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you have specified the buildrequires you don't need to specify these
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of them are runtime dependencies (such as the pulseaudio libs) that's why I explicitly added them as package dependencies. I'm not an RPM expert so I'd appreciate some guidance on this, because runtime dependencies are what I'm concerned about.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so basically at the end of the build RPM will look at what the binary dynamically links to and add all these runtime requirements automatically, including information about the sover (that is the ABI version). The only case where you need to manually add these runtime dependencies would be when the binary needs these runtime dependencies but it's not dynamically linked to them. As an example, if I create a program that runs the |
||||||||||||||||||||||
| BuildRequires: anda-srpm-macros | ||||||||||||||||||||||
| BuildRequires: cargo-rpm-macros >= 24 | ||||||||||||||||||||||
| BuildRequires: gcc | ||||||||||||||||||||||
| BuildRequires: binutils | ||||||||||||||||||||||
| BuildRequires: mold | ||||||||||||||||||||||
| BuildRequires: dbus-devel | ||||||||||||||||||||||
| BuildRequires: libxcb-devel | ||||||||||||||||||||||
| BuildRequires: ncurses-devel | ||||||||||||||||||||||
| BuildRequires: openssl-devel | ||||||||||||||||||||||
| BuildRequires: pulseaudio-libs-devel | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %global _description %{expand: | ||||||||||||||||||||||
| ncurses Spotify client written in Rust using librespot. | ||||||||||||||||||||||
| It is heavily inspired by ncurses MPD clients, such as ncmpc. | ||||||||||||||||||||||
| It provides a simple and resource-friendly alternative to the | ||||||||||||||||||||||
| official Spotify client.} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %description %{_description} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
| %files -n %{crate} | ||||||||||||||||||||||
| %license LICENSE | ||||||||||||||||||||||
| %license LICENSE.dependencies | ||||||||||||||||||||||
|
Owen-sz marked this conversation as resolved.
|
||||||||||||||||||||||
| %doc README.md | ||||||||||||||||||||||
| %{_bindir}/%{crate} | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a CLI tool, so I'll skip the desktop file |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %prep | ||||||||||||||||||||||
| %autosetup -n %{crate}-%{version} | ||||||||||||||||||||||
| %cargo_prep_online | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %build | ||||||||||||||||||||||
| %cargo_build -f "%{cargo_features}" | ||||||||||||||||||||||
| %{cargo_license_summary_online} | ||||||||||||||||||||||
| %{cargo_license_online} > LICENSE.dependencies | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %install | ||||||||||||||||||||||
| %crate_install_bin | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| %changelog | ||||||||||||||||||||||
| * Wed Mar 18 2026 like-engels <higashikataengels@icloud.com> - 1.3.3-1 | ||||||||||||||||||||||
| - Initial package | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| rpm.version(crates("ncspot")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.