[packages/svt-jpeg-xs] - updated to 0.10.0 release

qboosh qboosh at pld-linux.org
Sat Nov 14 07:42:00 CET 2026


commit 026a2598cbfe48827a1cb276b80f941c23b38fe8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 14 07:41:50 2026 +0100

    - updated to 0.10.0 release

 svt-jpeg-xs-no-asm.patch | 105 ++++-------------------------------------------
 svt-jpeg-xs.spec         |  30 ++++++--------
 2 files changed, 21 insertions(+), 114 deletions(-)
---
diff --git a/svt-jpeg-xs.spec b/svt-jpeg-xs.spec
index d4f88ac..c1b0ab4 100644
--- a/svt-jpeg-xs.spec
+++ b/svt-jpeg-xs.spec
@@ -1,33 +1,30 @@
 # TODO: system cpuinfo (when released? note: different project than packaged in cpuinfo.spec)
-# NOTE: snapshot of the main branch - upstream has not tagged 0.10.0 yet, but
-# ffmpeg >= 8.1 requires SvtJpegxs >= 0.10.0 (the 0.9.0 release reports 0.9.0
-# and fails ffmpeg's pkg-config check). Switch Source0 back to a release tag
-# once upstream tags 0.10.0.
-%define		gitcommit	8e50180ad909a0bdcdf91b462c64033f0fe3e112
-%define		gitshort	%(echo %{gitcommit} | cut -c1-7)
 Summary:	Scalable Video Technology for JPEG-XS (SVT-JPEG-XS Encoder and Decoder)
 Summary(pl.UTF-8):	Scalable Video Technology dla JPEG-XS (koder i dekoder SVT-JPEG-XS)
 Name:		svt-jpeg-xs
 Version:	0.10.0
-Release:	0.20260519.1
+Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/OpenVisualCloud/SVT-JPEG-XS/releases
-Source0:	https://github.com/OpenVisualCloud/SVT-JPEG-XS/archive/%{gitcommit}/%{name}-%{version}-%{gitshort}.tar.gz
-# Source0-md5:	b735f2f34642e05d7c3c0f4084d90110
+Source0:	https://github.com/OpenVisualCloud/SVT-JPEG-XS/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	319ec50626486089ec20fa171d332658
 Patch0:		%{name}-no-asm.patch
 URL:		https://github.com/OpenVisualCloud/SVT-JPEG-XS
-BuildRequires:	cmake >= 3.10
+BuildRequires:	cmake >= 3.13
 BuildRequires:	libstdc++-devel >= 6:4.7
 BuildRequires:	rpmbuild(macros) >= 1.605
 %ifarch %{x8664}
-# preferred by cmake; also nasm >= 2.13 possible
-BuildRequires:	yasm >= 1.2.0
+# preferred by cmake; also yasm >= 1.2.0 possible
+BuildRequires:	nasm >= 2.14
 %endif
 # other archs can be supported by removing ARCH_X86_64 define (which enables SIMD support via gcc intrinsics)
 ExclusiveArch:	%{ix86} %{x8664} x32
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# it defines -D_FORTIFY_SOURCE=3 on its own (as of 0.10.0)
+%define		filterout_c	-Wp,-D_FORTIFY_SOURCE=2
+
 %description
 SVT-JPEG-XS (Scalable Video Technology for JPEG-XS) is an open-source
 JPEG-XS (ISO/IEC 21122) encoder and decoder library optimized for
@@ -45,7 +42,7 @@ profesjonalnego przesyłania obrazu.
 Summary:	Header files for SVT-JPEG-XS library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki SVT-JPEG-XS
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description devel
 Header files for SVT-JPEG-XS library.
@@ -54,14 +51,11 @@ Header files for SVT-JPEG-XS library.
 Pliki nagłówkowe biblioteki SVT-JPEG-XS.
 
 %prep
-%setup -q -n SVT-JPEG-XS-%{gitcommit}
+%setup -q -n SVT-JPEG-XS-%{version}
 %patch -P0 -p1
 
 %build
-%cmake -B build \
-%ifnarch %{x8664}
-	-DDISABLE_ASM=ON
-%endif
+%cmake -B build
 
 %{__make} -C build
 
