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