# prevent library files from being installed %global cargo_install_lib 0 # disable debuginfo package generation (debugsourcefiles.list is empty for Rust) %global debug_package %{nil} Name: pwsp-git Version: 1.11.0^git.18.g410a2c7 Release: 1%{?dist} Summary: Lets you play audio files through your microphone (git version) License: MIT URL: https://github.com/arabianq/pipewire-soundpad VCS: git+https://github.com/arabianq/pipewire-soundpad#410a2c795989d4c4d40a9304439b40998d544dfd:packages/rpm Source: pipewire-soundpad-410a2c79.tar.gz BuildRequires: rust BuildRequires: cargo BuildRequires: pipewire-devel %if 0%{?suse_version} BuildRequires: alsa-devel BuildRequires: dbus-1-devel %else BuildRequires: alsa-lib-devel BuildRequires: dbus-devel %endif BuildRequires: clang-devel BuildRequires: cmake BuildRequires: pkgconfig %if 0%{?suse_version} && 0%{?suse_version} <= 1500 BuildRequires: gcc13-c++ %endif # Declare compatibility and conflicts with the stable package Provides: pwsp = %{version}-%{release} Conflicts: pwsp %global _description %{expand: PWSP lets you play audio files through your microphone. Has both CLI and GUI clients. This is the latest development (git) version.} %description %{_description} %prep %setup -T -b 0 -q -n pipewire-soundpad %build %if 0%{?suse_version} && 0%{?suse_version} <= 1500 export CC=gcc-13 export CXX=g++-13 %endif 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 pwsp-gui/assets/pwsp-gui.desktop %{buildroot}%{_datadir}/applications/pwsp.desktop install -Dm644 pwsp-gui/assets/icon.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/pwsp.png install -Dm644 pwsp-gui/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