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