package hb-aat*.h headers; rel 2
[packages/harfbuzz.git] / harfbuzz.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static libraries build
4 %bcond_without  graphite2       # Graphite2 library usage
5 %bcond_without  icu             # ICU integration
6 %bcond_without  tests           # "make check" call
7
8 Summary:        HarfBuzz - internationalized text shaping library
9 Summary(pl.UTF-8):      HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków
10 Name:           harfbuzz
11 Version:        2.2.0
12 Release:        2
13 License:        MIT
14 Group:          Libraries
15 Source0:        https://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
16 # Source0-md5:  d9b8b2bc4d0cdf7f0824f4f0631d264b
17 Patch0:         pc_deps.patch
18 URL:            https://www.freedesktop.org/wiki/HarfBuzz
19 BuildRequires:  autoconf >= 2.64
20 BuildRequires:  automake >= 1:1.13.0
21 BuildRequires:  cairo-devel >= 1.8.0
22 # hb-fc-list is disabled in util/Makefile.am
23 #BuildRequires: fontconfig-devel
24 %{?with_tests:BuildRequires:    fonttools}
25 BuildRequires:  freetype-devel >= 1:2.9
26 BuildRequires:  glib2-devel >= 1:2.38
27 BuildRequires:  gobject-introspection-devel >= 1.34.0
28 %{?with_graphite2:BuildRequires:        graphite2-devel >= 1.2.0}
29 BuildRequires:  gtk-doc >= 1.15
30 %{?with_icu:BuildRequires:      libicu-devel}
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool >= 2:2.2
33 %{?with_tests:BuildRequires:    otsanitizer}
34 BuildRequires:  pkgconfig >= 1:0.27
35 BuildRequires:  sed >= 4.0
36 Requires:       freetype >= 1:2.9
37 Requires:       glib2 >= 1:2.38
38 %{?with_graphite2:Requires:     graphite2 >= 1.2.0}
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Internationalized OpenType text layout and rendering library.
43
44 %description -l pl.UTF-8
45 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
46 obsługująca wiele języków.
47
48 %package devel
49 Summary:        Header files for HarfBuzz library
50 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki HarfBuzz
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       freetype-devel >= 1:2.9
54 Requires:       glib2-devel >= 1:2.38
55 %{?with_graphite2:Requires:     graphite2-devel >= 1.2.0}
56 Requires:       libstdc++-devel
57
58 %description devel
59 Header files for HarfBuzz library.
60
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki HarfBuzz.
63
64 %package static
65 Summary:        Static HarfBuzz library
66 Summary(pl.UTF-8):      Statyczna biblioteka HarfBuzz
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static HarfBuzz library.
72
73 %description static -l pl.UTF-8
74 Statyczna biblioteka HarfBuzz.
75
76 %package gobject
77 Summary:        Harfbuzz GObject interface
78 Summary(pl.UTF-8):      Interfejs GObject do biblioteki Harfbuzz
79 Group:          Libraries
80 Requires:       %{name} = %{version}-%{release}
81
82 %description gobject
83 Harfbuzz GObject interface.
84
85 %description gobject -l pl.UTF-8
86 Interfejs GObject do biblioteki Harfbuzz.
87
88 %package gobject-devel
89 Summary:        Header files for Harfbuzz GObject interface
90 Summary(pl.UTF-8):      Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz
91 Group:          Development/Libraries
92 Requires:       %{name}-devel = %{version}-%{release}
93 Requires:       %{name}-gobject = %{version}-%{release}
94
95 %description gobject-devel
96 This is the package containing the header files for Harfbuzz GObject
97 interface.
98
99 %description gobject-devel -l pl.UTF-8
100 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki
101 Harfbuzz.
102
103 %package gobject-static
104 Summary:        Static Harfbuzz GObject library
105 Summary(pl.UTF-8):      Statyczna biblioteka Harfbuzz GObject
106 Group:          Development/Libraries
107 Requires:       %{name}-gobject-devel = %{version}-%{release}
108
109 %description gobject-static
110 Static Harfbuzz GObject library.
111
112 %description gobject-static -l pl.UTF-8
113 Statyczna biblioteka Harfbuzz GObject.
114
115 %package icu
116 Summary:        HarfBuzz text shaping library - ICU integration
117 Summary(pl.UTF-8):      Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU
118 Group:          Libraries
119 Requires:       %{name} = %{version}-%{release}
120
121 %description icu
122 HarfBuzz text shaping library - ICU integration.
123
124 %description icu -l pl.UTF-8
125 Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU.
126
127 %package icu-devel
128 Summary:        Header file for HarfBuzz ICU library
129 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki HarfBuzz ICU
130 Group:          Development/Libraries
131 Requires:       %{name}-devel = %{version}-%{release}
132 Requires:       %{name}-icu = %{version}-%{release}
133 Requires:       libicu-devel
134
135 %description icu-devel
136 Header file for HarfBuzz ICU library.
137
138 %description icu-devel -l pl.UTF-8
139 Plik nagłówkowy biblioteki HarfBuzz ICU.
140
141 %package icu-static
142 Summary:        Static HarfBuzz ICU library
143 Summary(pl.UTF-8):      Biblioteka statyczna HarfBuzz ICU
144 Group:          Development/Libraries
145 Requires:       %{name}-icu-devel = %{version}-%{release}
146
147 %description icu-static
148 Static HarfBuzz ICU library.
149
150 %description icu-static -l pl.UTF-8
151 Biblioteka statyczna HarfBuzz ICU.
152
153 %package subset
154 Summary:        HarfBuzz text shaping library - font subsetter
155 Summary(pl.UTF-8):      Biblioteka HarfBuzz do rysowania tekstu - font subsetter
156 Group:          Libraries
157 Requires:       %{name} = %{version}-%{release}
158
159 %description subset
160 HarfBuzz text shaping library - font subsetter.
161
162 %description subset -l pl.UTF-8
163 Biblioteka HarfBuzz do rysowania tekstu - font subsetter.
164
165 %package subset-devel
166 Summary:        Header files for HarfBuzz subset library
167 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki HarfBuzz subset
168 Group:          Development/Libraries
169 Requires:       %{name}-devel = %{version}-%{release}
170 Requires:       %{name}-subset = %{version}-%{release}
171
172 %description subset-devel
173 Header files for HarfBuzz subset library.
174
175 %description subset-devel -l pl.UTF-8
176 Pliki nagłówkowe biblioteki HarfBuzz subset.
177
178 %package subset-static
179 Summary:        Static HarfBuzz subset library
180 Summary(pl.UTF-8):      Biblioteka statyczna HarfBuzz subset
181 Group:          Development/Libraries
182 Requires:       %{name}-subset-devel = %{version}-%{release}
183
184 %description subset-static
185 Static HarfBuzz subset library.
186
187 %description subset-static -l pl.UTF-8
188 Biblioteka statyczna HarfBuzz subset.
189
190 %package progs
191 Summary:        HarfBuzz command-line utilities
192 Summary(pl.UTF-8):      Narzędzia HarfBuzz uruchamiane z linii poleceń
193 Group:          Libraries
194 Requires:       %{name} = %{version}-%{release}
195 Requires:       cairo >= 1.8.0
196
197 %description progs
198 HarfBuzz command-line utilities.
199
200 %description progs -l pl.UTF-8
201 Narzędzia HarfBuzz uruchamiane z linii poleceń.
202
203 %package apidocs
204 Summary:        HarfBuzz API documentation
205 Summary(pl.UTF-8):      Dokumentacja API bibliotek HarfBuzz
206 Group:          Documentation
207 %if "%{_rpmversion}" >= "5"
208 BuildArch:      noarch
209 %endif
210
211 %description apidocs
212 API documentation for HarfBuzz libraries.
213
214 %description apidocs -l pl.UTF-8
215 Dokumentacja API bibliotek HarfBuzz.
216
217 %prep
218 %setup -q
219
220 %patch0 -p1
221
222 %build
223 %{__libtoolize}
224 %{__aclocal} -I m4
225 %{__autoconf}
226 %{__autoheader}
227 %{__automake}
228 %configure \
229         --disable-silent-rules \
230         %{?with_static_libs:--enable-static} \
231         --with-cairo \
232         --with-freetype \
233         --with-glib \
234         --with-gobject \
235         %{?with_graphite2:--with-graphite2} \
236         --with-html-dir=%{_gtkdocdir} \
237         --with-icu%{!?with_icu:=no}
238 %{__make}
239
240 %{?with_tests:%{__make} check}
241
242 %install
243 rm -rf $RPM_BUILD_ROOT
244 %{__make} install \
245         DESTDIR=$RPM_BUILD_ROOT
246
247 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
248
249 %clean
250 rm -rf $RPM_BUILD_ROOT
251
252 %post   -p /sbin/ldconfig
253 %postun -p /sbin/ldconfig
254
255 %post   gobject -p /sbin/ldconfig
256 %postun gobject -p /sbin/ldconfig
257
258 %post   icu -p /sbin/ldconfig
259 %postun icu -p /sbin/ldconfig
260
261 %post   subset -p /sbin/ldconfig
262 %postun subset -p /sbin/ldconfig
263
264 %files
265 %defattr(644,root,root,755)
266 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
267 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
268 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
269
270 %files devel
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_libdir}/libharfbuzz.so
273 %dir %{_includedir}/harfbuzz
274 %{_includedir}/harfbuzz/hb.h
275 %{_includedir}/harfbuzz/hb-aat.h
276 %{_includedir}/harfbuzz/hb-aat-layout.h
277 %{_includedir}/harfbuzz/hb-blob.h
278 %{_includedir}/harfbuzz/hb-buffer.h
279 %{_includedir}/harfbuzz/hb-common.h
280 %{_includedir}/harfbuzz/hb-deprecated.h
281 %{_includedir}/harfbuzz/hb-face.h
282 %{_includedir}/harfbuzz/hb-font.h
283 %{_includedir}/harfbuzz/hb-ft.h
284 %{_includedir}/harfbuzz/hb-glib.h
285 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
286 %{_includedir}/harfbuzz/hb-map.h
287 %{_includedir}/harfbuzz/hb-ot-color.h
288 %{_includedir}/harfbuzz/hb-ot-font.h
289 %{_includedir}/harfbuzz/hb-ot-layout.h
290 %{_includedir}/harfbuzz/hb-ot-math.h
291 %{_includedir}/harfbuzz/hb-ot-name.h
292 %{_includedir}/harfbuzz/hb-ot-shape.h
293 %{_includedir}/harfbuzz/hb-ot-var.h
294 %{_includedir}/harfbuzz/hb-ot.h
295 %{_includedir}/harfbuzz/hb-set.h
296 %{_includedir}/harfbuzz/hb-shape-plan.h
297 %{_includedir}/harfbuzz/hb-shape.h
298 %{_includedir}/harfbuzz/hb-unicode.h
299 %{_includedir}/harfbuzz/hb-version.h
300 %{_pkgconfigdir}/harfbuzz.pc
301 %dir %{_libdir}/cmake/harfbuzz
302 %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake
303
304 %if %{with static_libs}
305 %files static
306 %defattr(644,root,root,755)
307 %{_libdir}/libharfbuzz.a
308 %endif
309
310 %files gobject
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.*
313 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0
314 %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
315
316 %files gobject-devel
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so
319 %{_includedir}/harfbuzz/hb-gobject.h
320 %{_includedir}/harfbuzz/hb-gobject-enums.h
321 %{_includedir}/harfbuzz/hb-gobject-structs.h
322 %{_pkgconfigdir}/harfbuzz-gobject.pc
323 %{_datadir}/gir-1.0/HarfBuzz-0.0.gir
324
325 %if %{with static_libs}
326 %files gobject-static
327 %defattr(644,root,root,755)
328 %{_libdir}/libharfbuzz-gobject.a
329 %endif
330
331 %if %{with icu}
332 %files icu
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.*
335 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0
336
337 %files icu-devel
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so
340 %{_includedir}/harfbuzz/hb-icu.h
341 %{_pkgconfigdir}/harfbuzz-icu.pc
342
343 %if %{with static_libs}
344 %files icu-static
345 %defattr(644,root,root,755)
346 %{_libdir}/libharfbuzz-icu.a
347 %endif
348 %endif
349
350 %files subset
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so.*.*.*
353 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-subset.so.0
354
355 %files subset-devel
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so
358 %{_includedir}/harfbuzz/hb-subset.h
359 %{_pkgconfigdir}/harfbuzz-subset.pc
360
361 %if %{with static_libs}
362 %files subset-static
363 %defattr(644,root,root,755)
364 %{_libdir}/libharfbuzz-subset.a
365 %endif
366
367 %files progs
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
370 %attr(755,root,root) %{_bindir}/hb-shape
371 %attr(755,root,root) %{_bindir}/hb-subset
372 %attr(755,root,root) %{_bindir}/hb-view
373
374 %files apidocs
375 %defattr(644,root,root,755)
376 %{_gtkdocdir}/harfbuzz
This page took 0.076239 seconds and 3 git commands to generate.