File mingw64-SDL3_image.spec of Package mingw64-SDL3_image
#
# spec file for package mingw64-SDL3_image
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define realname SDL3_image
Name: mingw64-%{realname}
Version: 3.2.4
Release: 0
Summary: Simple DirectMedia Layer 3 image loading library
License: Zlib
Group: Development/Libraries/X11
URL: https://libsdl.org/projects/SDL_image/
#Git-Clone: https://github.com/libsdl-org/SDL_image
Source: https://github.com/libsdl-org/SDL_image/releases/download/release-%{version}/SDL3_image-%{version}.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL3-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
This is a simple library to load images of various formats as SDL
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
TIFF and WEBP formats.
%package devel
Summary: Development files for the SDL3 image loader library
Group: Development/Libraries/C and C++
Requires: %name = %version
%description devel
This is a simple library to load images of various formats as SDL
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
TIFF and WEBP formats.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
sed -i 's/\r$//' CHANGES.txt README.md
%build
%{_mingw64_cmake}
%{make_build}
%install
%{_mingw64_cmake_install}
rm -v %buildroot/%_mingw64_datadir/licenses/SDL3_image/LICENSE.txt
%files
%{_mingw64_bindir}/SDL3_image.dll
%files devel
%license LICENSE.txt
%doc CHANGES.txt README.md
%{_mingw64_includedir}/SDL3_image/
%{_mingw64_libdir}/libSDL3_image.dll.a
%{_mingw64_libdir}/pkgconfig/sdl3-image.pc
%{_mingw64_libdir}/cmake/SDL3_image/
%changelog