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