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