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