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 para desarrollo con FreeType
92 Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
93 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType
94 Summary(pt_BR.UTF-8): Arquivos de inclusão 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
104 applications that use FreeType.
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 potrzebne przy tworzeniu programów
113 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
130 Summary(pl.UTF-8): Dokumentacja API FreeType
134 FreeType API documetation.
136 %description apidocs -l pl.UTF-8
137 Dokumentacja API FreeType.
140 Summary: FreeType static libraries
141 Summary(es.UTF-8): Static libraries for freetype development
142 Summary(pl.UTF-8): Biblioteki statyczne FreeType
143 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype
144 Summary(ru.UTF-8): Статические библиотеки freetype
145 Summary(uk.UTF-8): Статичні бібліотеки freetype
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
148 Obsoletes: freetype2-static
151 Static FreeType libraries.
153 %description static -l es.UTF-8
154 Static libraries for freetype development.
156 %description static -l pl.UTF-8
157 Biblioteki statyczne FreeType.
159 %description static -l pt_BR.UTF-8
160 Bibliotecas estáticas para desenvolvimento com freetype.
162 %description static -l ru.UTF-8
163 Этот пакет содержит статические библиотеки, необходимые для написания
164 программ, использующих freetype.
166 %description static -l uk.UTF-8
167 Цей пакет містить статичні бібліотеки, необхідні для написання
168 програм, що використовують freetype.
171 Summary: FreeType demo programs
172 Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음
173 Summary(pl.UTF-8): Programy demonstracyjne FreeType
174 Group: X11/Applications
175 Requires: %{name} = %{epoch}:%{version}-%{release}
178 Demonstration programs for FreeType library.
180 %description demos -l pl.UTF-8
181 Programy demonstracyjne do biblioteki FreeType.
187 CFLAGS="%{rpmcflags} \
188 %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \
189 %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
190 %{__make} setup unix \
191 CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
197 %{__make} -C ft2demos-* \
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_bindir}
209 DESTDIR=$RPM_BUILD_ROOT
212 install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
216 rm -rf $RPM_BUILD_ROOT
218 %post -p /sbin/ldconfig
219 %postun -p /sbin/ldconfig
222 %defattr(644,root,root,755)
223 %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt}
224 %attr(755,root,root) %{_libdir}/lib*.so.*.*
227 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/freetype-config
230 %attr(755,root,root) %{_libdir}/lib*.so
232 %{_includedir}/freetype2
235 %{_pkgconfigdir}/*.pc
239 %defattr(644,root,root,755)
244 %defattr(644,root,root,755)
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_bindir}/ft*