]>
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) |
2ea2159b | 5 | %bcond_without harfbuzz # harfbuzz based autohinting |
dd2f1cbf | 6 | %bcond_without apidocs # disable api docs |
410d8e20 | 7 | %bcond_with regen_refdoc # regenerate reference documentation |
2338d8fc | 8 | |
64073610 | 9 | Summary: TrueType font rasterizer |
d8dc335a ER |
10 | Summary(es.UTF-8): Biblioteca de render 3D de fuentes TrueType |
11 | Summary(ko.UTF-8): 자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진 | |
12 | Summary(pl.UTF-8): Rasteryzer fontów TrueType | |
13 | Summary(pt_BR.UTF-8): Biblioteca de renderização de fontes TrueType | |
14 | Summary(ru.UTF-8): Растеризатор шрифтов TrueType | |
15 | Summary(uk.UTF-8): Растеризатор шрифтів TrueType | |
3af2e27f | 16 | Name: freetype |
78552fa1 | 17 | Version: 2.10.0 |
410d8e20 | 18 | Release: 1 |
27fedf0b | 19 | Epoch: 1 |
86a13cde | 20 | License: GPL v2 or FTL |
b54d8045 | 21 | Group: Libraries |
8aa6eee4 | 22 | Source0: http://download.savannah.gnu.org/releases/freetype/%{name}-%{version}.tar.bz2 |
78552fa1 | 23 | # Source0-md5: a717e6925b61b9dda946322ecd278a42 |
2f13208e | 24 | Source1: http://download.savannah.gnu.org/releases/freetype/%{name}-doc-%{version}.tar.bz2 |
78552fa1 | 25 | # Source1-md5: a41f85729ce4936e297d869957635e20 |
2f13208e | 26 | Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2 |
78552fa1 | 27 | # Source2-md5: 3b0202eafd9282cb5d70d0a57de489d4 |
2f13208e | 28 | Patch0: %{name}-2.2.1-enable-valid.patch |
c2b39a75 | 29 | Patch1: ft2demos-includes.patch |
0debc642 | 30 | URL: http://www.freetype.org/ |
3f176edc | 31 | BuildRequires: automake |
b8ff0536 | 32 | BuildRequires: bzip2-devel |
177829aa | 33 | %{?with_harfbuzz:BuildRequires: harfbuzz-devel >= 1.3.0} |
a3d924dc | 34 | BuildRequires: libpng-devel |
2089233b | 35 | BuildRequires: pkgconfig >= 1:0.24 |
410d8e20 JP |
36 | %if %{with regen_refdoc} |
37 | BuildRequires: python3 | |
38 | BuildRequires: python3-docwriter | |
39 | BuildRequires: python3-modules | |
40 | %endif | |
54574368 | 41 | BuildRequires: rpm >= 4.4.9-56 |
a3d924dc | 42 | BuildRequires: sed >= 4.0 |
54574368 ER |
43 | %if "%{pld_release}" == "ac" |
44 | %{?with_x11:BuildRequires: XFree86-devel} | |
45 | %else | |
b1a48478 | 46 | %{?with_x11:BuildRequires: xorg-lib-libX11-devel} |
54574368 | 47 | %endif |
b1a48478 | 48 | BuildRequires: zlib-devel |
177829aa | 49 | %{?with_harfbuzz:Requires: harfbuzz >= 1.3.0} |
7c5eedeb | 50 | Obsoletes: freetype2 |
c26a7ea2 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
04d7d504 | 52 | |
54574368 | 53 | %define specflags_ia32 -fomit-frame-pointer |
fc2659d4 JB |
54 | # see <freetype/internal/ftserv.h>, the real horror |
55 | %define specflags -fno-strict-aliasing | |
fae2a0a8 | 56 | |
04d7d504 | 57 | %description |
3c872824 | 58 | The FreeType engine is a free and portable TrueType font rendering |
59 | engine. It has been developed to provide TrueType support to a great | |
60 | variety of platforms and environments. | |
61 | ||
62 | Note that FreeType is a *library*. It is not a font server for your | |
63 | favorite platform, even though it was designed to be used in many of | |
64 | them. Note also that it is *not* a complete text-rendering library. | |
65 | Its purpose is simply to open and manage font files, as well as load, | |
66 | hint and render individual glyphs efficiently. You can also see it as | |
67 | a "TrueType driver" for a higher-level library, though rendering text | |
68 | with it is extremely easy, as demo-ed by the test programs. | |
04d7d504 | 69 | |
27cd7709 JR |
70 | %description -l es.UTF-8 |
71 | FreeType es una máquina libre y portátil para en render de fuentes | |
56d58121 | 72 | TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran |
73 | variedad de plataformas y ambientes. Observa que FreeType es una | |
27cd7709 | 74 | biblioteca y no una aplicación, a pesar de que algunos utilitarios se |
56d58121 | 75 | incluyan en este paquete. |
76 | ||
27cd7709 JR |
77 | %description -l pl.UTF-8 |
78 | FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest | |
79 | to jedynie biblioteka, a nie serwer fontów, chociaż została ona | |
80 | zaprojektowana do używania także w takich serwerach. Nie jest to też | |
64073610 | 81 | kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko |
27cd7709 JR |
82 | odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i |
83 | wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być | |
84 | także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu, | |
85 | jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo | |
86 | proste, co można zobaczyć w programach demonstracyjnych. | |
87 | ||
88 | %description -l pt_BR.UTF-8 | |
89 | FreeType é uma máquina livre e portável para renderização de fontes | |
56d58121 | 90 | TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma |
27cd7709 JR |
91 | grande variedade de plataformas e ambientes. Note que FreeType é uma |
92 | biblioteca e não uma aplicação, apesar que alguns utilitários são | |
93 | incluídos neste pacote. | |
94 | ||
95 | %description -l ru.UTF-8 | |
96 | Библиотека FreeType - это свободная переносимая библиотека для | |
97 | рендеринга (растеризации) шрифтов TrueType, доступная в исходных | |
98 | текстах на ANSI C и Pascal. Она была разработана для поддержки TT на | |
99 | разнообразных платформах. | |
100 | ||
101 | %description -l uk.UTF-8 | |
102 | Бібліотека FreeType - це вільна переносима бібліотека для рендерингу | |
103 | (растеризації) шрифтів TrueType, що розповсюджується у вихідних | |
104 | текстах на C та Pascal. Вона була розроблена для підтримки TT на | |
105 | різних платформах. | |
56d58121 | 106 | |
52048dbc | 107 | %package devel |
dd2f1cbf | 108 | Summary: Header files for FreeType development |
93b67805 | 109 | Summary(es.UTF-8): Archivos de inclusión para desarrollo con FreeType |
d8dc335a | 110 | Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일 |
93b67805 JB |
111 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType |
112 | Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolvimento com FreeType | |
d8dc335a ER |
113 | Summary(ru.UTF-8): Библиотеки разработчика для freetype |
114 | Summary(uk.UTF-8): Бібліотеки програміста для freetype | |
b54d8045 | 115 | Group: Development/Libraries |
27fedf0b | 116 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b8ff0536 | 117 | Requires: bzip2-devel |
177829aa | 118 | %{?with_harfbuzz:Requires: harfbuzz-devel >= 1.3.0} |
a3d924dc | 119 | Requires: libpng-devel |
9fdb5588 | 120 | Requires: zlib-devel |
7c5eedeb | 121 | Obsoletes: freetype2-devel |
04d7d504 | 122 | |
123 | %description devel | |
93b67805 JB |
124 | This package includes the header files necessary to develop |
125 | applications that use FreeType. | |
56d58121 | 126 | |
27cd7709 | 127 | %description devel -l es.UTF-8 |
56d58121 | 128 | Este paquete es necesario, si pretendes desarrollar/compilar |
129 | aplicaciones con la biblioteca FreeType. Si, simplemente, deseas | |
130 | ejecutar aplicaciones existentes, no lo necesitas. | |
04d7d504 | 131 | |
27cd7709 | 132 | %description devel -l pl.UTF-8 |
93b67805 JB |
133 | Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów |
134 | wykorzystujących bibliotekę FreeType. | |
04d7d504 | 135 | |
27cd7709 JR |
136 | %description devel -l pt_BR.UTF-8 |
137 | Este pacote é necessário se você pretende desenvolver/compilar | |
138 | aplicações com a biblioteca FreeType. Se você simplesmente deseja | |
139 | rodar aplicações existentes, você não precisa deste pacote. | |
56d58121 | 140 | |
27cd7709 | 141 | %description devel -l ru.UTF-8 |
93b67805 JB |
142 | Этот пакет содержит хедеры необходимые для разработки программ, |
143 | использующих FreeType. | |
56d58121 | 144 | |
27cd7709 | 145 | %description devel -l uk.UTF-8 |
93b67805 JB |
146 | Цей пакет містить хедери необхідні для розробки програм, що |
147 | використовують FreeType. | |
56d58121 | 148 | |
dd2f1cbf ER |
149 | %package apidocs |
150 | Summary: FreeType API documetation | |
93b67805 | 151 | Summary(pl.UTF-8): Dokumentacja API FreeType |
dd2f1cbf | 152 | Group: Documentation |
fdc271b1 ER |
153 | %if "%{_rpmversion}" >= "5" |
154 | BuildArch: noarch | |
155 | %endif | |
dd2f1cbf ER |
156 | |
157 | %description apidocs | |
158 | FreeType API documetation. | |
159 | ||
93b67805 JB |
160 | %description apidocs -l pl.UTF-8 |
161 | Dokumentacja API FreeType. | |
162 | ||
52048dbc | 163 | %package static |
64073610 | 164 | Summary: FreeType static libraries |
d8dc335a ER |
165 | Summary(es.UTF-8): Static libraries for freetype development |
166 | Summary(pl.UTF-8): Biblioteki statyczne FreeType | |
167 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype | |
168 | Summary(ru.UTF-8): Статические библиотеки freetype | |
169 | Summary(uk.UTF-8): Статичні бібліотеки freetype | |
b54d8045 | 170 | Group: Development/Libraries |
27fedf0b | 171 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7c5eedeb | 172 | Obsoletes: freetype2-static |
04d7d504 | 173 | |
174 | %description static | |
64073610 | 175 | Static FreeType libraries. |
04d7d504 | 176 | |
27cd7709 | 177 | %description static -l es.UTF-8 |
56d58121 | 178 | Static libraries for freetype development. |
179 | ||
27cd7709 | 180 | %description static -l pl.UTF-8 |
64073610 JB |
181 | Biblioteki statyczne FreeType. |
182 | ||
27cd7709 JR |
183 | %description static -l pt_BR.UTF-8 |
184 | Bibliotecas estáticas para desenvolvimento com freetype. | |
56d58121 | 185 | |
27cd7709 JR |
186 | %description static -l ru.UTF-8 |
187 | Этот пакет содержит статические библиотеки, необходимые для написания | |
188 | программ, использующих freetype. | |
56d58121 | 189 | |
27cd7709 JR |
190 | %description static -l uk.UTF-8 |
191 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
192 | програм, що використовують freetype. | |
56d58121 | 193 | |
64073610 JB |
194 | %package demos |
195 | Summary: FreeType demo programs | |
d8dc335a ER |
196 | Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 |
197 | Summary(pl.UTF-8): Programy demonstracyjne FreeType | |
64073610 | 198 | Group: X11/Applications |
27fedf0b | 199 | Requires: %{name} = %{epoch}:%{version}-%{release} |
64073610 JB |
200 | |
201 | %description demos | |
202 | Demonstration programs for FreeType library. | |
203 | ||
27cd7709 | 204 | %description demos -l pl.UTF-8 |
64073610 | 205 | Programy demonstracyjne do biblioteki FreeType. |
04d7d504 | 206 | |
04d7d504 | 207 | %prep |
65ad0bc5 | 208 | %setup -q -a1 -a2 |
f057415d | 209 | %patch0 -p1 |
5247b49b AM |
210 | cd ft2demos-%{version} |
211 | %patch1 -p2 | |
212 | cd .. | |
04d7d504 | 213 | |
a3d924dc JB |
214 | # avoid propagating -L%{_libdir} through *.la |
215 | %{__sed} -i -e 's,libpng-config --ldflags,libpng-config --libs,' builds/unix/configure | |
216 | ||
04d7d504 | 217 | %build |
347f1c11 | 218 | CC="%{__cc}" \ |
f057415d | 219 | CFLAGS="%{rpmcflags} %{rpmcppflags} \ |
060ef429 | 220 | %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING} \ |
405831ce | 221 | -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=2 \ |
2ea2159b | 222 | %{?with_harfbuzz:-DFT_CONFIG_OPTION_USE_HARFBUZZ} \ |
060ef429 | 223 | " \ |
528ee4b4 | 224 | %{__make} setup unix \ |
12b7debb | 225 | CFG="--prefix=%{_prefix} --libdir=%{_libdir} --enable-freetype-config" |
528ee4b4 | 226 | |
347f1c11 | 227 | CC="%{__cc}" \ |
fbdc8a0a | 228 | %{__make} \ |
54574368 | 229 | X11_LIB=%{?_x_libraries} |
326243a4 | 230 | |
176e1182 | 231 | %if %{with x11} |
347f1c11 | 232 | CC="%{__cc}" \ |
3f176edc | 233 | %{__make} -C ft2demos-* \ |
54574368 ER |
234 | TOP_DIR=$(pwd) \ |
235 | X11_LIB=%{?_x_libraries} | |
176e1182 | 236 | %endif |
64073610 | 237 | |
410d8e20 | 238 | %if %{with regen_refdoc} |
9f3a221b | 239 | %{__make} refdoc |
410d8e20 | 240 | %endif |
9f3a221b | 241 | |
04d7d504 | 242 | %install |
243 | rm -rf $RPM_BUILD_ROOT | |
b1a0284a | 244 | install -d $RPM_BUILD_ROOT%{_bindir} |
7d6beb55 | 245 | |
0debc642 | 246 | %{__make} install \ |
176e1182 | 247 | DESTDIR=$RPM_BUILD_ROOT |
b54d8045 | 248 | |
176e1182 | 249 | %if %{with x11} |
2338d8fc | 250 | install -p ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir} |
176e1182 | 251 | %endif |
64073610 | 252 | |
04d7d504 | 253 | %clean |
254 | rm -rf $RPM_BUILD_ROOT | |
255 | ||
fc8a614f JB |
256 | %post -p /sbin/ldconfig |
257 | %postun -p /sbin/ldconfig | |
258 | ||
0debc642 | 259 | %files |
3c872824 | 260 | %defattr(644,root,root,755) |
1a605531 | 261 | %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt} |
67a2584c JB |
262 | %attr(755,root,root) %{_libdir}/libfreetype.so.*.*.* |
263 | %attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6 | |
9de8c38c | 264 | |
04d7d504 | 265 | %files devel |
d56a454c | 266 | %defattr(644,root,root,755) |
dd2f1cbf | 267 | %doc docs/DEBUG |
12b7debb | 268 | %attr(755,root,root) %{_bindir}/freetype-config |
67a2584c JB |
269 | %attr(755,root,root) %{_libdir}/libfreetype.so |
270 | %{_libdir}/libfreetype.la | |
b26a1506 | 271 | %{_includedir}/freetype2 |
67a2584c JB |
272 | %{_aclocaldir}/freetype2.m4 |
273 | %{_pkgconfigdir}/freetype2.pc | |
12b7debb | 274 | %{_mandir}/man1/freetype-config.1* |
04d7d504 | 275 | |
dd2f1cbf ER |
276 | %if %{with apidocs} |
277 | %files apidocs | |
278 | %defattr(644,root,root,755) | |
279 | %doc docs/reference | |
280 | %endif | |
281 | ||
04d7d504 | 282 | %files static |
e4239bd7 | 283 | %defattr(644,root,root,755) |
67a2584c | 284 | %{_libdir}/libfreetype.a |
64073610 | 285 | |
176e1182 | 286 | %if %{with x11} |
5ac2cd3b JB |
287 | %files demos |
288 | %defattr(644,root,root,755) | |
289 | %attr(755,root,root) %{_bindir}/ft* | |
176e1182 | 290 | %endif |