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