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