]>
Commit | Line | Data |
---|---|---|
fc8a614f JB |
1 | # |
2 | # Conditional build: | |
6a99d049 | 3 | %bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA) |
05bf4539 | 4 | %bcond_without x11 # don't build examples (X11-based) |
dd2f1cbf | 5 | %bcond_without apidocs # disable api docs |
2338d8fc | 6 | |
64073610 | 7 | Summary: TrueType font rasterizer |
d8dc335a ER |
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 | |
3af2e27f | 14 | Name: freetype |
ab6fad47 | 15 | Version: 2.4.11 |
efcd0d0e | 16 | Release: 1 |
27fedf0b | 17 | Epoch: 1 |
86a13cde | 18 | License: GPL v2 or FTL |
b54d8045 | 19 | Group: Libraries |
bcc214a9 | 20 | Source0: http://downloads.sourceforge.net/freetype/%{name}-%{version}.tar.bz2 |
ab6fad47 | 21 | # Source0-md5: b93435488942486c8d0ca22e8f768034 |
bcc214a9 | 22 | Source1: http://downloads.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2 |
ab6fad47 | 23 | # Source1-md5: 20f148103e069093f53584ce5ba16581 |
bcc214a9 | 24 | Source2: http://downloads.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2 |
ab6fad47 | 25 | # Source2-md5: 4c751f2b02bd181102c377a6396d8454 |
f057415d | 26 | Patch0: freetype-2.2.1-enable-valid.patch |
0debc642 | 27 | URL: http://www.freetype.org/ |
3f176edc | 28 | BuildRequires: automake |
b8ff0536 | 29 | BuildRequires: bzip2-devel |
9f3a221b | 30 | BuildRequires: python |
e1621daa | 31 | BuildRequires: python-modules |
54574368 ER |
32 | BuildRequires: rpm >= 4.4.9-56 |
33 | %if "%{pld_release}" == "ac" | |
34 | %{?with_x11:BuildRequires: XFree86-devel} | |
35 | %else | |
b1a48478 | 36 | %{?with_x11:BuildRequires: xorg-lib-libX11-devel} |
54574368 | 37 | %endif |
b1a48478 | 38 | BuildRequires: zlib-devel |
7c5eedeb | 39 | Obsoletes: freetype2 |
c26a7ea2 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
04d7d504 | 41 | |
54574368 | 42 | %define specflags_ia32 -fomit-frame-pointer |
fc2659d4 JB |
43 | # see <freetype/internal/ftserv.h>, the real horror |
44 | %define specflags -fno-strict-aliasing | |
fae2a0a8 | 45 | |
04d7d504 | 46 | %description |
3c872824 | 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. | |
50 | ||
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. | |
04d7d504 | 58 | |
27cd7709 JR |
59 | %description -l es.UTF-8 |
60 | FreeType es una máquina libre y portátil para en render de fuentes | |
56d58121 | 61 | TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran |
62 | variedad de plataformas y ambientes. Observa que FreeType es una | |
27cd7709 | 63 | biblioteca y no una aplicación, a pesar de que algunos utilitarios se |
56d58121 | 64 | incluyan en este paquete. |
65 | ||
27cd7709 JR |
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ż | |
64073610 | 70 | kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko |
27cd7709 JR |
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. | |
76 | ||
77 | %description -l pt_BR.UTF-8 | |
78 | FreeType é uma máquina livre e portável para renderização de fontes | |
56d58121 | 79 | TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma |
27cd7709 JR |
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. | |
83 | ||
84 | %description -l ru.UTF-8 | |
85 | Библиотека FreeType - это свободная переносимая библиотека для | |
86 | рендеринга (растеризации) шрифтов TrueType, доступная в исходных | |
87 | текстах на ANSI C и Pascal. Она была разработана для поддержки TT на | |
88 | разнообразных платформах. | |
89 | ||
90 | %description -l uk.UTF-8 | |
91 | Бібліотека FreeType - це вільна переносима бібліотека для рендерингу | |
92 | (растеризації) шрифтів TrueType, що розповсюджується у вихідних | |
93 | текстах на C та Pascal. Вона була розроблена для підтримки TT на | |
94 | різних платформах. | |
56d58121 | 95 | |
52048dbc | 96 | %package devel |
dd2f1cbf | 97 | Summary: Header files for FreeType development |
93b67805 | 98 | Summary(es.UTF-8): Archivos de inclusión para desarrollo con FreeType |
d8dc335a | 99 | Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일 |
93b67805 JB |
100 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType |
101 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolvimento com FreeType | |
d8dc335a ER |
102 | Summary(ru.UTF-8): Библиотеки разработчика для freetype |
103 | Summary(uk.UTF-8): Бібліотеки програміста для freetype | |
b54d8045 | 104 | Group: Development/Libraries |
27fedf0b | 105 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b8ff0536 | 106 | Requires: bzip2-devel |
9fdb5588 | 107 | Requires: zlib-devel |
7c5eedeb | 108 | Obsoletes: freetype2-devel |
04d7d504 | 109 | |
110 | %description devel | |
93b67805 JB |
111 | This package includes the header files necessary to develop |
112 | applications that use FreeType. | |
56d58121 | 113 | |
27cd7709 | 114 | %description devel -l es.UTF-8 |
56d58121 | 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. | |
04d7d504 | 118 | |
27cd7709 | 119 | %description devel -l pl.UTF-8 |
93b67805 JB |
120 | Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów |
121 | wykorzystujących bibliotekę FreeType. | |
04d7d504 | 122 | |
27cd7709 JR |
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. | |
56d58121 | 127 | |
27cd7709 | 128 | %description devel -l ru.UTF-8 |
93b67805 JB |
129 | Этот пакет содержит хедеры необходимые для разработки программ, |
130 | использующих FreeType. | |
56d58121 | 131 | |
27cd7709 | 132 | %description devel -l uk.UTF-8 |
93b67805 JB |
133 | Цей пакет містить хедери необхідні для розробки програм, що |
134 | використовують FreeType. | |
56d58121 | 135 | |
dd2f1cbf ER |
136 | %package apidocs |
137 | Summary: FreeType API documetation | |
93b67805 | 138 | Summary(pl.UTF-8): Dokumentacja API FreeType |
dd2f1cbf ER |
139 | Group: Documentation |
140 | ||
141 | %description apidocs | |
142 | FreeType API documetation. | |
143 | ||
93b67805 JB |
144 | %description apidocs -l pl.UTF-8 |
145 | Dokumentacja API FreeType. | |
146 | ||
52048dbc | 147 | %package static |
64073610 | 148 | Summary: FreeType static libraries |
d8dc335a ER |
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 | |
b54d8045 | 154 | Group: Development/Libraries |
27fedf0b | 155 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7c5eedeb | 156 | Obsoletes: freetype2-static |
04d7d504 | 157 | |
158 | %description static | |
64073610 | 159 | Static FreeType libraries. |
04d7d504 | 160 | |
27cd7709 | 161 | %description static -l es.UTF-8 |
56d58121 | 162 | Static libraries for freetype development. |
163 | ||
27cd7709 | 164 | %description static -l pl.UTF-8 |
64073610 JB |
165 | Biblioteki statyczne FreeType. |
166 | ||
27cd7709 JR |
167 | %description static -l pt_BR.UTF-8 |
168 | Bibliotecas estáticas para desenvolvimento com freetype. | |
56d58121 | 169 | |
27cd7709 JR |
170 | %description static -l ru.UTF-8 |
171 | Этот пакет содержит статические библиотеки, необходимые для написания | |
172 | программ, использующих freetype. | |
56d58121 | 173 | |
27cd7709 JR |
174 | %description static -l uk.UTF-8 |
175 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
176 | програм, що використовують freetype. | |
56d58121 | 177 | |
64073610 JB |
178 | %package demos |
179 | Summary: FreeType demo programs | |
d8dc335a ER |
180 | Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 |
181 | Summary(pl.UTF-8): Programy demonstracyjne FreeType | |
64073610 | 182 | Group: X11/Applications |
27fedf0b | 183 | Requires: %{name} = %{epoch}:%{version}-%{release} |
64073610 JB |
184 | |
185 | %description demos | |
186 | Demonstration programs for FreeType library. | |
187 | ||
27cd7709 | 188 | %description demos -l pl.UTF-8 |
64073610 | 189 | Programy demonstracyjne do biblioteki FreeType. |
04d7d504 | 190 | |
04d7d504 | 191 | %prep |
65ad0bc5 | 192 | %setup -q -a1 -a2 |
f057415d | 193 | %patch0 -p1 |
04d7d504 | 194 | |
195 | %build | |
f057415d | 196 | CFLAGS="%{rpmcflags} %{rpmcppflags} \ |
1bc9e1ed | 197 | %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \ |
528ee4b4 | 198 | %{__make} setup unix \ |
bf73a2cd | 199 | CFG="--prefix=%{_prefix} --libdir=%{_libdir}" |
528ee4b4 | 200 | |
fbdc8a0a | 201 | %{__make} \ |
54574368 | 202 | X11_LIB=%{?_x_libraries} |
326243a4 | 203 | |
176e1182 | 204 | %if %{with x11} |
3f176edc | 205 | %{__make} -C ft2demos-* \ |
54574368 ER |
206 | TOP_DIR=$(pwd) \ |
207 | X11_LIB=%{?_x_libraries} | |
176e1182 | 208 | %endif |
64073610 | 209 | |
9f3a221b AM |
210 | %{__make} refdoc |
211 | ||
04d7d504 | 212 | %install |
213 | rm -rf $RPM_BUILD_ROOT | |
b1a0284a | 214 | install -d $RPM_BUILD_ROOT%{_bindir} |
7d6beb55 | 215 | |
0debc642 | 216 | %{__make} install \ |
176e1182 | 217 | DESTDIR=$RPM_BUILD_ROOT |
b54d8045 | 218 | |
176e1182 | 219 | %if %{with x11} |
2338d8fc | 220 | install -p ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir} |
176e1182 | 221 | %endif |
64073610 | 222 | |
04d7d504 | 223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
fc8a614f JB |
226 | %post -p /sbin/ldconfig |
227 | %postun -p /sbin/ldconfig | |
228 | ||
0debc642 | 229 | %files |
3c872824 | 230 | %defattr(644,root,root,755) |
1a605531 | 231 | %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt} |
67a2584c JB |
232 | %attr(755,root,root) %{_libdir}/libfreetype.so.*.*.* |
233 | %attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6 | |
9de8c38c | 234 | |
04d7d504 | 235 | %files devel |
d56a454c | 236 | %defattr(644,root,root,755) |
dd2f1cbf | 237 | %doc docs/DEBUG |
64073610 | 238 | %attr(755,root,root) %{_bindir}/freetype-config |
67a2584c JB |
239 | %attr(755,root,root) %{_libdir}/libfreetype.so |
240 | %{_libdir}/libfreetype.la | |
b26a1506 | 241 | %{_includedir}/freetype2 |
67a2584c JB |
242 | %{_includedir}/ft2build.h |
243 | %{_aclocaldir}/freetype2.m4 | |
244 | %{_pkgconfigdir}/freetype2.pc | |
04d7d504 | 245 | |
dd2f1cbf ER |
246 | %if %{with apidocs} |
247 | %files apidocs | |
248 | %defattr(644,root,root,755) | |
249 | %doc docs/reference | |
250 | %endif | |
251 | ||
04d7d504 | 252 | %files static |
e4239bd7 | 253 | %defattr(644,root,root,755) |
67a2584c | 254 | %{_libdir}/libfreetype.a |
64073610 | 255 | |
176e1182 | 256 | %if %{with x11} |
5ac2cd3b JB |
257 | %files demos |
258 | %defattr(644,root,root,755) | |
259 | %attr(755,root,root) %{_bindir}/ft* | |
176e1182 | 260 | %endif |