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