Name: hummingbird Version: 0.1.0a Release: %autorelease Summary: Music Player SourceLicense: Apache-2.0 License: Apache-2.0 MIT LGPL URL: https://github.com/hummingbird-player/hummingbird Source: https://github.com/hummingbird-player/hummingbird/archive/refs/tags/%{version}.tar.gz BuildRequires: libxkbcommon-devel libxkbcommon-x11-devel alsa-lib-devel make gcc perl-core pcre-devel zlib-devel libX11-devel wayland-devel pulseaudio-libs-devel openssl-devel libxcb-devel rust cargo cargo-cntp-bundle Requires: libxkbcommon libxkbcommon-x11 alsa-lib zlib libX11 pulseaudio-libs openssl libxcb glibc libstdc++ %global _description %{expand: Modern music player written in Rust using GPUI with a focus on design and performance.} %description %{_description} %prep %autosetup -n hummingbird-%{version} -p1 cargo fetch --locked %build # no real better way to do this without incurring some costs # this isn't as bad as it seems, without the local user's keys these are read-only (and even then all you can do is scrobble) # and the local user's keys are only stored on their computer # still unfortunate, though export LASTFM_API_KEY="7bbd03d0dda426841c6d812f16851d45" export LASTFM_API_SECRET="c9e763ffc75b2920aeebe914dfad449c" cargo build --release --locked %install cargo cntp-bundle --no-open cp -r target/bundle/$(rustc -vV | grep 'host:' | cut -d' ' -f2)/release/appdir/*/ %{buildroot} %files %doc CONTRIBUTING.md %doc README.md %{_bindir}/hummingbird /usr/share/applications/org.mailliw.hummingbird.desktop /usr/share/icons/hicolor/scalable/apps/org.mailliw.hummingbird.svg %changelog %autochangelog