]> git.pld-linux.org Git - packages/freetype.git/blame_incremental - freetype.spec
- 2.4.1
[packages/freetype.git] / freetype.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA)
4%bcond_without x11 # don't build examples (X11-based)
5%bcond_without apidocs # disable api docs
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.4.1
16Release: 1
17Epoch: 1
18License: GPL or FTL
19Group: Libraries
20Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2
21# Source0-md5: 567a27e5189ed581396f69fb51faf2d8
22Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2
23# Source1-md5: ac2de445ce6706dd61f1c6acf2ba1837
24Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
25# Source2-md5: d2f1c8d71ebb5cba01b921e7bff24b10
26URL: http://www.freetype.org/
27BuildRequires: automake
28BuildRequires: python
29BuildRequires: python-modules
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_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
194%{__make} setup unix \
195 CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
196
197%{__make} \
198 X11_LIB=%{?_x_libraries}
199
200%if %{with x11}
201%{__make} -C ft2demos-* \
202 TOP_DIR=$(pwd) \
203 X11_LIB=%{?_x_libraries}
204%endif
205
206%{__make} refdoc
207
208%install
209rm -rf $RPM_BUILD_ROOT
210install -d $RPM_BUILD_ROOT%{_bindir}
211
212%{__make} install \
213 DESTDIR=$RPM_BUILD_ROOT
214
215%if %{with x11}
216install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
217%endif
218
219%clean
220rm -rf $RPM_BUILD_ROOT
221
222%post -p /sbin/ldconfig
223%postun -p /sbin/ldconfig
224
225%files
226%defattr(644,root,root,755)
227%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt}
228%attr(755,root,root) %{_libdir}/libfreetype.so.*.*.*
229%attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6
230
231%files devel
232%defattr(644,root,root,755)
233%doc docs/DEBUG
234%attr(755,root,root) %{_bindir}/freetype-config
235%attr(755,root,root) %{_libdir}/libfreetype.so
236%{_libdir}/libfreetype.la
237%{_includedir}/freetype2
238%{_includedir}/ft2build.h
239%{_aclocaldir}/freetype2.m4
240%{_pkgconfigdir}/freetype2.pc
241
242%if %{with apidocs}
243%files apidocs
244%defattr(644,root,root,755)
245%doc docs/reference
246%endif
247
248%files static
249%defattr(644,root,root,755)
250%{_libdir}/libfreetype.a
251
252%if %{with x11}
253%files demos
254%defattr(644,root,root,755)
255%attr(755,root,root) %{_bindir}/ft*
256%endif
This page took 0.053688 seconds and 4 git commands to generate.