]>
Commit | Line | Data |
---|---|---|
11adbe75 JB |
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 | |
4 | Name: SDL2_ttf | |
57bd29ab | 5 | Version: 2.22.0 |
3c792971 | 6 | Release: 1 |
11adbe75 JB |
7 | License: Zlib-like |
8 | Group: Libraries | |
d650e48a | 9 | Source0: https://github.com/libsdl-org/SDL_ttf/releases/download/release-%{version}/SDL2_ttf-%{version}.tar.gz |
57bd29ab | 10 | # Source0-md5: 686e685caaa215d8fa1ac7bb02b2cf54 |
d650e48a | 11 | URL: https://github.com/libsdl-org/SDL_ttf |
7e0ce9e6 | 12 | BuildRequires: OpenGL-devel |
d650e48a | 13 | BuildRequires: SDL2-devel >= 2.0.10 |
7e0ce9e6 JP |
14 | BuildRequires: autoconf >= 2.63 |
15 | BuildRequires: automake >= 1:1.16 | |
11adbe75 | 16 | BuildRequires: freetype-devel >= 2.1.4 |
7e0ce9e6 JP |
17 | BuildRequires: harfbuzz-devel >= 2.3.1 |
18 | BuildRequires: libstdc++-devel >= 6:4.8.1 | |
11adbe75 | 19 | BuildRequires: libtool >= 2:2.0 |
7e0ce9e6 | 20 | BuildRequires: pkgconfig >= 1:0.9.0 |
d650e48a | 21 | Requires: SDL2 >= 2.0.10 |
7e0ce9e6 JP |
22 | Requires: freetype >= 2.1.4 |
23 | Requires: harfbuzz >= 2.3.1 | |
11adbe75 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
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. | |
30 | ||
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. | |
35 | ||
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. | |
40 | ||
41 | %package devel | |
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} | |
5c9d6f67 | 47 | Requires: SDL2-devel >= 2.0.8 |
11adbe75 JB |
48 | Requires: freetype-devel >= 2.1.4 |
49 | ||
50 | %description devel | |
51 | Header files and more to develop SDL2_ttf applications. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf. | |
55 | ||
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. | |
59 | ||
60 | %package static | |
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} | |
66 | ||
67 | %description static | |
68 | Static SDL2_ttf library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Biblioteka statyczna SDL2_ttf. | |
72 | ||
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 | |
76 | SDL2_ttf. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
d650e48a | 81 | %{__rm} -r external/{freetype,harfbuzz} |
7e0ce9e6 | 82 | |
11adbe75 JB |
83 | %build |
84 | %{__libtoolize} | |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__automake} | |
7e0ce9e6 JP |
88 | %configure \ |
89 | --disable-freetype-builtin \ | |
90 | --disable-harfbuzz-builtin | |
11adbe75 | 91 | |
7e0ce9e6 | 92 | %{__make} |
11adbe75 JB |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | install -d $RPM_BUILD_ROOT%{_bindir} | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font | |
102 | ||
103 | # obsoleted by pkg-config | |
104 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
d650e48a | 114 | %doc CHANGES.txt LICENSE.txt README.txt |
11adbe75 JB |
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 | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libSDL2_ttf.so | |
d650e48a | 122 | %{_libdir}/cmake/SDL2_ttf |
11adbe75 JB |
123 | %{_includedir}/SDL2/SDL_ttf.h |
124 | %{_pkgconfigdir}/SDL2_ttf.pc | |
125 | ||
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libSDL2_ttf.a |