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