[packages/gstreamer-plugins-bad] add svtjpegxs bcond and disable it on unsupported archs

atler atler at pld-linux.org
Tue Aug 5 19:07:06 CEST 2025


commit 98e5136383c5755d4ba63fc332b6328cae89d713
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Aug 5 17:42:47 2025 +0200

    add svtjpegxs bcond and disable it on unsupported archs

 gstreamer-plugins-bad.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gstreamer-plugins-bad.spec b/gstreamer-plugins-bad.spec
index 7432aa6..7505983 100644
--- a/gstreamer-plugins-bad.spec
+++ b/gstreamer-plugins-bad.spec
@@ -40,6 +40,7 @@
 %bcond_without	sndfile		# sndfile audio files encoder/decoder plugin
 %bcond_without	srtp		# SRTP decoder/encoder plugin
 %bcond_without	svthevc		# SvtHevc encoder plugin
+%bcond_without	svtjpegxs	# SVT JPEG-XS plugin
 %bcond_without	tinyalsa	# ALSA audiosink using tinyalsa library
 %bcond_without	uvch264		# uvch264 cameras plugin
 %bcond_with	vpl		# VPL instead of MFX in Intel MediaSDK plugin
@@ -66,6 +67,9 @@
 %ifnarch %{x8664} x32
 %undefine	with_svthevc
 %endif
+%ifnarch %{ix86} %{x8664} x32
+%undefine	with_svtjpegxs
+%endif
 
 %define		gstname		gst-plugins-bad
 %define		gstmver		1.0
@@ -223,7 +227,7 @@ BuildRequires:	spandsp-devel >= 1:0.0.6
 BuildRequires:	srt-devel >= 1.3.0
 BuildRequires:	svt-av1-devel >= 1.1
 %{?with_svthevc:BuildRequires:	svt-hevc-devel >= 1.4.1}
-BuildRequires:	svt-jpeg-xs-devel >= 0.9
+%{?with_svtjpegxs:BuildRequires:	svt-jpeg-xs-devel >= 0.9}
 %{?with_tinyalsa:BuildRequires:	tinyalsa-devel >= 2.0.0}
 BuildRequires:	udev-glib-devel
 BuildRequires:	vo-aacenc-devel >= 0.1.0
@@ -1816,7 +1820,7 @@ Wtyczka GStreamera ZXing wykrywająca kody kreskowe.
 	-Dsubenc=enabled \
 	-Dsvtav1=enabled \
 	-Dsvthevcenc=%{__enabled_disabled svthevc} \
-	-Dsvtjpegxs=enabled \
+	-Dsvtjpegxs=%{__enabled_disabled svtjpegxs} \
 	-Dswitchbin=enabled \
 	-Dteletext=%{__enabled_disabled zvbi} \
 	-Dtensordecoders=enabled \
@@ -2751,10 +2755,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{gstlibdir}/libgstsvthevcenc.so
 %endif
 
+%if %{with svtjpegxs}
 %files -n gstreamer-svtjpegxs
 %defattr(644,root,root,755)
 # R: svt-jpeg-xs >= 0.9
 %attr(755,root,root) %{gstlibdir}/libgstsvtjpegxs.so
+%endif
 
 %if %{with zvbi}
 %files -n gstreamer-teletextdec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer-plugins-bad.git/commitdiff/e54a8a81eca5216b55254f51b3badfa7bcdc1df0



More information about the pld-cvs-commit mailing list