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