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