File mingw64-SDL2_image.spec of Package mingw64-SDL2_image
#
# spec file for package mingw64-SDL2_image
#
# Copyright (c) 2024-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 SDL2_image
Name: mingw64-%{realname}
Version: 2.8.8
Release: 0
Summary: Simple DirectMedia Layer 2 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/SDL2_image-%version.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-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 SDL2 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.txt
%build
%{_mingw64_cmake} -DCMAKE_INSTALL_LIBDIR:PATH=lib
%{make_build}
%install
%{_mingw64_cmake_install}
rm %buildroot/%_mingw64_datadir/licenses/SDL2_image/LICENSE.txt
%files
%{_mingw64_bindir}/SDL2_image.dll
%files devel
%license LICENSE.txt
%doc CHANGES.txt README.txt
%{_mingw64_includedir}/SDL2/SDL_image.h
%{_mingw64_libdir}/libSDL2_image.dll.a
%{_mingw64_libdir}/pkgconfig/SDL2_image.pc
%{_mingw64_libdir}/cmake/SDL2_image/
%changelog