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