]>
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 | |
5c9d6f67 | 5 | Version: 2.0.15 |
3c792971 | 6 | Release: 1 |
11adbe75 JB |
7 | License: Zlib-like |
8 | Group: Libraries | |
9 | Source0: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz | |
5c9d6f67 | 10 | # Source0-md5: 04fe06ff7623d7bdcb704e82f5f88391 |
11adbe75 JB |
11 | URL: http://www.libsdl.org/projects/SDL_ttf/ |
12 | BuildRequires: OpenGL-GLU-devel | |
5c9d6f67 | 13 | BuildRequires: SDL2-devel >= 2.0.8 |
11adbe75 JB |
14 | BuildRequires: autoconf >= 2.59-9 |
15 | BuildRequires: automake | |
16 | BuildRequires: freetype-devel >= 2.1.4 | |
17 | BuildRequires: libtool >= 2:2.0 | |
5c9d6f67 | 18 | Requires: SDL2 >= 2.0.8 |
11adbe75 JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | This is a sample library which allows you to use TrueType fonts in | |
23 | your SDL2 applications. It comes with an example program "sdl2font" | |
24 | which displays an example string for a given TrueType font file. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Przykładowa biblioteka do obsługi fontów TrueType w aplikacjach SDL2. | |
28 | Pakiet zawiera przykładowy program "sdl2font", wyświetlający | |
29 | przykładowy ciąg znaków zadanym fontem TrueType. | |
30 | ||
31 | %description -l pt_BR.UTF-8 | |
32 | Esta é uma biblioteca que permite a utilização de fontes TrueType em | |
33 | suas aplicações SDL2. Ela vem com o programa exemplo "sdl2font" que | |
34 | mostra uma string exemplo para uma fonte TrueType fornecida. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files and more to develop SDL2_ttf applications | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf | |
39 | Summary(pt_BR.UTF-8): Cabeçalhos para desenvolver programas utilizando a SDL2_ttf | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
5c9d6f67 | 42 | Requires: SDL2-devel >= 2.0.8 |
11adbe75 JB |
43 | Requires: freetype-devel >= 2.1.4 |
44 | ||
45 | %description devel | |
46 | Header files and more to develop SDL2_ttf applications. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf. | |
50 | ||
51 | %description devel -l pt_BR.UTF-8 | |
52 | Este pacote contém os cabeçalhos que programadores vão precisar para | |
53 | desenvolver aplicações utilizando a SDL2_ttf. | |
54 | ||
55 | %package static | |
56 | Summary: Static SDL2_ttf library | |
57 | Summary(pl.UTF-8): Biblioteka statyczna SDL2_ttf | |
58 | Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento utilizando a SDL2_ttf | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static SDL2_ttf library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Biblioteka statyczna SDL2_ttf. | |
67 | ||
68 | %description static -l pt_BR.UTF-8 | |
69 | Este pacote contém a biblioteca estática que programadores vão | |
70 | precisar para desenvolver aplicações linkados estaticamente com a | |
71 | SDL2_ttf. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %{__libtoolize} | |
78 | %{__aclocal} | |
79 | %{__autoconf} | |
80 | %{__automake} | |
81 | %configure | |
82 | ||
83 | %{__make} \ | |
84 | libSDL2_ttf_la_LIBADD="-lm" | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | install -d $RPM_BUILD_ROOT%{_bindir} | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
93 | install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font | |
94 | ||
95 | # obsoleted by pkg-config | |
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
106 | %doc CHANGES.txt COPYING.txt README.txt | |
107 | %attr(755,root,root) %{_bindir}/sdl2font | |
108 | %attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0 | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libSDL2_ttf.so | |
114 | %{_includedir}/SDL2/SDL_ttf.h | |
115 | %{_pkgconfigdir}/SDL2_ttf.pc | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libSDL2_ttf.a |