Compare commits

...

11 Commits

3 changed files with 59 additions and 8 deletions
+16
View File
@@ -244,3 +244,19 @@ jobs:
files: | files: |
./dist/pwsp-*.zip ./dist/pwsp-*.zip
./dist/*.deb ./dist/*.deb
- name: Install copr-cli
run: pip install copr-cli
- name: Trigger Copr Build
env:
COPR_CONFIG: ${{ secrets.COPR_CONFIG }}
run: |
mkdir -p ~/.config
echo "$COPR_CONFIG" > ~/.config/copr
copr-cli buildscm --clone-url https://github.com/arabianq/pipewire-soundpad.git \
--commit ${{ needs.prepare.outputs.tag }} \
--spec packages/rpm/pwsp.spec \
--name pwsp \
arabianq/pipewire-soundpad
+23 -5
View File
@@ -6,7 +6,7 @@
%global debug_package %{nil} %global debug_package %{nil}
Name: pwsp-git Name: pwsp-git
Version: {{{ git_dir_version }}} Version: {{{ git describe --tags --always | sed 's/^v//' | sed -E 's/-([0-9]+)-(g[0-9a-f]+)/^git.\1.\2/' }}}
Release: 1%{?dist} Release: 1%{?dist}
Summary: Lets you play audio files through your microphone (git version) Summary: Lets you play audio files through your microphone (git version)
@@ -14,16 +14,27 @@ License: MIT
URL: https://github.com/arabianq/pipewire-soundpad URL: https://github.com/arabianq/pipewire-soundpad
VCS: {{{ git_dir_vcs }}} VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}} Source: {{{ git_cwd_pack }}}
BuildRequires: rust BuildRequires: rust
BuildRequires: cargo BuildRequires: cargo
BuildRequires: pipewire-devel BuildRequires: pipewire-devel
%if 0%{?suse_version}
BuildRequires: alsa-devel
BuildRequires: dbus-1-devel
%else
BuildRequires: alsa-lib-devel BuildRequires: alsa-lib-devel
BuildRequires: dbus-devel
%endif
BuildRequires: clang-devel BuildRequires: clang-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: dbus-devel BuildRequires: pkgconfig
BuildRequires: pkgconf-pkg-config %if 0%{?suse_version} && 0%{?suse_version} <= 1500
BuildRequires: gcc13-c++
%endif
# Declare compatibility and conflicts with the stable package # Declare compatibility and conflicts with the stable package
Provides: pwsp = %{version}-%{release} Provides: pwsp = %{version}-%{release}
@@ -36,11 +47,17 @@ GUI clients. This is the latest development (git) version.}
%description %{_description} %description %{_description}
%prep %prep
{{{ git_dir_setup_macro }}} {{{ git_cwd_setup_macro }}}
%build %build
%if 0%{?suse_version} && 0%{?suse_version} <= 1500
export CC=gcc-13
export CXX=g++-13
%endif
cargo build --release --locked cargo build --release --locked
%install %install
install -Dm755 target/release/pwsp-cli %{buildroot}%{_bindir}/pwsp-cli 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-daemon %{buildroot}%{_bindir}/pwsp-daemon
@@ -63,3 +80,4 @@ install -Dm644 pwsp-gui/assets/pwsp-daemon.service %{buildroot}/usr/lib/systemd/
%changelog %changelog
{{{ git_dir_changelog }}} {{{ git_dir_changelog }}}
+20 -3
View File
@@ -3,7 +3,9 @@
# Fallback macros for systems without rpmautospec (e.g. openSUSE) # Fallback macros for systems without rpmautospec (e.g. openSUSE)
%{!?autorelease: %global autorelease 1} %{!?autorelease: %global autorelease 1}
%{!?autochangelog: %global autochangelog * Tue Jun 02 2026 Arabian <arabianq@github> - %{version}-%{release}\n- Release build} %{!?autochangelog: %global autochangelog \
* Tue Jun 02 2026 Arabian <arabianq@github> - %{version}-%{release}\
- Release build}
# disable debuginfo package generation (debugsourcefiles.list is empty for Rust) # disable debuginfo package generation (debugsourcefiles.list is empty for Rust)
@@ -23,11 +25,21 @@ Source: https://github.com/arabianq/pipewire-soundpad/archive/refs/tags
BuildRequires: rust BuildRequires: rust
BuildRequires: cargo BuildRequires: cargo
BuildRequires: pipewire-devel BuildRequires: pipewire-devel
%if 0%{?suse_version}
BuildRequires: alsa-devel
BuildRequires: dbus-1-devel
%else
BuildRequires: alsa-lib-devel BuildRequires: alsa-lib-devel
BuildRequires: dbus-devel
%endif
BuildRequires: clang-devel BuildRequires: clang-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: dbus-devel BuildRequires: pkgconfig
BuildRequires: pkgconf-pkg-config %if 0%{?suse_version} && 0%{?suse_version} <= 1500
BuildRequires: gcc13-c++
%endif
%global _description %{expand: %global _description %{expand:
PWSP lets you play audio files through your microphone. Has both CLI and PWSP lets you play audio files through your microphone. Has both CLI and
@@ -39,8 +51,13 @@ GUI clients.}
%autosetup -n pipewire-soundpad-%{version} -p1 %autosetup -n pipewire-soundpad-%{version} -p1
%build %build
%if 0%{?suse_version} && 0%{?suse_version} <= 1500
export CC=gcc-13
export CXX=g++-13
%endif
cargo build --release --locked cargo build --release --locked
%install %install
install -Dm755 target/release/pwsp-cli %{buildroot}%{_bindir}/pwsp-cli 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-daemon %{buildroot}%{_bindir}/pwsp-daemon