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: 519c7cbf5cbd72ffa822c66844d3114c
23 Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2
24 # Source1-md5: c9d75b659382aef80a8f86efcde08629
25 Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
26 # Source2-md5: 7e3df8813fdbad22e996a5dfed7f7361
27 URL: http://www.freetype.org/
28 BuildRequires: automake
30 BuildRequires: python-modules
31 BuildRequires: rpm >= 4.4.9-56
32 %if "%{pld_release}" == "ac"
33 %{?with_x11:BuildRequires: XFree86-devel}
35 %{?with_x11:BuildRequires: xorg-lib-libX11-devel}
37 BuildRequires: zlib-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define specflags_ia32 -fomit-frame-pointer
42 # see <freetype/internal/ftserv.h>, the real horror
43 %define specflags -fno-strict-aliasing
46 The FreeType engine is a free and portable TrueType font rendering
47 engine. It has been developed to provide TrueType support to a great
48 variety of platforms and environments.
50 Note that FreeType is a *library*. It is not a font server for your
51 favorite platform, even though it was designed to be used in many of
52 them. Note also that it is *not* a complete text-rendering library.
53 Its purpose is simply to open and manage font files, as well as load,
54 hint and render individual glyphs efficiently. You can also see it as
55 a "TrueType driver" for a higher-level library, though rendering text
56 with it is extremely easy, as demo-ed by the test programs.
58 %description -l es.UTF-8
59 FreeType es una máquina libre y portátil para en render de fuentes
60 TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
61 variedad de plataformas y ambientes. Observa que FreeType es una
62 biblioteca y no una aplicación, a pesar de que algunos utilitarios se
63 incluyan en este paquete.
65 %description -l pl.UTF-8
66 FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest
67 to jedynie biblioteka, a nie serwer fontów, chociaż została ona
68 zaprojektowana do używania także w takich serwerach. Nie jest to też
69 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
70 odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i
71 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być
72 także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu,
73 jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo
74 proste, co można zobaczyć w programach demonstracyjnych.
76 %description -l pt_BR.UTF-8
77 FreeType é uma máquina livre e portável para renderização de fontes
78 TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
79 grande variedade de plataformas e ambientes. Note que FreeType é uma
80 biblioteca e não uma aplicação, apesar que alguns utilitários são
81 incluídos neste pacote.
83 %description -l ru.UTF-8
84 Библиотека FreeType - это свободная переносимая библиотека для
85 рендеринга (растеризации) шрифтов TrueType, доступная в исходных
86 текстах на ANSI C и Pascal. Она была разработана для поддержки TT на
87 разнообразных платформах.
89 %description -l uk.UTF-8
90 Бібліотека FreeType - це вільна переносима бібліотека для рендерингу
91 (растеризації) шрифтів TrueType, що розповсюджується у вихідних
92 текстах на C та Pascal. Вона була розроблена для підтримки TT на
96 Summary: Header files for FreeType development
97 Summary(es.UTF-8): Archivos de inclusión para desarrollo con FreeType
98 Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
99 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType
100 Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolvimento com FreeType
101 Summary(ru.UTF-8): Библиотеки разработчика для freetype
102 Summary(uk.UTF-8): Бібліотеки програміста для freetype
103 Group: Development/Libraries
104 Requires: %{name} = %{epoch}:%{version}-%{release}
106 Obsoletes: freetype2-devel
109 This package includes the header files necessary to develop
110 applications that use FreeType.
112 %description devel -l es.UTF-8
113 Este paquete es necesario, si pretendes desarrollar/compilar
114 aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
115 ejecutar aplicaciones existentes, no lo necesitas.
117 %description devel -l pl.UTF-8
118 Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów
119 wykorzystujących bibliotekę FreeType.
121 %description devel -l pt_BR.UTF-8
122 Este pacote é necessário se você pretende desenvolver/compilar
123 aplicações com a biblioteca FreeType. Se você simplesmente deseja
124 rodar aplicações existentes, você não precisa deste pacote.
126 %description devel -l ru.UTF-8
127 Этот пакет содержит хедеры необходимые для разработки программ,
128 использующих FreeType.
130 %description devel -l uk.UTF-8
131 Цей пакет містить хедери необхідні для розробки програм, що
132 використовують FreeType.
135 Summary: FreeType API documetation
136 Summary(pl.UTF-8): Dokumentacja API FreeType
140 FreeType API documetation.
142 %description apidocs -l pl.UTF-8
143 Dokumentacja API FreeType.
146 Summary: FreeType static libraries
147 Summary(es.UTF-8): Static libraries for freetype development
148 Summary(pl.UTF-8): Biblioteki statyczne FreeType
149 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype
150 Summary(ru.UTF-8): Статические библиотеки freetype
151 Summary(uk.UTF-8): Статичні бібліотеки freetype
152 Group: Development/Libraries
153 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
154 Obsoletes: freetype2-static
157 Static FreeType libraries.
159 %description static -l es.UTF-8
160 Static libraries for freetype development.
162 %description static -l pl.UTF-8
163 Biblioteki statyczne FreeType.
165 %description static -l pt_BR.UTF-8
166 Bibliotecas estáticas para desenvolvimento com freetype.
168 %description static -l ru.UTF-8
169 Этот пакет содержит статические библиотеки, необходимые для написания
170 программ, использующих freetype.
172 %description static -l uk.UTF-8
173 Цей пакет містить статичні бібліотеки, необхідні для написання
174 програм, що використовують freetype.
177 Summary: FreeType demo programs
178 Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음
179 Summary(pl.UTF-8): Programy demonstracyjne FreeType
180 Group: X11/Applications
181 Requires: %{name} = %{epoch}:%{version}-%{release}
184 Demonstration programs for FreeType library.
186 %description demos -l pl.UTF-8
187 Programy demonstracyjne do biblioteki FreeType.
193 CFLAGS="%{rpmcflags} \
194 %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \
195 %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
196 %{__make} setup unix \
197 CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
200 X11_LIB=%{?_x_libraries}
203 %{__make} -C ft2demos-* \
205 X11_LIB=%{?_x_libraries}
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT%{_bindir}
215 DESTDIR=$RPM_BUILD_ROOT
218 install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
222 rm -rf $RPM_BUILD_ROOT
224 %post -p /sbin/ldconfig
225 %postun -p /sbin/ldconfig
228 %defattr(644,root,root,755)
229 %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt}
230 %attr(755,root,root) %{_libdir}/libfreetype.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6
234 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/freetype-config
237 %attr(755,root,root) %{_libdir}/libfreetype.so
238 %{_libdir}/libfreetype.la
239 %{_includedir}/freetype2
240 %{_includedir}/ft2build.h
241 %{_aclocaldir}/freetype2.m4
242 %{_pkgconfigdir}/freetype2.pc
246 %defattr(644,root,root,755)
251 %defattr(644,root,root,755)
252 %{_libdir}/libfreetype.a
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_bindir}/ft*