diff --git a/svt-jpeg-xs-no-asm.patch b/svt-jpeg-xs-no-asm.patch
index bffad94..5247679 100644
--- a/svt-jpeg-xs-no-asm.patch
+++ b/svt-jpeg-xs-no-asm.patch
@@ -1,98 +1,11 @@
---- SVT-JPEG-XS-0.10.0/CMakeLists.txt.orig
-+++ SVT-JPEG-XS-0.10.0/CMakeLists.txt
-@@ -29,6 +29,11 @@
- 
- include(CheckCSourceCompiles)
- 
-+option(DISABLE_ASM "Disable x86-64 assembler" OFF)
-+
-+if(DISABLE_ASM)
-+    add_definitions(-DDISABLE_X86_64_ASM=1)
-+else()
- find_program(YASM_EXE yasm)
- option(ENABLE_NASM "Use nasm if available (Uses yasm by default if found)" OFF)
- if(YASM_EXE AND NOT CMAKE_ASM_NASM_COMPILER MATCHES "yasm" AND NOT ENABLE_NASM)
-@@ -49,6 +54,8 @@
-     endif()
+--- SVT-JPEG-XS-0.10.0/CMakeLists.txt.orig	2026-10-28 13:33:34.000000000 +0100
++++ SVT-JPEG-XS-0.10.0/CMakeLists.txt	2026-11-14 07:28:34.295327913 +0100
+@@ -44,7 +44,7 @@ else()
+     set(SVT_JXS_TARGET_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
  endif()
- enable_language(ASM_NASM)
-+endif()
-+# enables SSE/AVX code via gcc intrinsics
- add_definitions(-DARCH_X86_64=1)
- 
- include(GNUInstallDirs)
---- SVT-JPEG-XS-0.10.0/Source/Lib/Common/ASM_SSE2/CMakeLists.txt.orig
-+++ SVT-JPEG-XS-0.10.0/Source/Lib/Common/ASM_SSE2/CMakeLists.txt
-@@ -23,4 +23,6 @@
- 
- add_library(COMMON_ASM_SSE2 OBJECT ${all_files})
- 
-+if(NOT DISABLE_ASM)
- asm_compile_to_target(COMMON_ASM_SSE2 ${asm_files})
-+endif()
---- SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/ASM_SSE2/CMakeLists.txt.orig
-+++ SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/ASM_SSE2/CMakeLists.txt
-@@ -22,4 +22,6 @@
- 
- add_library(ENCODER_ASM_SSE2 OBJECT ${all_files})
- 
-+if(NOT DISABLE_ASM)
- asm_compile_to_target(ENCODER_ASM_SSE2 ${asm_files})
-+endif()
---- SVT-JPEG-XS-0.10.0/Source/Lib/Common/Codec/common_dsp_rtcd.c.orig
-+++ SVT-JPEG-XS-0.10.0/Source/Lib/Common/Codec/common_dsp_rtcd.c
-@@ -111,5 +111,9 @@
-     (void)flags;
- #endif
- 
-+#ifdef DISABLE_X86_64_ASM
-+    SET_ONLY_C(svt_log2_32, log2_32_c);
-+#else
-     SET_SSE2(svt_log2_32, log2_32_c, Log2_32_ASM);
-+#endif
- }
---- SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/ASM_AVX2/RateControl_avx2.c.orig
-+++ SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/ASM_AVX2/RateControl_avx2.c
-@@ -101,6 +101,7 @@
-     return pack_size_gcli_no_sigf;
- }
- 
-+#ifndef DISABLE_X86_64_ASM
- void gc_precinct_stage_scalar_avx2(uint8_t *gcli_data_ptr, uint16_t *coeff_data_ptr_16bit, uint32_t group_size, uint32_t width) {
-     UNUSED(group_size);
-     assert(group_size == GROUP_SIZE);
-@@ -172,6 +173,7 @@
-         }
-     }
- }
-+#endif
- 
- void convert_packed_to_planar_rgb_8bit_avx2(const void *in_rgb, void *out_comp1, void *out_comp2, void *out_comp3,
-                                             uint32_t line_width) {
---- SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/Codec/encoder_dsp_rtcd.c.orig
-+++ SVT-JPEG-XS-0.10.0/Source/Lib/Encoder/Codec/encoder_dsp_rtcd.c
-@@ -129,8 +129,12 @@
-                     transform_vertical_loop_lf_hf_hf_line_last_even_avx2,
-                     transform_vertical_loop_lf_hf_hf_line_last_even_avx512);
- 
-+#ifdef DISABLE_X86_64_ASM
-+    SET_ONLY_C(gc_precinct_stage_scalar, gc_precinct_stage_scalar_c);
-+#else
-     SET_AVX2_AVX512(
-         gc_precinct_stage_scalar, gc_precinct_stage_scalar_c, gc_precinct_stage_scalar_avx2, gc_precinct_stage_scalar_avx512);
-+#endif
-     SET_SSE41_AVX2_AVX512(quantization, quantization_c, quantization_sse4_1, quantization_avx2, quantization_avx512);
-     SET_AVX2_AVX512(linear_input_scaling_line_8bit,
-                     linear_input_scaling_line_8bit_c,
-@@ -142,7 +146,11 @@
-                     linear_input_scaling_line_16bit_avx512);
  
-     SET_AVX2_AVX512(pack_data_single_group, pack_data_single_group_c, NULL, pack_data_single_group_avx512);
-+#ifdef DISABLE_X86_64_ASM
-+    SET_ONLY_C(gc_precinct_stage_scalar_loop, gc_precinct_stage_scalar_loop_c);
-+#else
-     SET_SSE2(gc_precinct_stage_scalar_loop, gc_precinct_stage_scalar_loop_c, gc_precinct_stage_scalar_loop_ASM);
-+#endif
-     SET_SSE41(gc_precinct_sigflags_max, gc_precinct_sigflags_max_c, gc_precinct_sigflags_max_sse4_1);
-     SET_AVX2_AVX512(rate_control_calc_vpred_cost_nosigf,
-                     rate_control_calc_vpred_cost_nosigf_c,
+-if(SVT_JXS_TARGET_PROCESSOR MATCHES "^(x86_64|AMD64|amd64)$")
++if(SVT_JXS_TARGET_PROCESSOR MATCHES "^(x86_64|AMD64|amd64)$" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
+     set(ARCH_X86_64 1)
+ elseif(SVT_JXS_TARGET_PROCESSOR MATCHES "^(aarch64|arm64|ARM64)$")
+     set(ARCH_AARCH64 1)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/svt-jpeg-xs.git/commitdiff/026a2598cbfe48827a1cb276b80f941c23b38fe8



More information about the pld-cvs-commit mailing list