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