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