3 %bcond_without bytecode # without TT bytecode interpreter
4 # (patents pending in USA, Japan etc., but now it includes
5 # also patent-free hinting workaround)
6 %bcond_without lcd # disable filters reducing color fringes when
7 # subpixel rendering for LCD (only used with a new 2.3.0 API;
9 %bcond_without x11 # don't build examples (X11-based)
11 Summary: TrueType font rasterizer
12 Summary(es.UTF-8): Biblioteca de render 3D de fuentes TrueType
13 Summary(ko.UTF-8): 자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진
14 Summary(pl.UTF-8): Rasteryzer fontów TrueType
15 Summary(pt_BR.UTF-8): Biblioteca de renderização de fontes TrueType
16 Summary(ru.UTF-8): Растеризатор шрифтов TrueType
17 Summary(uk.UTF-8): Растеризатор шрифтів TrueType
24 Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2
25 # Source0-md5: 119e1fe126fcfa5a70bc56db55f573d5
26 Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2
27 # Source1-md5: d732b9b5971d019fab9c695dfa496247
28 Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
29 # Source2-md5: 5813409ad4015424e822396e0c3f43cd
30 URL: http://www.freetype.org/
31 BuildRequires: automake
33 %{?with_x11:BuildRequires: xorg-lib-libX11-devel}
34 BuildRequires: zlib-devel
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define specflags_ia32 -fomit-frame-pointer
39 # see <freetype/internal/ftserv.h>, the real horror
40 %define specflags -fno-strict-aliasing
43 The FreeType engine is a free and portable TrueType font rendering
44 engine. It has been developed to provide TrueType support to a great
45 variety of platforms and environments.
47 Note that FreeType is a *library*. It is not a font server for your
48 favorite platform, even though it was designed to be used in many of
49 them. Note also that it is *not* a complete text-rendering library.
50 Its purpose is simply to open and manage font files, as well as load,
51 hint and render individual glyphs efficiently. You can also see it as
52 a "TrueType driver" for a higher-level library, though rendering text
53 with it is extremely easy, as demo-ed by the test programs.
55 %description -l es.UTF-8
56 FreeType es una máquina libre y portátil para en render de fuentes
57 TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
58 variedad de plataformas y ambientes. Observa que FreeType es una
59 biblioteca y no una aplicación, a pesar de que algunos utilitarios se
60 incluyan en este paquete.
62 %description -l pl.UTF-8
63 FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest
64 to jedynie biblioteka, a nie serwer fontów, chociaż została ona
65 zaprojektowana do używania także w takich serwerach. Nie jest to też
66 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
67 odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i
68 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być
69 także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu,
70 jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo
71 proste, co można zobaczyć w programach demonstracyjnych.
73 %description -l pt_BR.UTF-8
74 FreeType é uma máquina livre e portável para renderização de fontes
75 TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
76 grande variedade de plataformas e ambientes. Note que FreeType é uma
77 biblioteca e não uma aplicação, apesar que alguns utilitários são
78 incluídos neste pacote.
80 %description -l ru.UTF-8
81 Библиотека FreeType - это свободная переносимая библиотека для
82 рендеринга (растеризации) шрифтов TrueType, доступная в исходных
83 текстах на ANSI C и Pascal. Она была разработана для поддержки TT на
84 разнообразных платформах.
86 %description -l uk.UTF-8
87 Бібліотека FreeType - це вільна переносима бібліотека для рендерингу
88 (растеризації) шрифтів TrueType, що розповсюджується у вихідних
89 текстах на C та Pascal. Вона була розроблена для підтримки TT на
93 Summary: Header files and development documentation
94 Summary(es.UTF-8): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType
95 Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
96 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freetype i dokumentacja
97 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType
98 Summary(ru.UTF-8): Библиотеки разработчика для freetype
99 Summary(uk.UTF-8): Бібліотеки програміста для freetype
100 Group: Development/Libraries
101 Requires: %{name} = %{epoch}:%{version}-%{release}
103 Obsoletes: freetype2-devel
106 This package includes the header files and documentation necessary to
107 develop applications that use FreeType.
109 %description devel -l es.UTF-8
110 Este paquete es necesario, si pretendes desarrollar/compilar
111 aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
112 ejecutar aplicaciones existentes, no lo necesitas.
114 %description devel -l pl.UTF-8
115 Pakiet ten zawiera pliki nagłówkowe oraz dokumentację potrzebne przy
116 tworzeniu programów wykorzystujących bibliotekę FreeType.
118 %description devel -l pt_BR.UTF-8
119 Este pacote é necessário se você pretende desenvolver/compilar
120 aplicações com a biblioteca FreeType. Se você simplesmente deseja
121 rodar aplicações existentes, você não precisa deste pacote.
123 %description devel -l ru.UTF-8
124 Этот пакет содержит хедеры и библиотеки, необходимые для разработки
125 программ, использующих freetype.
127 %description devel -l uk.UTF-8
128 Цей пакет містить хедери та бібліотеки, необхідні для розробки
129 програм, що використовують freetype.
132 Summary: FreeType static libraries
133 Summary(es.UTF-8): Static libraries for freetype development
134 Summary(pl.UTF-8): Biblioteki statyczne FreeType
135 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype
136 Summary(ru.UTF-8): Статические библиотеки freetype
137 Summary(uk.UTF-8): Статичні бібліотеки freetype
138 Group: Development/Libraries
139 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
140 Obsoletes: freetype2-static
143 Static FreeType libraries.
145 %description static -l es.UTF-8
146 Static libraries for freetype development.
148 %description static -l pl.UTF-8
149 Biblioteki statyczne FreeType.
151 %description static -l pt_BR.UTF-8
152 Bibliotecas estáticas para desenvolvimento com freetype.
154 %description static -l ru.UTF-8
155 Этот пакет содержит статические библиотеки, необходимые для написания
156 программ, использующих freetype.
158 %description static -l uk.UTF-8
159 Цей пакет містить статичні бібліотеки, необхідні для написання
160 програм, що використовують freetype.
163 Summary: FreeType demo programs
164 Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음
165 Summary(pl.UTF-8): Programy demonstracyjne FreeType
166 Group: X11/Applications
167 Requires: %{name} = %{epoch}:%{version}-%{release}
170 Demonstration programs for FreeType library.
172 %description demos -l pl.UTF-8
173 Programy demonstracyjne do biblioteki FreeType.
179 CFLAGS="%{rpmcflags} \
180 %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \
181 %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
182 %{__make} setup unix \
183 CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
189 %{__make} -C ft2demos-* \
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT%{_bindir}
201 DESTDIR=$RPM_BUILD_ROOT
204 install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
208 rm -rf $RPM_BUILD_ROOT
210 %post -p /sbin/ldconfig
211 %postun -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt}
216 %attr(755,root,root) %{_libdir}/lib*.so.*.*
219 %defattr(644,root,root,755)
220 %doc docs/DEBUG docs/reference
221 %attr(755,root,root) %{_bindir}/freetype-config
222 %attr(755,root,root) %{_libdir}/lib*.so
224 %{_includedir}/freetype2
227 %{_pkgconfigdir}/*.pc
230 %defattr(644,root,root,755)
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/ft*