]>
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 | |
b5dcbd04 JB |
11 | Version: 1.4.5 |
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 |
b5dcbd04 | 16 | # Source0-md5: 635126eeab703d1729df9391ffb7983c |
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 | |
8acbd1ec | 25 | BuildRequires: glib2-devel >= 1:2.38 |
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 |
8acbd1ec | 35 | Requires: glib2 >= 1:2.38 |
cf468305 JB |
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 |
8acbd1ec | 51 | Requires: glib2-devel >= 1:2.38 |
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} | |
0844366e ER |
91 | |
92 | %description gobject-devel | |
93 | This is the package containing the header files for Harfbuzz GObject | |
94 | interface. | |
95 | ||
96 | %description gobject-devel -l pl.UTF-8 | |
b4123cee JB |
97 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki |
98 | Harfbuzz. | |
0844366e ER |
99 | |
100 | %package gobject-static | |
101 | Summary: Static Harfbuzz GObject library | |
102 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
103 | Group: Development/Libraries | |
104 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
105 | ||
106 | %description gobject-static | |
107 | Static Harfbuzz GObject library. | |
108 | ||
109 | %description gobject-static -l pl.UTF-8 | |
110 | Statyczna biblioteka Harfbuzz GObject. | |
111 | ||
d18130a6 JB |
112 | %package icu |
113 | Summary: HarfBuzz text shaping library - ICU integration | |
114 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
115 | Group: Libraries | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | ||
118 | %description icu | |
119 | HarfBuzz text shaping library - ICU integration. | |
120 | ||
121 | %description icu -l pl.UTF-8 | |
122 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
123 | ||
124 | %package icu-devel | |
125 | Summary: Header file for HarfBuzz ICU library | |
126 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
127 | Group: Development/Libraries | |
128 | Requires: %{name}-devel = %{version}-%{release} | |
129 | Requires: %{name}-icu = %{version}-%{release} | |
130 | Requires: libicu-devel | |
131 | ||
132 | %description icu-devel | |
133 | Header file for HarfBuzz ICU library. | |
134 | ||
135 | %description icu-devel -l pl.UTF-8 | |
136 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
137 | ||
138 | %package icu-static | |
139 | Summary: Static HarfBuzz ICU library | |
140 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
141 | Group: Development/Libraries | |
142 | Requires: %{name}-icu-devel = %{version}-%{release} | |
143 | ||
144 | %description icu-static | |
145 | Static HarfBuzz ICU library. | |
146 | ||
147 | %description icu-static -l pl.UTF-8 | |
148 | Biblioteka statyczna HarfBuzz ICU. | |
149 | ||
214fe00a | 150 | %package progs |
b4123cee JB |
151 | Summary: HarfBuzz command-line utilities |
152 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
153 | Group: Libraries |
154 | Requires: %{name} = %{version}-%{release} | |
155 | Requires: cairo >= 1.8.0 | |
156 | ||
157 | %description progs | |
b4123cee JB |
158 | HarfBuzz command-line utilities. |
159 | ||
160 | %description progs -l pl.UTF-8 | |
161 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 162 | |
96f54f6c JB |
163 | %package apidocs |
164 | Summary: HarfBuzz API documentation | |
165 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
166 | Group: Documentation | |
29fa7f1d ER |
167 | %if "%{_rpmversion}" >= "5" |
168 | BuildArch: noarch | |
169 | %endif | |
96f54f6c JB |
170 | |
171 | %description apidocs | |
172 | API documentation for HarfBuzz libraries. | |
173 | ||
174 | %description apidocs -l pl.UTF-8 | |
175 | Dokumentacja API bibliotek HarfBuzz. | |
176 | ||
cf468305 JB |
177 | %prep |
178 | %setup -q | |
179 | ||
26e1b58a | 180 | %patch0 -p1 |
d18130a6 | 181 | |
cf468305 | 182 | %build |
d83c11ab JB |
183 | %{__libtoolize} |
184 | %{__aclocal} -I m4 | |
185 | %{__autoconf} | |
186 | %{__autoheader} | |
187 | %{__automake} | |
cf468305 JB |
188 | %configure \ |
189 | --disable-silent-rules \ | |
d18130a6 JB |
190 | %{?with_static_libs:--enable-static} \ |
191 | --with-cairo \ | |
192 | --with-freetype \ | |
193 | --with-glib \ | |
96f54f6c | 194 | --with-gobject \ |
d18130a6 | 195 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 196 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 197 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
198 | %{__make} |
199 | ||
c9ed3fb9 AM |
200 | %{?with_tests:%{__make} check} |
201 | ||
cf468305 JB |
202 | %install |
203 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 204 | %{__make} install \ |
cf468305 JB |
205 | DESTDIR=$RPM_BUILD_ROOT |
206 | ||
4e2c56b4 | 207 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
208 | |
209 | %clean | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
212 | %post -p /sbin/ldconfig | |
213 | %postun -p /sbin/ldconfig | |
214 | ||
0844366e ER |
215 | %post gobject -p /sbin/ldconfig |
216 | %postun gobject -p /sbin/ldconfig | |
217 | ||
d18130a6 JB |
218 | %post icu -p /sbin/ldconfig |
219 | %postun icu -p /sbin/ldconfig | |
220 | ||
cf468305 JB |
221 | %files |
222 | %defattr(644,root,root,755) | |
d18130a6 | 223 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
cf468305 JB |
224 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
225 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e | 226 | |
cf468305 JB |
227 | %files devel |
228 | %defattr(644,root,root,755) | |
229 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
230 | %dir %{_includedir}/harfbuzz |
231 | %{_includedir}/harfbuzz/hb.h | |
232 | %{_includedir}/harfbuzz/hb-blob.h | |
233 | %{_includedir}/harfbuzz/hb-buffer.h | |
234 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
235 | %{_includedir}/harfbuzz/hb-deprecated.h |
236 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
237 | %{_includedir}/harfbuzz/hb-font.h |
238 | %{_includedir}/harfbuzz/hb-ft.h | |
239 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 240 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
c9ed3fb9 | 241 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 242 | %{_includedir}/harfbuzz/hb-ot-layout.h |
8acbd1ec | 243 | %{_includedir}/harfbuzz/hb-ot-math.h |
16fffe4d | 244 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 | 245 | %{_includedir}/harfbuzz/hb-ot-tag.h |
13e3f4ef | 246 | %{_includedir}/harfbuzz/hb-ot-var.h |
d18130a6 JB |
247 | %{_includedir}/harfbuzz/hb-ot.h |
248 | %{_includedir}/harfbuzz/hb-set.h | |
249 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
250 | %{_includedir}/harfbuzz/hb-shape.h | |
251 | %{_includedir}/harfbuzz/hb-unicode.h | |
252 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 JB |
253 | %{_pkgconfigdir}/harfbuzz.pc |
254 | ||
255 | %if %{with static_libs} | |
256 | %files static | |
257 | %defattr(644,root,root,755) | |
258 | %{_libdir}/libharfbuzz.a | |
259 | %endif | |
d18130a6 | 260 | |
b4123cee JB |
261 | %files gobject |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
265 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
266 | ||
267 | %files gobject-devel | |
268 | %defattr(644,root,root,755) | |
269 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
270 | %{_includedir}/harfbuzz/hb-gobject.h | |
271 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
272 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
273 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
274 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
275 | ||
276 | %if %{with static_libs} | |
277 | %files gobject-static | |
278 | %defattr(644,root,root,755) | |
279 | %{_libdir}/libharfbuzz-gobject.a | |
280 | %endif | |
281 | ||
d18130a6 JB |
282 | %if %{with icu} |
283 | %files icu | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
286 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
287 | ||
288 | %files icu-devel | |
289 | %defattr(644,root,root,755) | |
290 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
291 | %{_includedir}/harfbuzz/hb-icu.h | |
292 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
293 | ||
294 | %if %{with static_libs} | |
295 | %files icu-static | |
296 | %defattr(644,root,root,755) | |
297 | %{_libdir}/libharfbuzz-icu.a | |
298 | %endif | |
299 | %endif | |
96f54f6c | 300 | |
214fe00a ER |
301 | %files progs |
302 | %defattr(644,root,root,755) | |
303 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
304 | %attr(755,root,root) %{_bindir}/hb-shape | |
305 | %attr(755,root,root) %{_bindir}/hb-view | |
306 | ||
96f54f6c JB |
307 | %files apidocs |
308 | %defattr(644,root,root,755) | |
309 | %{_gtkdocdir}/harfbuzz |