]>
Commit | Line | Data |
---|---|---|
fc8a614f JB |
1 | # |
2 | # Conditional build: | |
6a99d049 JB |
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) | |
05bf4539 | 5 | %bcond_without x11 # don't build examples (X11-based) |
fc8a614f | 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 |
825a448c | 15 | Version: 2.3.5 |
153cebd2 | 16 | Release: 1 |
27fedf0b | 17 | Epoch: 1 |
a5da9fa1 | 18 | License: GPL or FTL |
b54d8045 | 19 | Group: Libraries |
8acba8f5 | 20 | Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2 |
825a448c | 21 | # Source0-md5: 65234327c5ac46ee00ebda15995d4c1c |
8acba8f5 | 22 | Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2 |
825a448c | 23 | # Source1-md5: 8f443368764f7cd776749e0143f423dd |
8acba8f5 | 24 | Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2 |
825a448c | 25 | # Source2-md5: 708bf1bc13a0a1d1bb801466d6d97c40 |
0debc642 | 26 | URL: http://www.freetype.org/ |
3f176edc | 27 | BuildRequires: automake |
9f3a221b | 28 | BuildRequires: python |
b1a48478 JB |
29 | %{?with_x11:BuildRequires: xorg-lib-libX11-devel} |
30 | BuildRequires: zlib-devel | |
7c5eedeb | 31 | Obsoletes: freetype2 |
c26a7ea2 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
04d7d504 | 33 | |
8a07594d | 34 | %define specflags_ia32 -fomit-frame-pointer |
fc2659d4 JB |
35 | # see <freetype/internal/ftserv.h>, the real horror |
36 | %define specflags -fno-strict-aliasing | |
fae2a0a8 | 37 | |
04d7d504 | 38 | %description |
3c872824 | 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. | |
04d7d504 | 50 | |
27cd7709 JR |
51 | %description -l es.UTF-8 |
52 | FreeType es una máquina libre y portátil para en render de fuentes | |
56d58121 | 53 | TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran |
54 | variedad de plataformas y ambientes. Observa que FreeType es una | |
27cd7709 | 55 | biblioteca y no una aplicación, a pesar de que algunos utilitarios se |
56d58121 | 56 | incluyan en este paquete. |
57 | ||
27cd7709 JR |
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ż | |
64073610 | 62 | kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko |
27cd7709 JR |
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 | |
56d58121 | 71 | TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma |
27cd7709 JR |
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 | різних платформах. | |
56d58121 | 87 | |
52048dbc | 88 | %package devel |
b54d8045 | 89 | Summary: Header files and development documentation |
d8dc335a ER |
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 | |
b54d8045 | 96 | Group: Development/Libraries |
27fedf0b | 97 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9fdb5588 | 98 | Requires: zlib-devel |
7c5eedeb | 99 | Obsoletes: freetype2-devel |
04d7d504 | 100 | |
101 | %description devel | |
56d58121 | 102 | This package includes the header files and documentation necessary to |
103 | develop applications that use FreeType. | |
104 | ||
27cd7709 | 105 | %description devel -l es.UTF-8 |
56d58121 | 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. | |
04d7d504 | 109 | |
27cd7709 JR |
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. | |
04d7d504 | 113 | |
27cd7709 JR |
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. | |
56d58121 | 118 | |
27cd7709 JR |
119 | %description devel -l ru.UTF-8 |
120 | Этот пакет содержит хедеры и библиотеки, необходимые для разработки | |
121 | программ, использующих freetype. | |
56d58121 | 122 | |
27cd7709 JR |
123 | %description devel -l uk.UTF-8 |
124 | Цей пакет містить хедери та бібліотеки, необхідні для розробки | |
125 | програм, що використовують freetype. | |
56d58121 | 126 | |
52048dbc | 127 | %package static |
64073610 | 128 | Summary: FreeType static libraries |
d8dc335a ER |
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 | |
b54d8045 | 134 | Group: Development/Libraries |
27fedf0b | 135 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7c5eedeb | 136 | Obsoletes: freetype2-static |
04d7d504 | 137 | |
138 | %description static | |
64073610 | 139 | Static FreeType libraries. |
04d7d504 | 140 | |
27cd7709 | 141 | %description static -l es.UTF-8 |
56d58121 | 142 | Static libraries for freetype development. |
143 | ||
27cd7709 | 144 | %description static -l pl.UTF-8 |
64073610 JB |
145 | Biblioteki statyczne FreeType. |
146 | ||
27cd7709 JR |
147 | %description static -l pt_BR.UTF-8 |
148 | Bibliotecas estáticas para desenvolvimento com freetype. | |
56d58121 | 149 | |
27cd7709 JR |
150 | %description static -l ru.UTF-8 |
151 | Этот пакет содержит статические библиотеки, необходимые для написания | |
152 | программ, использующих freetype. | |
56d58121 | 153 | |
27cd7709 JR |
154 | %description static -l uk.UTF-8 |
155 | Цей пакет містить статичні бібліотеки, необхідні для написання | |
156 | програм, що використовують freetype. | |
56d58121 | 157 | |
64073610 JB |
158 | %package demos |
159 | Summary: FreeType demo programs | |
d8dc335a ER |
160 | Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 |
161 | Summary(pl.UTF-8): Programy demonstracyjne FreeType | |
64073610 | 162 | Group: X11/Applications |
27fedf0b | 163 | Requires: %{name} = %{epoch}:%{version}-%{release} |
64073610 JB |
164 | |
165 | %description demos | |
166 | Demonstration programs for FreeType library. | |
167 | ||
27cd7709 | 168 | %description demos -l pl.UTF-8 |
64073610 | 169 | Programy demonstracyjne do biblioteki FreeType. |
04d7d504 | 170 | |
04d7d504 | 171 | %prep |
65ad0bc5 | 172 | %setup -q -a1 -a2 |
04d7d504 | 173 | |
174 | %build | |
1bc9e1ed | 175 | CFLAGS="%{rpmcflags} \ |
176 | %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \ | |
177 | %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \ | |
528ee4b4 | 178 | %{__make} setup unix \ |
bf73a2cd | 179 | CFG="--prefix=%{_prefix} --libdir=%{_libdir}" |
528ee4b4 | 180 | |
fbdc8a0a | 181 | %{__make} \ |
b1a48478 | 182 | X11_LIB= |
326243a4 | 183 | |
176e1182 | 184 | %if %{with x11} |
3f176edc | 185 | %{__make} -C ft2demos-* \ |
fbdc8a0a | 186 | TOP_DIR="`pwd`" \ |
b1a48478 | 187 | X11_LIB= |
176e1182 | 188 | %endif |
64073610 | 189 | |
9f3a221b AM |
190 | %{__make} refdoc |
191 | ||
04d7d504 | 192 | %install |
193 | rm -rf $RPM_BUILD_ROOT | |
b1a0284a | 194 | install -d $RPM_BUILD_ROOT%{_bindir} |
7d6beb55 | 195 | |
0debc642 | 196 | %{__make} install \ |
176e1182 | 197 | DESTDIR=$RPM_BUILD_ROOT |
b54d8045 | 198 | |
176e1182 | 199 | %if %{with x11} |
b1a48478 | 200 | install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir} |
176e1182 | 201 | %endif |
64073610 | 202 | |
04d7d504 | 203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
fc8a614f JB |
206 | %post -p /sbin/ldconfig |
207 | %postun -p /sbin/ldconfig | |
208 | ||
0debc642 | 209 | %files |
3c872824 | 210 | %defattr(644,root,root,755) |
b1a48478 | 211 | %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt} |
ad4941db | 212 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
9de8c38c | 213 | |
04d7d504 | 214 | %files devel |
d56a454c | 215 | %defattr(644,root,root,755) |
b1a48478 | 216 | %doc docs/DEBUG docs/reference |
64073610 | 217 | %attr(755,root,root) %{_bindir}/freetype-config |
eebd1276 | 218 | %attr(755,root,root) %{_libdir}/lib*.so |
14553a3a | 219 | %{_libdir}/lib*.la |
0debc642 | 220 | %{_includedir}/freetype2 |
326243a4 | 221 | %{_includedir}/*.h |
fedad387 | 222 | %{_aclocaldir}/*.m4 |
c26a7ea2 | 223 | %{_pkgconfigdir}/*.pc |
04d7d504 | 224 | |
225 | %files static | |
e4239bd7 | 226 | %defattr(644,root,root,755) |
eebd1276 | 227 | %{_libdir}/lib*.a |
64073610 | 228 | |
176e1182 | 229 | %if %{with x11} |
5ac2cd3b JB |
230 | %files demos |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_bindir}/ft* | |
176e1182 | 233 | %endif |