## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: SDL3_image Version: 3.4.8 Release: %autorelease Summary: Image loading library for SDL License: Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain # License breakdown: # ./examples/showanim.c: Zlib # ./examples/showimage.c: Zlib # ./include/SDL3_image/SDL_image.h: Zlib # ./src/IMG*.c: Zlib # Except: # ./src/IMG_gif.c: HPND-Pbmplus AND Zlib # ./src/nanosvg.h: Zlib # ./src/nanosvgrast.h: Zlib # ./src/qoi.h: MIT # ./src/stb_image.h: MIT OR Unlicense # ./src/tiny_jpeg.h: Public Domain URL: https://github.com/libsdl-org/SDL_image Source0: %{url}/releases/download/release-%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: cmake(libavif) BuildRequires: cmake(libjpeg-turbo) BuildRequires: cmake(webp) BuildRequires: cmake(sdl3) >= 3.4 BuildRequires: gcc BuildRequires: libjxl-devel BuildRequires: libpng-devel BuildRequires: libpng-static BuildRequires: libtiff-devel BuildRequires: make BuildRequires: perl BuildRequires: SDL3-test BuildRequires: zlib-static # Some custom version of it: Provides: bundled(nanosvg) %description Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide fast access to the graphics frame buffer and audio device. This is a simple library to load images of various formats as SDL surfaces. It can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: cmake-filesystem %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tests Summary: Tests for the %{name} package Requires: %{name}%{?_isa} = %{version}-%{release} %description tests The %{name}-tests package contains tests that can be used to verify the functionality of the installed %{name} package. %prep %autosetup -p1 %build %cmake \ -DSDLIMAGE_ANI=ON \ -DSDLIMAGE_ANI_SAVE=ON \ -DSDLIMAGE_AVIF=ON \ -DSDLIMAGE_AVIF_SAVE=ON \ -DSDLIMAGE_AVIF_SHARED=ON \ -DSDLIMAGE_BACKEND_STB=OFF \ -DSDLIMAGE_BMP=ON \ -DSDLIMAGE_BMP_SAVE=ON \ -DSDLIMAGE_DEPS_SHARED=ON \ -DSDLIMAGE_GIF=ON \ -DSDLIMAGE_GIF_SAVE=ON \ -DSDLIMAGE_INSTALL=ON \ -DSDLIMAGE_INSTALL_CPACK=ON \ -DSDLIMAGE_INSTALL_MAN=ON \ -DSDLIMAGE_JPG=ON \ -DSDLIMAGE_JPG_SAVE=ON \ -DSDLIMAGE_JXL=ON \ -DSDLIMAGE_LBM=ON \ -DSDLIMAGE_PCX=ON \ -DSDLIMAGE_PNG=ON \ -DSDLIMAGE_PNG_LIBPNG=ON \ -DSDLIMAGE_PNG_SAVE=ON \ -DSDLIMAGE_PNG_SHARED=ON \ -DSDLIMAGE_PNM=ON \ -DSDLIMAGE_QOI=ON \ -DSDLIMAGE_RELOCATABLE=OFF \ -DSDLIMAGE_SAMPLES=ON \ -DSDLIMAGE_SAMPLES_INSTALL=ON \ -DSDLIMAGE_STRICT=OFF \ -DSDLIMAGE_SVG=ON \ -DSDLIMAGE_TESTS=ON \ -DSDLIMAGE_TESTS_INSTALL=ON \ -DSDLIMAGE_TGA=ON \ -DSDLIMAGE_TGA_SAVE=ON \ -DSDLIMAGE_TIF=ON \ -DSDLIMAGE_TIF_SHARED=ON \ -DSDLIMAGE_VENDORED=OFF \ -DSDLIMAGE_WEBP=ON \ -DSDLIMAGE_WEBP_SAVE=ON \ -DSDLIMAGE_WEBP_SHARED=ON \ -DSDLIMAGE_WERROR=OFF \ -DSDLIMAGE_XCF=ON \ -DSDLIMAGE_XPM=ON \ -DSDLIMAGE_XV=ON %cmake_build %install %cmake_install # s390x fails on WEBP animations: # ERROR: 01/23/26 10:14:24: Frame data mismatch at index 1. Expected (256, 256, 20), Got (256, 256, 40) %ifnarch s390x %check %ctest %endif %files %license LICENSE.txt %doc CHANGES.txt README.md %{_libdir}/lib%{name}.so.0 %{_libdir}/lib%{name}.so.0.* %files devel %{_libdir}/lib%{name}.so %{_includedir}/%{name}/ %{_libdir}/cmake/%{name}/ %{_libdir}/pkgconfig/sdl3-image.pc %{_mandir}/man3/IMG_*.3* %{_mandir}/man3/SDL_IMAGE_*.3* %files tests %{_libexecdir}/installed-tests/%{name} %{_datadir}/installed-tests/%{name} %changelog ## START: Generated by rpmautospec * Wed Oct 07 2026 Simone Caronni - 3.4.8-1 - Update to 3.4.8 * Tue Sep 08 2026 Simone Caronni - 3.4.6-2 - Bump SDL3 requirement * Tue Sep 08 2026 Simone Caronni - 3.4.6-1 - Update to 3.4.6 * Wed Jul 15 2026 Fedora Release Engineering - 3.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat May 02 2026 Simone Caronni - 3.4.4-1 - Update to 3.4.4 * Sun Jan 25 2026 Simone Caronni - 3.4.0-3 - Disable tests on s390x * Fri Jan 23 2026 Simone Caronni - 3.4.0-2 - Add missing dependency * Fri Jan 23 2026 Simone Caronni - 3.4.0-1 - Update to 3.4.0, drop dependencies used only on vendored libraries * Sat Jan 17 2026 Simone Caronni - 3.2.6-1 - Update to 3.2.6, split out tests * Fri Jan 16 2026 Fedora Release Engineering - 3.2.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 3.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Jul 23 2025 Fedora Release Engineering - 3.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu May 15 2025 Simone Caronni - 3.2.4-4 - Fix showimage binary conflicting with SDL_image (#2355928). * Wed Mar 19 2025 Simone Caronni - 3.2.4-3 - Adjust shared object version * Wed Mar 19 2025 Simone Caronni - 3.2.4-2 - Update .gitignore * Wed Mar 19 2025 Simone Caronni - 3.2.4-1 - First import ## END: Generated by rpmautospec