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