]> git.pld-linux.org Git - packages/SDL2_ttf.git/blob - SDL2_ttf.spec
98c18fda14f8f5c4d4ac528cffb33e1f076c367d
[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.18
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:  86d3023ad3fab597203022f856cff103
11 URL:            http://www.libsdl.org/projects/SDL_ttf/
12 BuildRequires:  OpenGL-devel
13 BuildRequires:  SDL2-devel >= 2.0.12
14 BuildRequires:  autoconf >= 2.63
15 BuildRequires:  automake >= 1:1.16
16 BuildRequires:  freetype-devel >= 2.1.4
17 BuildRequires:  harfbuzz-devel >= 2.3.1
18 BuildRequires:  libstdc++-devel >= 6:4.8.1
19 BuildRequires:  libtool >= 2:2.0
20 BuildRequires:  pkgconfig >= 1:0.9.0
21 Requires:       SDL2 >= 2.0.12
22 Requires:       freetype >= 2.1.4
23 Requires:       harfbuzz >= 2.3.1
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is a sample library which allows you to use TrueType fonts in
28 your SDL2 applications. It comes with an example program "sdl2font"
29 which displays an example string for a given TrueType font file.
30
31 %description -l pl.UTF-8
32 Przykładowa biblioteka do obsługi fontów TrueType w aplikacjach SDL2.
33 Pakiet zawiera przykładowy program "sdl2font", wyświetlający
34 przykładowy ciąg znaków zadanym fontem TrueType.
35
36 %description -l pt_BR.UTF-8
37 Esta é uma biblioteca que permite a utilização de fontes TrueType em
38 suas aplicações SDL2. Ela vem com o programa exemplo "sdl2font" que
39 mostra uma string exemplo para uma fonte TrueType fornecida.
40
41 %package devel
42 Summary:        Header files and more to develop SDL2_ttf applications
43 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf
44 Summary(pt_BR.UTF-8):   Cabeçalhos para desenvolver programas utilizando a SDL2_ttf
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47 Requires:       SDL2-devel >= 2.0.8
48 Requires:       freetype-devel >= 2.1.4
49
50 %description devel
51 Header files and more to develop SDL2_ttf applications.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf.
55
56 %description devel -l pt_BR.UTF-8
57 Este pacote contém os cabeçalhos que programadores vão precisar para
58 desenvolver aplicações utilizando a SDL2_ttf.
59
60 %package static
61 Summary:        Static SDL2_ttf library
62 Summary(pl.UTF-8):      Biblioteka statyczna SDL2_ttf
63 Summary(pt_BR.UTF-8):   Biblioteca estática para desenvolvimento utilizando a SDL2_ttf
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static SDL2_ttf library.
69
70 %description static -l pl.UTF-8
71 Biblioteka statyczna SDL2_ttf.
72
73 %description static -l pt_BR.UTF-8
74 Este pacote contém a biblioteca estática que programadores vão
75 precisar para desenvolver aplicações linkados estaticamente com a
76 SDL2_ttf.
77
78 %prep
79 %setup -q
80
81 %{__rm} -r external/{freetype,harfbuzz}-*
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__automake}
88 %configure \
89         --disable-freetype-builtin \
90         --disable-harfbuzz-builtin
91
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{_bindir}
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font
102
103 # obsoleted by pkg-config
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc CHANGES.txt COPYING.txt README.txt
115 %attr(755,root,root) %{_bindir}/sdl2font
116 %attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libSDL2_ttf.so
122 %{_includedir}/SDL2/SDL_ttf.h
123 %{_pkgconfigdir}/SDL2_ttf.pc
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libSDL2_ttf.a
This page took 0.04759 seconds and 2 git commands to generate.