]> git.pld-linux.org Git - packages/SDL2_ttf.git/blob - SDL2_ttf.spec
add static_libs bcond
[packages/SDL2_ttf.git] / SDL2_ttf.spec
1 Summary:        Simple DirectMedia Layer 2 - ttf handling
2 Summary(pl.UTF-8):      Biblioteka obsługi fontów TTF dla SDL2
3 Summary(pt_BR.UTF-8):   Simple DirectMedia Layer 2 - Biblioteca de fontes TrueType
4 Name:           SDL2_ttf
5 Version:        2.0.14
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:  e53c05e1e7f1382c316afd6c763388b1
11 URL:            http://www.libsdl.org/projects/SDL_ttf/
12 BuildRequires:  OpenGL-GLU-devel
13 BuildRequires:  SDL2-devel >= 2.0.0
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 SDL2 applications. It comes with an example program "sdl2font"
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 SDL2.
27 Pakiet zawiera przykładowy program "sdl2font", 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 SDL2. Ela vem com o programa exemplo "sdl2font" que
33 mostra uma string exemplo para uma fonte TrueType fornecida.
34
35 %package devel
36 Summary:        Header files and more to develop SDL2_ttf applications
37 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf
38 Summary(pt_BR.UTF-8):   Cabeçalhos para desenvolver programas utilizando a SDL2_ttf
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       SDL2-devel >= 2.0.0
42 Requires:       freetype-devel >= 2.1.4
43
44 %description devel
45 Header files and more to develop SDL2_ttf applications.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_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 SDL2_ttf.
53
54 %package static
55 Summary:        Static SDL2_ttf library
56 Summary(pl.UTF-8):      Biblioteka statyczna SDL2_ttf
57 Summary(pt_BR.UTF-8):   Biblioteca estática para desenvolvimento utilizando a SDL2_ttf
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static SDL2_ttf library.
63
64 %description static -l pl.UTF-8
65 Biblioteka statyczna SDL2_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 SDL2_ttf.
71
72 %prep
73 %setup -q
74
75 %build
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__automake}
80 %configure
81
82 %{__make} \
83         libSDL2_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}/sdl2font
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %doc CHANGES.txt COPYING.txt README.txt
106 %attr(755,root,root) %{_bindir}/sdl2font
107 %attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libSDL2_ttf.so
113 %{_includedir}/SDL2/SDL_ttf.h
114 %{_pkgconfigdir}/SDL2_ttf.pc
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libSDL2_ttf.a
This page took 0.125736 seconds and 3 git commands to generate.