File mingw64-SDL3_ttf.spec of Package mingw64-SDL3_ttf
#
# spec file for package mingw64-SDL3_ttf
#
# 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_ttf
Name: mingw64-%{realname}
Version: 3.2.2
Release: 0
Summary: Simple DirectMedia Layer 3 Truetype library
License: Zlib
Group: Development/Libraries/X11
URL: https://wiki.libsdl.org/SDL3_ttf/FrontPage
Source: https://github.com/libsdl-org/SDL_ttf/releases/download/release-%version/SDL3_ttf-%version.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL3-devel
BuildRequires: mingw64-freetype-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
This is a sample library that allows you to use TrueType fonts in your
SDL applications.
%package devel
Summary: Header files for the Simple DirectMedia Layer 3 Truetype library
Group: Development/Libraries/C and C++
Requires: %name = %version
%description devel
This is a sample library that allows you to use TrueType fonts in your
SDL3 applications.
%_mingw64_debug_package
%prep
%autosetup -p1 -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_ttf/LICENSE.txt
%files
%{_mingw64_bindir}/SDL3_ttf.dll
%files devel
%license LICENSE.txt
%doc CHANGES.txt README.md
%{_mingw64_includedir}/SDL3_ttf
%{_mingw64_libdir}/libSDL3_ttf.dll.a
%{_mingw64_libdir}/pkgconfig/sdl3-ttf.pc
%{_mingw64_libdir}/cmake/SDL3_ttf
%changelog