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