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