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