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