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