]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- rel 1; still TODO applies
[packages/freetype.git] / freetype.spec
1 # TODO:
2 # - demos seem to use installed headers instead of these coming from new tarball
3 #
4 # Conditional build:
5 %bcond_without  lcd             # without LCD subpixel color filtering (Microsoft patents in USA)
6 %bcond_without  x11             # don't build examples (X11-based)
7 %bcond_without  harfbuzz        # harfbuzz based autohinting
8 %bcond_without  apidocs         # disable api docs
9
10 Summary:        TrueType font rasterizer
11 Summary(es.UTF-8):      Biblioteca de render 3D de fuentes TrueType
12 Summary(ko.UTF-8):      자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진
13 Summary(pl.UTF-8):      Rasteryzer fontów TrueType
14 Summary(pt_BR.UTF-8):   Biblioteca de renderização de fontes TrueType
15 Summary(ru.UTF-8):      Растеризатор шрифтов TrueType
16 Summary(uk.UTF-8):      Растеризатор шрифтів TrueType
17 Name:           freetype
18 Version:        2.6
19 Release:        1
20 Epoch:          1
21 License:        GPL v2 or FTL
22 Group:          Libraries
23 Source0:        http://download.savannah.gnu.org/releases/freetype/%{name}-%{version}.tar.bz2
24 # Source0-md5:  5682890cb0267f6671dd3de6eabd3e69
25 Source1:        http://download.savannah.gnu.org/releases/freetype/%{name}-doc-%{version}.tar.bz2
26 # Source1-md5:  f456b7ead3c351c7c218bb3afd45803c
27 Source2:        http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2
28 # Source2-md5:  c6c209b37f10621d6ff100620b8292b4
29 Patch0:         %{name}-2.2.1-enable-valid.patch
30 URL:            http://www.freetype.org/
31 BuildRequires:  automake
32 BuildRequires:  bzip2-devel
33 %{?with_harfbuzz:BuildRequires: harfbuzz-devel >= 0.9.19}
34 BuildRequires:  libpng-devel
35 BuildRequires:  python
36 BuildRequires:  python-modules
37 BuildRequires:  rpm >= 4.4.9-56
38 BuildRequires:  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
44 BuildRequires:  zlib-devel
45 Obsoletes:      freetype2
46 BuildRoot:      %{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
53 The FreeType engine is a free and portable TrueType font rendering
54 engine. It has been developed to provide TrueType support to a great
55 variety of platforms and environments.
56
57 Note that FreeType is a *library*. It is not a font server for your
58 favorite platform, even though it was designed to be used in many of
59 them. Note also that it is *not* a complete text-rendering library.
60 Its purpose is simply to open and manage font files, as well as load,
61 hint and render individual glyphs efficiently. You can also see it as
62 a "TrueType driver" for a higher-level library, though rendering text
63 with it is extremely easy, as demo-ed by the test programs.
64
65 %description -l es.UTF-8
66 FreeType es una máquina libre y portátil para en render de fuentes
67 TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
68 variedad de plataformas y ambientes. Observa que FreeType es una
69 biblioteca y no una aplicación, a pesar de que algunos utilitarios se
70 incluyan en este paquete.
71
72 %description -l pl.UTF-8
73 FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest
74 to jedynie biblioteka, a nie serwer fontów, chociaż została ona
75 zaprojektowana do używania także w takich serwerach. Nie jest to też
76 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
77 odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i
78 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być
79 także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu,
80 jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo
81 proste, co można zobaczyć w programach demonstracyjnych.
82
83 %description -l pt_BR.UTF-8
84 FreeType é uma máquina livre e portável para renderização de fontes
85 TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
86 grande variedade de plataformas e ambientes. Note que FreeType é uma
87 biblioteca e não uma aplicação, apesar que alguns utilitários são
88 incluí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
103 Summary:        Header files for FreeType development
104 Summary(es.UTF-8):      Archivos de inclusión para desarrollo con FreeType
105 Summary(ko.UTF-8):      FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
106 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FreeType
107 Summary(pt_BR.UTF-8):   Arquivos de inclusão para desenvolvimento com FreeType
108 Summary(ru.UTF-8):      Библиотеки разработчика для freetype
109 Summary(uk.UTF-8):      Бібліотеки програміста для freetype
110 Group:          Development/Libraries
111 Requires:       %{name} = %{epoch}:%{version}-%{release}
112 Requires:       bzip2-devel
113 %{?with_harfbuzz:Requires:      harfbuzz-devel >= 0.9.19}
114 Requires:       libpng-devel
115 Requires:       zlib-devel
116 Obsoletes:      freetype2-devel
117
118 %description devel
119 This package includes the header files necessary to develop
120 applications that use FreeType.
121
122 %description devel -l es.UTF-8
123 Este paquete es necesario, si pretendes desarrollar/compilar
124 aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
125 ejecutar aplicaciones existentes, no lo necesitas.
126
127 %description devel -l pl.UTF-8
128 Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów
129 wykorzystujących bibliotekę FreeType.
130
131 %description devel -l pt_BR.UTF-8
132 Este pacote é necessário se você pretende desenvolver/compilar
133 aplicações com a biblioteca FreeType. Se você simplesmente deseja
134 rodar 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
145 Summary:        FreeType API documetation
146 Summary(pl.UTF-8):      Dokumentacja API FreeType
147 Group:          Documentation
148
149 %description apidocs
150 FreeType API documetation.
151
152 %description apidocs -l pl.UTF-8
153 Dokumentacja API FreeType.
154
155 %package static
156 Summary:        FreeType static libraries
157 Summary(es.UTF-8):      Static libraries for freetype development
158 Summary(pl.UTF-8):      Biblioteki statyczne FreeType
159 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com freetype
160 Summary(ru.UTF-8):      Статические библиотеки freetype
161 Summary(uk.UTF-8):      Статичні бібліотеки freetype
162 Group:          Development/Libraries
163 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
164 Obsoletes:      freetype2-static
165
166 %description static
167 Static FreeType libraries.
168
169 %description static -l es.UTF-8
170 Static libraries for freetype development.
171
172 %description static -l pl.UTF-8
173 Biblioteki statyczne FreeType.
174
175 %description static -l pt_BR.UTF-8
176 Bibliotecas estáticas para desenvolvimento com freetype.
177
178 %description static -l ru.UTF-8
179 Этот пакет содержит статические библиотеки, необходимые для написания
180 программ, использующих freetype.
181
182 %description static -l uk.UTF-8
183 Цей пакет містить статичні бібліотеки, необхідні для написання
184 програм, що використовують freetype.
185
186 %package demos
187 Summary:        FreeType demo programs
188 Summary(ko.UTF-8):      FreeType을 시험해볼 수 있는 프로그램 모음
189 Summary(pl.UTF-8):      Programy demonstracyjne FreeType
190 Group:          X11/Applications
191 Requires:       %{name} = %{epoch}:%{version}-%{release}
192
193 %description demos
194 Demonstration programs for FreeType library.
195
196 %description demos -l pl.UTF-8
197 Programy demonstracyjne do biblioteki FreeType.
198
199 %prep
200 %setup -q -a1 -a2
201 %patch0 -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.048479 seconds and 3 git commands to generate.