diff --git a/packages/rpm/pwsp-git.spec b/packages/rpm/pwsp-git.spec index 6d0a30a..6861ad7 100644 --- a/packages/rpm/pwsp-git.spec +++ b/packages/rpm/pwsp-git.spec @@ -29,6 +29,10 @@ BuildRequires: dbus-devel 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 @@ -45,8 +49,13 @@ GUI clients. This is the latest development (git) version.} {{{ git_dir_setup_macro }}} %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 diff --git a/packages/rpm/pwsp.spec b/packages/rpm/pwsp.spec index 13188e0..2a2dffe 100644 --- a/packages/rpm/pwsp.spec +++ b/packages/rpm/pwsp.spec @@ -35,6 +35,10 @@ BuildRequires: dbus-devel BuildRequires: clang-devel BuildRequires: cmake BuildRequires: pkgconfig +%if 0%{?suse_version} && 0%{?suse_version} <= 1500 +BuildRequires: gcc13-c++ +%endif + %global _description %{expand: @@ -47,8 +51,13 @@ GUI clients.} %autosetup -n pipewire-soundpad-%{version} -p1 %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