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