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