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