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