]> git.pld-linux.org Git - packages/SDL_ttf.git/blob - SDL_ttf.spec
- typo.
[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:        2
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 mv -f $RPM_BUILD_ROOT%{_bindir}/showfont $RPM_BUILD_ROOT%{_bindir}/sdlfont
58
59 gzip -9nf README CHANGES
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/lib*.so.*.*
71
72 %files devel
73 %defattr(644,root,root,755)
74 %doc *.gz
75 %{_includedir}/SDL/*
76 %attr(755,root,root) %{_libdir}/lib*.so
77 %attr(755,root,root) %{_libdir}/lib*.la
78
79 %files static
80 %defattr(644,root,root,755)
81 %{_libdir}/lib*.a
This page took 0.465137 seconds and 3 git commands to generate.