[packages/SDL3_ttf] - SDL3_ttf 3.2.0 based on SDL2_ttf

qboosh qboosh at pld-linux.org
Wed Mar 19 21:35:04 CET 2025


commit d239fd5854714f79e2f4d42c059705b45778c4a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 19 21:29:39 2025 +0100

    - SDL3_ttf 3.2.0 based on SDL2_ttf

 SDL2_ttf.spec | 136 ----------------------------------------------------------
 SDL3_ttf.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 136 deletions(-)
---
diff --git a/SDL2_ttf.spec b/SDL2_ttf.spec
deleted file mode 100644
index 86afa7f..0000000
--- a/SDL2_ttf.spec
+++ /dev/null
@@ -1,136 +0,0 @@
-#
-# Conditional build:
-%bcond_without	static_libs	# static library
-
-Summary:	Simple DirectMedia Layer 2 - ttf handling
-Summary(pl.UTF-8):	Biblioteka obsługi fontów TTF dla SDL2
-Summary(pt_BR.UTF-8):	Simple DirectMedia Layer 2 - Biblioteca de fontes TrueType
-Name:		SDL2_ttf
-Version:	2.24.0
-Release:	1
-License:	Zlib-like
-Group:		Libraries
-Source0:	https://github.com/libsdl-org/SDL_ttf/releases/download/release-%{version}/SDL2_ttf-%{version}.tar.gz
-# Source0-md5:	ea660f1b01919998785cffae9fa954b9
-URL:		https://github.com/libsdl-org/SDL_ttf
-BuildRequires:	OpenGL-devel
-BuildRequires:	SDL2-devel >= 2.0.10
-BuildRequires:	autoconf >= 2.63
-BuildRequires:	automake >= 1:1.16
-BuildRequires:	freetype-devel >= 2.1.4
-BuildRequires:	harfbuzz-devel >= 2.3.1
-BuildRequires:	libstdc++-devel >= 6:4.8.1
-BuildRequires:	libtool >= 2:2.0
-BuildRequires:	pkgconfig >= 1:0.9.0
-BuildRequires:	rpmbuild(macros) >= 1.527
-Requires:	SDL2 >= 2.0.10
-Requires:	freetype >= 2.1.4
-Requires:	harfbuzz >= 2.3.1
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This is a sample library which allows you to use TrueType fonts in
-your SDL2 applications. It comes with an example program "sdl2font"
-which displays an example string for a given TrueType font file.
-
-%description -l pl.UTF-8
-Przykładowa biblioteka do obsługi fontów TrueType w aplikacjach SDL2.
-Pakiet zawiera przykładowy program "sdl2font", wyświetlający
-przykładowy ciąg znaków zadanym fontem TrueType.
-
-%description -l pt_BR.UTF-8
-Esta é uma biblioteca que permite a utilização de fontes TrueType em
-suas aplicações SDL2. Ela vem com o programa exemplo "sdl2font" que
-mostra uma string exemplo para uma fonte TrueType fornecida.
-
-%package devel
-Summary:	Header files and more to develop SDL2_ttf applications
-Summary(pl.UTF-8):	Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf
-Summary(pt_BR.UTF-8):	Cabeçalhos para desenvolver programas utilizando a SDL2_ttf
-Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-Requires:	SDL2-devel >= 2.0.8
-Requires:	freetype-devel >= 2.1.4
-
-%description devel
-Header files and more to develop SDL2_ttf applications.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf.
-
-%description devel -l pt_BR.UTF-8
-Este pacote contém os cabeçalhos que programadores vão precisar para
-desenvolver aplicações utilizando a SDL2_ttf.
-
-%package static
-Summary:	Static SDL2_ttf library
-Summary(pl.UTF-8):	Biblioteka statyczna SDL2_ttf
-Summary(pt_BR.UTF-8):	Biblioteca estática para desenvolvimento utilizando a SDL2_ttf
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description static
-Static SDL2_ttf library.
-
-%description static -l pl.UTF-8
-Biblioteka statyczna SDL2_ttf.
-
-%description static -l pt_BR.UTF-8
-Este pacote contém a biblioteca estática que programadores vão
-precisar para desenvolver aplicações linkados estaticamente com a
-SDL2_ttf.
-
-%prep
-%setup -q
-
-%{__rm} -r external/{freetype,harfbuzz}
-
-%build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-%configure \
-	%{__enable_disable static_libs static} \
-	--disable-freetype-builtin \
-	--disable-harfbuzz-builtin
-
-%{__make}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
-
-install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font
-
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post	-p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(644,root,root,755)
-%doc CHANGES.txt LICENSE.txt README.txt
-%attr(755,root,root) %{_bindir}/sdl2font
-%attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0
-
-%files devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libSDL2_ttf.so
-%{_libdir}/cmake/SDL2_ttf
-%{_includedir}/SDL2/SDL_ttf.h
-%{_pkgconfigdir}/SDL2_ttf.pc
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libSDL2_ttf.a
-%endif
diff --git a/SDL3_ttf.spec b/SDL3_ttf.spec
new file mode 100644
index 0000000..c6f7b80
--- /dev/null
+++ b/SDL3_ttf.spec
@@ -0,0 +1,103 @@
+Summary:	Simple DirectMedia Layer 3 - ttf handling
+Summary(pl.UTF-8):	Biblioteka obsługi fontów TTF dla SDL3
+Summary(pt_BR.UTF-8):	Simple DirectMedia Layer 3 - Biblioteca de fontes TrueType
+Name:		SDL3_ttf
+Version:	3.2.0
+Release:	1
+License:	Zlib-like
+Group:		Libraries
+#Source0Download: https://github.com/libsdl-org/SDL_ttf/releases
+Source0:	https://github.com/libsdl-org/SDL_ttf/releases/download/release-%{version}/SDL3_ttf-%{version}.tar.gz
+# Source0-md5:	3df1b42948bfa873e678923f380082a4
+URL:		https://github.com/libsdl-org/SDL_ttf
+BuildRequires:	OpenGL-devel
+BuildRequires:	SDL3-devel >= 3.2.6
+BuildRequires:	cmake >= 3.16
+BuildRequires:	freetype-devel >= 2.1.4
+BuildRequires:	harfbuzz-devel >= 2.3.1
+BuildRequires:	libstdc++-devel >= 6:4.8.1
+BuildRequires:	pkgconfig >= 1:0.9.0
+BuildRequires:	plutosvg-devel
+BuildRequires:	rpmbuild(macros) >= 1.605
+Requires:	SDL3 >= 3.2.6
+Requires:	freetype >= 2.1.4
+Requires:	harfbuzz >= 2.3.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a sample library which allows you to use TrueType fonts in
+your SDL3 applications. It comes with an example program "sdl2font"
+which displays an example string for a given TrueType font file.
+
+%description -l pl.UTF-8
+Przykładowa biblioteka do obsługi fontów TrueType w aplikacjach SDL3.
+Pakiet zawiera przykładowy program "sdl2font", wyświetlający
+przykładowy ciąg znaków zadanym fontem TrueType.
+
+%description -l pt_BR.UTF-8
+Esta é uma biblioteca que permite a utilização de fontes TrueType em
+suas aplicações SDL3. Ela vem com o programa exemplo "sdl2font" que
+mostra uma string exemplo para uma fonte TrueType fornecida.
+
+%package devel
+Summary:	Header files and more to develop SDL3_ttf applications
+Summary(pl.UTF-8):	Pliki nagłówkowe do rozwijania aplikacji używających SDL3_ttf
+Summary(pt_BR.UTF-8):	Cabeçalhos para desenvolver programas utilizando a SDL3_ttf
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	SDL3-devel >= 3.2.6
+Requires:	freetype-devel >= 2.1.4
+Requires:	plutosvg-devel
+
+%description devel
+Header files and more to develop SDL3_ttf applications.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do rozwijania aplikacji używających SDL3_ttf.
+
+%description devel -l pt_BR.UTF-8
+Este pacote contém os cabeçalhos que programadores vão precisar para
+desenvolver aplicações utilizando a SDL3_ttf.
+
+%prep
+%setup -q
+
+%build
+# Findplutosvg.cmake detects plutosvg include directory, but fails to include required plutovg one
+export CFLAGS="%{rpmcflags} -I/usr/include/plutovg"
+%cmake -B build \
+	-DSDLTTF_INSTALL_MAN=ON \
+	-DSDLTTF_STRICT=ON
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install build/showfont $RPM_BUILD_ROOT%{_bindir}/sdl3-showfont
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.md
+%attr(755,root,root) %{_bindir}/sdl3-showfont
+%attr(755,root,root) %{_libdir}/libSDL3_ttf.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libSDL3_ttf.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libSDL3_ttf.so
+%{_libdir}/cmake/SDL3_ttf
+%{_includedir}/SDL3_ttf
+%{_pkgconfigdir}/sdl3-ttf.pc
+%{_mandir}/man3/SDL_TTF_*.3*
+%{_mandir}/man3/TTF_*.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SDL3_ttf.git/commitdiff/d239fd5854714f79e2f4d42c059705b45778c4a0



More information about the pld-cvs-commit mailing list