]>
Commit | Line | Data |
---|---|---|
7cd6f34d | 1 | Summary: Simple DirectMedia Layer - ttf handling |
2 | Name: SDL_ttf | |
31d41575 | 3 | Version: 1.2.1 |
4 | Release: 1 | |
7cd6f34d | 5 | License: LGPL |
6 | Group: Libraries | |
7 | Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/src/%{name}-%{version}.tar.gz | |
8 | URL: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/ | |
9 | BuildRequires: freetype-devel | |
10 | BuildRequires: SDL-devel >= 1.0.1 | |
11 | BuildRequires: XFree86-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %define _prefix /usr/X11R6 | |
0eb88c47 | 15 | |
16 | %description | |
3ef760d3 | 17 | This is a sample library which allows you to use TrueType fonts in |
18 | your SDL applications. It comes with an example program "showfont" | |
19 | which displays an example string for a given TrueType font file. | |
0eb88c47 | 20 | |
0eb88c47 | 21 | %package devel |
7cd6f34d | 22 | Summary: Header files and more to develop SDL_ttf applications |
23 | Group: Development/Libraries | |
24 | Group(fr): Development/Librairies | |
25 | Group(pl): Programowanie/Biblioteki | |
26 | Requires: %{name} = %{version} | |
27 | Requires: SDL-devel | |
0eb88c47 | 28 | |
29 | %description devel | |
7cd6f34d | 30 | Header files and more to develop SDL_ttf applications. |
0eb88c47 | 31 | |
7cd6f34d | 32 | %package static |
33 | Summary: Statis SDL_ttf libraries | |
34 | Group: Development/Libraries | |
35 | Group(fr): Development/Librairies | |
36 | Group(pl): Programowanie/Biblioteki | |
37 | Requires: %{name}-devel = %{version} | |
0eb88c47 | 38 | |
7cd6f34d | 39 | %description static |
40 | Statis SDL_ttf libraries. | |
0eb88c47 | 41 | |
7cd6f34d | 42 | %prep |
43 | %setup -q | |
0eb88c47 | 44 | |
45 | %build | |
7cd6f34d | 46 | LDFLAGS="-s"; export LDFLAGS |
47 | %configure | |
58f93c09 | 48 | %{__make} |
0eb88c47 | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
7cd6f34d | 52 | |
8d5630db | 53 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
7cd6f34d | 54 | |
55 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
56 | ||
57 | gzip -9nf README CHANGES | |
0eb88c47 | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
7cd6f34d | 62 | %post -p /sbin/ldconfig |
63 | %postun -p /sbin/ldconfig | |
0eb88c47 | 64 | |
65 | %files | |
7cd6f34d | 66 | %defattr(644,root,root,755) |
67 | %attr(755,root,root) %{_bindir}/showfont | |
68 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
0eb88c47 | 69 | |
70 | %files devel | |
7cd6f34d | 71 | %defattr(644,root,root,755) |
72 | %doc *.gz | |
73 | %{_includedir}/SDL/* | |
74 | %attr(755,root,root) %{_libdir}/lib*.so | |
75 | %attr(755,root,root) %{_libdir}/lib*.la | |
76 | ||
77 | %files static | |
3ef760d3 | 78 | %defattr(644,root,root,755) |
79 | %{_libdir}/lib*.a |