mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
b2b83f5c32
* cargo fmt * deps: bump clap to 4.6.0 * deps: cargo update * Fix daemon autostart issue caused by sync pipewire retry loop (#43) (#44) At boot time, PipeWire takes some time to register the `pwsp-daemon` and `pwsp-virtual-mic` devices. Previously, the daemon's retry loop for `link_player_to_virtual_mic()` was synchronous and limited to 5 attempts (1.5 seconds total). This caused systemd autostarts to fail with a code 1 if the devices were not yet available. This change replaces the synchronous wait with an asynchronous `tokio::spawn` task. It will retry the link attempt up to 60 times with a 1-second delay without blocking the startup of the rest of the daemon. This prevents it from exiting abruptly during autostart. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> * deps: bump egui & eframe version to 0.34.1 * feat: replaced App::update with new App::logic and App::ui * deps: bump egui_material_icons to 0.6.0 * deps: bump egui_dnd to 0.15.0 * fix: use .codepoint for icons * refactor * refactor: replaced deprecated CentralPanel::show with CentralPanel::show_inside * refactor * change version to 1.6.3 * update rust toolchain in github actions * update freedesktop platform version to 25.08 for flaptak * update github actions for flatpak builds * add flatpak-builder installation inside actions * add flathub configuration to actions * add --user flag to flathub configuration * remove sudo from flatpak actions * Fix/dev flatpak actions 6082245116761610541 (#47) * remove sudo * remove steps --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
%bcond check 1
|
|
|
|
# prevent library files from being installed
|
|
%global cargo_install_lib 0
|
|
|
|
Name: pwsp
|
|
Version: 1.6.3
|
|
Release: %autorelease
|
|
Summary: Lets you play audio files through your microphone
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/arabianq/pipewire-soundpad
|
|
Source: https://github.com/arabianq/pipewire-soundpad/archive/refs/tags/v%{version}.tar.gz
|
|
|
|
BuildRequires: rust
|
|
BuildRequires: cargo
|
|
BuildRequires: pipewire-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: clang-devel
|
|
|
|
%global _description %{expand:
|
|
PWSP lets you play audio files through your microphone. Has both CLI and
|
|
GUI clients.}
|
|
|
|
%description %{_description}
|
|
|
|
%prep
|
|
%autosetup -n pipewire-soundpad-%{version} -p1
|
|
|
|
%build
|
|
cargo build --release --locked
|
|
|
|
%install
|
|
install -Dm755 target/release/pwsp-cli %{buildroot}%{_bindir}/pwsp-cli
|
|
install -Dm755 target/release/pwsp-daemon %{buildroot}%{_bindir}/pwsp-daemon
|
|
install -Dm755 target/release/pwsp-gui %{buildroot}%{_bindir}/pwsp-gui
|
|
|
|
install -Dm644 assets/pwsp-gui.desktop %{buildroot}%{_datadir}/applications/pwsp.desktop
|
|
install -Dm644 assets/icon.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/pwsp.png
|
|
|
|
install -Dm644 assets/pwsp-daemon.service %{buildroot}/usr/lib/systemd/user/pwsp-daemon.service
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/pwsp-cli
|
|
%{_bindir}/pwsp-daemon
|
|
%{_bindir}/pwsp-gui
|
|
%{_datadir}/applications/pwsp.desktop
|
|
%{_datadir}/icons/hicolor/256x256/apps/pwsp.png
|
|
/usr/lib/systemd/user/pwsp-daemon.service
|
|
|
|
%changelog
|
|
%autochangelog |