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