1 Summary: Simple DirectMedia Layer 2 - ttf handling
2 Summary(pl.UTF-8): Biblioteka obsługi fontów TTF dla SDL2
3 Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca de fontes TrueType
9 Source0: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
10 # Source0-md5: 86d3023ad3fab597203022f856cff103
11 URL: http://www.libsdl.org/projects/SDL_ttf/
12 BuildRequires: OpenGL-devel
13 BuildRequires: SDL2-devel >= 2.0.12
14 BuildRequires: autoconf >= 2.63
15 BuildRequires: automake >= 1:1.16
16 BuildRequires: freetype-devel >= 2.1.4
17 BuildRequires: harfbuzz-devel >= 2.3.1
18 BuildRequires: libstdc++-devel >= 6:4.8.1
19 BuildRequires: libtool >= 2:2.0
20 BuildRequires: pkgconfig >= 1:0.9.0
21 Requires: SDL2 >= 2.0.12
22 Requires: freetype >= 2.1.4
23 Requires: harfbuzz >= 2.3.1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a sample library which allows you to use TrueType fonts in
28 your SDL2 applications. It comes with an example program "sdl2font"
29 which displays an example string for a given TrueType font file.
31 %description -l pl.UTF-8
32 Przykładowa biblioteka do obsługi fontów TrueType w aplikacjach SDL2.
33 Pakiet zawiera przykładowy program "sdl2font", wyświetlający
34 przykładowy ciąg znaków zadanym fontem TrueType.
36 %description -l pt_BR.UTF-8
37 Esta é uma biblioteca que permite a utilização de fontes TrueType em
38 suas aplicações SDL2. Ela vem com o programa exemplo "sdl2font" que
39 mostra uma string exemplo para uma fonte TrueType fornecida.
42 Summary: Header files and more to develop SDL2_ttf applications
43 Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf
44 Summary(pt_BR.UTF-8): Cabeçalhos para desenvolver programas utilizando a SDL2_ttf
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: SDL2-devel >= 2.0.8
48 Requires: freetype-devel >= 2.1.4
51 Header files and more to develop SDL2_ttf applications.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf.
56 %description devel -l pt_BR.UTF-8
57 Este pacote contém os cabeçalhos que programadores vão precisar para
58 desenvolver aplicações utilizando a SDL2_ttf.
61 Summary: Static SDL2_ttf library
62 Summary(pl.UTF-8): Biblioteka statyczna SDL2_ttf
63 Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento utilizando a SDL2_ttf
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
68 Static SDL2_ttf library.
70 %description static -l pl.UTF-8
71 Biblioteka statyczna SDL2_ttf.
73 %description static -l pt_BR.UTF-8
74 Este pacote contém a biblioteca estática que programadores vão
75 precisar para desenvolver aplicações linkados estaticamente com a
81 %{__rm} -r external/{freetype,harfbuzz}-*
89 --disable-freetype-builtin \
90 --disable-harfbuzz-builtin
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{_bindir}
99 DESTDIR=$RPM_BUILD_ROOT
101 install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font
103 # obsoleted by pkg-config
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc CHANGES.txt COPYING.txt README.txt
115 %attr(755,root,root) %{_bindir}/sdl2font
116 %attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libSDL2_ttf.so
122 %{_includedir}/SDL2/SDL_ttf.h
123 %{_pkgconfigdir}/SDL2_ttf.pc
126 %defattr(644,root,root,755)
127 %{_libdir}/libSDL2_ttf.a