]> git.pld-linux.org Git - packages/freetype.git/blame_incremental - freetype.spec
- up to 2.7
[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 harfbuzz # harfbuzz based autohinting
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.7
17Release: 1
18Epoch: 1
19License: GPL v2 or FTL
20Group: Libraries
21Source0: http://download.savannah.gnu.org/releases/freetype/%{name}-%{version}.tar.bz2
22# Source0-md5: be4601619827b7935e1d861745923a68
23Source1: http://download.savannah.gnu.org/releases/freetype/%{name}-doc-%{version}.tar.bz2
24# Source1-md5: 900a4958ff84f0cd574b35d9fe05c53f
25Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2
26# Source2-md5: 91f087a9626591de103924a3145368f5
27Patch0: %{name}-2.2.1-enable-valid.patch
28Patch1: ft2demos-includes.patch
29URL: http://www.freetype.org/
30BuildRequires: automake
31BuildRequires: bzip2-devel
32%{?with_harfbuzz:BuildRequires: harfbuzz-devel >= 0.9.19}
33BuildRequires: libpng-devel
34BuildRequires: pkgconfig >= 1:0.24
35BuildRequires: python
36BuildRequires: python-modules
37BuildRequires: rpm >= 4.4.9-56
38BuildRequires: sed >= 4.0
39%if "%{pld_release}" == "ac"
40%{?with_x11:BuildRequires: XFree86-devel}
41%else
42%{?with_x11:BuildRequires: xorg-lib-libX11-devel}
43%endif
44BuildRequires: zlib-devel
45Obsoletes: freetype2
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%define specflags_ia32 -fomit-frame-pointer
49# see <freetype/internal/ftserv.h>, the real horror
50%define specflags -fno-strict-aliasing
51
52%description
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.
64
65%description -l es.UTF-8
66FreeType es una máquina libre y portátil para en render de fuentes
67TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
68variedad de plataformas y ambientes. Observa que FreeType es una
69biblioteca y no una aplicación, a pesar de que algunos utilitarios se
70incluyan en este paquete.
71
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ż
76kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
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
85TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
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різних платформах.
101
102%package devel
103Summary: Header files for FreeType development
104Summary(es.UTF-8): Archivos de inclusión para desarrollo con FreeType
105Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
106Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType
107Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolvimento com FreeType
108Summary(ru.UTF-8): Библиотеки разработчика для freetype
109Summary(uk.UTF-8): Бібліотеки програміста для freetype
110Group: Development/Libraries
111Requires: %{name} = %{epoch}:%{version}-%{release}
112Requires: bzip2-devel
113%{?with_harfbuzz:Requires: harfbuzz-devel >= 0.9.19}
114Requires: libpng-devel
115Requires: zlib-devel
116Obsoletes: freetype2-devel
117
118%description devel
119This package includes the header files necessary to develop
120applications that use FreeType.
121
122%description devel -l es.UTF-8
123Este paquete es necesario, si pretendes desarrollar/compilar
124aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
125ejecutar aplicaciones existentes, no lo necesitas.
126
127%description devel -l pl.UTF-8
128Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów
129wykorzystujących bibliotekę FreeType.
130
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.
135
136%description devel -l ru.UTF-8
137Этот пакет содержит хедеры необходимые для разработки программ,
138использующих FreeType.
139
140%description devel -l uk.UTF-8
141Цей пакет містить хедери необхідні для розробки програм, що
142використовують FreeType.
143
144%package apidocs
145Summary: FreeType API documetation
146Summary(pl.UTF-8): Dokumentacja API FreeType
147Group: Documentation
148%if "%{_rpmversion}" >= "5"
149BuildArch: noarch
150%endif
151
152%description apidocs
153FreeType API documetation.
154
155%description apidocs -l pl.UTF-8
156Dokumentacja API FreeType.
157
158%package static
159Summary: FreeType static libraries
160Summary(es.UTF-8): Static libraries for freetype development
161Summary(pl.UTF-8): Biblioteki statyczne FreeType
162Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype
163Summary(ru.UTF-8): Статические библиотеки freetype
164Summary(uk.UTF-8): Статичні бібліотеки freetype
165Group: Development/Libraries
166Requires: %{name}-devel = %{epoch}:%{version}-%{release}
167Obsoletes: freetype2-static
168
169%description static
170Static FreeType libraries.
171
172%description static -l es.UTF-8
173Static libraries for freetype development.
174
175%description static -l pl.UTF-8
176Biblioteki statyczne FreeType.
177
178%description static -l pt_BR.UTF-8
179Bibliotecas estáticas para desenvolvimento com freetype.
180
181%description static -l ru.UTF-8
182Этот пакет содержит статические библиотеки, необходимые для написания
183программ, использующих freetype.
184
185%description static -l uk.UTF-8
186Цей пакет містить статичні бібліотеки, необхідні для написання
187програм, що використовують freetype.
188
189%package demos
190Summary: FreeType demo programs
191Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음
192Summary(pl.UTF-8): Programy demonstracyjne FreeType
193Group: X11/Applications
194Requires: %{name} = %{epoch}:%{version}-%{release}
195
196%description demos
197Demonstration programs for FreeType library.
198
199%description demos -l pl.UTF-8
200Programy demonstracyjne do biblioteki FreeType.
201
202%prep
203%setup -q -a1 -a2
204%patch0 -p1
205cd ft2demos-%{version}
206%patch1 -p2
207cd ..
208
209# avoid propagating -L%{_libdir} through *.la
210%{__sed} -i -e 's,libpng-config --ldflags,libpng-config --libs,' builds/unix/configure
211
212%build
213CC="%{__cc}" \
214CFLAGS="%{rpmcflags} %{rpmcppflags} \
215%{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING} \
216-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=2 \
217%{?with_harfbuzz:-DFT_CONFIG_OPTION_USE_HARFBUZZ} \
218" \
219%{__make} setup unix \
220 CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
221
222CC="%{__cc}" \
223%{__make} \
224 X11_LIB=%{?_x_libraries}
225
226%if %{with x11}
227CC="%{__cc}" \
228%{__make} -C ft2demos-* \
229 TOP_DIR=$(pwd) \
230 X11_LIB=%{?_x_libraries}
231%endif
232
233%{__make} refdoc
234
235%install
236rm -rf $RPM_BUILD_ROOT
237install -d $RPM_BUILD_ROOT%{_bindir}
238
239%{__make} install \
240 DESTDIR=$RPM_BUILD_ROOT
241
242%if %{with x11}
243install -p ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
244%endif
245
246%clean
247rm -rf $RPM_BUILD_ROOT
248
249%post -p /sbin/ldconfig
250%postun -p /sbin/ldconfig
251
252%files
253%defattr(644,root,root,755)
254%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt}
255%attr(755,root,root) %{_libdir}/libfreetype.so.*.*.*
256%attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6
257
258%files devel
259%defattr(644,root,root,755)
260%doc docs/DEBUG
261%attr(755,root,root) %{_bindir}/freetype-config
262%attr(755,root,root) %{_libdir}/libfreetype.so
263%{_libdir}/libfreetype.la
264%{_includedir}/freetype2
265%{_aclocaldir}/freetype2.m4
266%{_pkgconfigdir}/freetype2.pc
267%{_mandir}/man1/freetype-config.1*
268
269%if %{with apidocs}
270%files apidocs
271%defattr(644,root,root,755)
272%doc docs/reference
273%endif
274
275%files static
276%defattr(644,root,root,755)
277%{_libdir}/libfreetype.a
278
279%if %{with x11}
280%files demos
281%defattr(644,root,root,755)
282%attr(755,root,root) %{_bindir}/ft*
283%endif
This page took 0.039482 seconds and 4 git commands to generate.