From 99fef4a16749a5ca55972a2b3e82fda41b966fa4 Mon Sep 17 00:00:00 2001 From: arabian Date: Tue, 2 Jun 2026 23:30:22 +0300 Subject: [PATCH] packages(rpm): add pwsp-git.spec.rpkg --- packages/rpm/pwsp-git.spec.rpkg | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 packages/rpm/pwsp-git.spec.rpkg diff --git a/packages/rpm/pwsp-git.spec.rpkg b/packages/rpm/pwsp-git.spec.rpkg new file mode 100644 index 0000000..899fa7e --- /dev/null +++ b/packages/rpm/pwsp-git.spec.rpkg @@ -0,0 +1,66 @@ +%bcond check 1 + +# 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: {{{ git_dir_version }}} +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_dir_vcs }}} +Source: {{{ git_dir_pack }}} + +BuildRequires: rust +BuildRequires: cargo +BuildRequires: pipewire-devel +BuildRequires: alsa-lib-devel +BuildRequires: clang-devel +BuildRequires: cmake +BuildRequires: dbus-devel +BuildRequires: pkgconf-pkg-config + +# 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 +{{{ git_dir_setup_macro }}} + +%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 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 +{{{ git_dir_changelog }}}