]> git.pld-linux.org Git - packages/SDL_ttf.git/blob - SDL_ttf.spec
- updated to 1.2.1.
[packages/SDL_ttf.git] / SDL_ttf.spec
1 Summary:        Simple DirectMedia Layer - ttf handling
2 Name:           SDL_ttf
3 Version:        1.2.1
4 Release:        1
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
15
16 %description
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.
20
21 %package devel
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
28
29 %description devel
30 Header files and more to develop SDL_ttf applications.
31
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}
38
39 %description static
40 Statis SDL_ttf libraries.
41
42 %prep
43 %setup -q
44
45 %build
46 LDFLAGS="-s"; export LDFLAGS 
47 %configure
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
56
57 gzip -9nf README CHANGES
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post   -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
64
65 %files
66 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/showfont
68 %attr(755,root,root) %{_libdir}/lib*.so.*.*
69
70 %files devel
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
78 %defattr(644,root,root,755)
79 %{_libdir}/lib*.a
This page took 0.187842 seconds and 3 git commands to generate.