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