spec: Fix build on centos 8 stream

* Drop use of %dnl which centos 8 RPM doesn't support
* Use internal capstone copy on centos8
* Don't try to use jack driver on centos

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-01-11 17:45:13 -05:00
parent 6dc1a3e091
commit ffa629f31c
1 changed files with 4 additions and 3 deletions

View File

@ -210,6 +210,7 @@
%endif
%if %{have_jack}
%define jack_drv jack,
%define requires_audio_jack Requires: %{name}-audio-jack = %{evr}
%else
%define requires_audio_jack %{nil}
@ -277,7 +278,7 @@ Obsoletes: %{name}-system-unicore32 <= %{epoch}:%{version}-%{release} \
Obsoletes: %{name}-system-unicore32-core <= %{epoch}:%{version}-%{release}
# Release candidate version tracking
%dnl %global rcver rc4
# global rcver rc4
%if 0%{?rcver:1}
%global rcrel .%{rcver}
%global rcstr -%{rcver}
@ -1365,7 +1366,7 @@ run_configure \
%endif
--enable-bpf \
--enable-cap-ng \
--enable-capstone=system \
--enable-capstone=auto \
--enable-coroutine-pool \
--enable-curl \
--enable-debug-info \
@ -1435,7 +1436,7 @@ run_configure \
--enable-xkbcommon \
\
\
--audio-drv-list=pa,sdl,alsa,jack,oss \
--audio-drv-list=pa,sdl,alsa,%{?jack_drv}oss \
--target-list-exclude=moxie-softmmu \
--with-default-devices \
--enable-auth-pam \