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