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