]>
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 | |
8b0a0be7 | 11 | Version: 1.2.5 |
4177ce42 | 12 | Release: 1 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
15 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
8b0a0be7 | 16 | # Source0-md5: cf1eca3bdcdcfb818c7ebb4644b4cc0d |
cf468305 | 17 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
d83c11ab JB |
18 | BuildRequires: autoconf >= 2.64 |
19 | BuildRequires: automake >= 1:1.11.1 | |
cf468305 | 20 | BuildRequires: cairo-devel >= 1.8.0 |
4f0fb993 JB |
21 | # hb-fc-list is disabled in util/Makefile.am |
22 | #BuildRequires: fontconfig-devel | |
23 | BuildRequires: freetype-devel >= 1:2.4.2 | |
cf468305 | 24 | BuildRequires: glib2-devel >= 1:2.16 |
6681ba55 | 25 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
d18130a6 | 26 | %{?with_graphite2:BuildRequires: graphite2-devel} |
96f54f6c | 27 | BuildRequires: gtk-doc >= 1.15 |
d18130a6 | 28 | %{?with_icu:BuildRequires: libicu-devel} |
cf468305 | 29 | BuildRequires: libstdc++-devel |
d83c11ab | 30 | BuildRequires: libtool >= 2:2.2 |
d9ba18f6 | 31 | BuildRequires: pkgconfig >= 1:0.20 |
d83c11ab | 32 | BuildRequires: sed >= 4.0 |
4f0fb993 | 33 | Requires: freetype >= 1:2.4.2 |
cf468305 JB |
34 | Requires: glib2 >= 1:2.16 |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | Internationalized OpenType text layout and rendering library. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
42 | obsługująca wiele języków. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for HarfBuzz library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
4f0fb993 | 49 | Requires: freetype-devel >= 1:2.4.2 |
cf468305 | 50 | Requires: glib2-devel >= 1:2.16 |
d18130a6 | 51 | %{?with_graphite2:Requires: graphite2-devel} |
cf468305 JB |
52 | Requires: libstdc++-devel |
53 | ||
54 | %description devel | |
55 | Header files for HarfBuzz library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki HarfBuzz. | |
59 | ||
60 | %package static | |
61 | Summary: Static HarfBuzz library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static HarfBuzz library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka HarfBuzz. | |
71 | ||
0844366e ER |
72 | %package gobject |
73 | Summary: Harfbuzz GObject interface | |
b4123cee | 74 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz |
0844366e | 75 | Group: Libraries |
214fe00a | 76 | Requires: %{name} = %{version}-%{release} |
0844366e ER |
77 | |
78 | %description gobject | |
79 | Harfbuzz GObject interface. | |
80 | ||
81 | %description gobject -l pl.UTF-8 | |
b4123cee | 82 | Interfejs GObject do biblioteki Harfbuzz. |
0844366e ER |
83 | |
84 | %package gobject-devel | |
85 | Summary: Header files for Harfbuzz GObject interface | |
b4123cee | 86 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz |
0844366e ER |
87 | Group: Development/Libraries |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | Requires: %{name}-gobject = %{version}-%{release} | |
90 | Requires: glib2-devel >= 1:2.12.2 | |
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 | ||
d18130a6 JB |
180 | # missing dependencies |
181 | cat >> src/harfbuzz.pc.in <<EOF | |
96f54f6c | 182 | Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2} |
d18130a6 JB |
183 | EOF |
184 | ||
cf468305 | 185 | %build |
d83c11ab JB |
186 | %{__libtoolize} |
187 | %{__aclocal} -I m4 | |
188 | %{__autoconf} | |
189 | %{__autoheader} | |
190 | %{__automake} | |
cf468305 JB |
191 | %configure \ |
192 | --disable-silent-rules \ | |
d18130a6 JB |
193 | %{?with_static_libs:--enable-static} \ |
194 | --with-cairo \ | |
195 | --with-freetype \ | |
196 | --with-glib \ | |
96f54f6c | 197 | --with-gobject \ |
d18130a6 | 198 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 199 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 200 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
201 | %{__make} |
202 | ||
c9ed3fb9 AM |
203 | %{?with_tests:%{__make} check} |
204 | ||
cf468305 JB |
205 | %install |
206 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 207 | %{__make} install \ |
cf468305 JB |
208 | DESTDIR=$RPM_BUILD_ROOT |
209 | ||
4e2c56b4 | 210 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
211 | |
212 | %clean | |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
215 | %post -p /sbin/ldconfig | |
216 | %postun -p /sbin/ldconfig | |
217 | ||
0844366e ER |
218 | %post gobject -p /sbin/ldconfig |
219 | %postun gobject -p /sbin/ldconfig | |
220 | ||
d18130a6 JB |
221 | %post icu -p /sbin/ldconfig |
222 | %postun icu -p /sbin/ldconfig | |
223 | ||
cf468305 JB |
224 | %files |
225 | %defattr(644,root,root,755) | |
d18130a6 | 226 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
cf468305 JB |
227 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
228 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e | 229 | |
cf468305 JB |
230 | %files devel |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
233 | %dir %{_includedir}/harfbuzz |
234 | %{_includedir}/harfbuzz/hb.h | |
235 | %{_includedir}/harfbuzz/hb-blob.h | |
236 | %{_includedir}/harfbuzz/hb-buffer.h | |
237 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
238 | %{_includedir}/harfbuzz/hb-deprecated.h |
239 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
240 | %{_includedir}/harfbuzz/hb-font.h |
241 | %{_includedir}/harfbuzz/hb-ft.h | |
242 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 243 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
c9ed3fb9 | 244 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 245 | %{_includedir}/harfbuzz/hb-ot-layout.h |
16fffe4d | 246 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 JB |
247 | %{_includedir}/harfbuzz/hb-ot-tag.h |
248 | %{_includedir}/harfbuzz/hb-ot.h | |
249 | %{_includedir}/harfbuzz/hb-set.h | |
250 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
251 | %{_includedir}/harfbuzz/hb-shape.h | |
252 | %{_includedir}/harfbuzz/hb-unicode.h | |
253 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 JB |
254 | %{_pkgconfigdir}/harfbuzz.pc |
255 | ||
256 | %if %{with static_libs} | |
257 | %files static | |
258 | %defattr(644,root,root,755) | |
259 | %{_libdir}/libharfbuzz.a | |
260 | %endif | |
d18130a6 | 261 | |
b4123cee JB |
262 | %files gobject |
263 | %defattr(644,root,root,755) | |
264 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
265 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
266 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
267 | ||
268 | %files gobject-devel | |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
271 | %{_includedir}/harfbuzz/hb-gobject.h | |
272 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
273 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
274 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
275 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
276 | ||
277 | %if %{with static_libs} | |
278 | %files gobject-static | |
279 | %defattr(644,root,root,755) | |
280 | %{_libdir}/libharfbuzz-gobject.a | |
281 | %endif | |
282 | ||
d18130a6 JB |
283 | %if %{with icu} |
284 | %files icu | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
287 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
288 | ||
289 | %files icu-devel | |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
292 | %{_includedir}/harfbuzz/hb-icu.h | |
293 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
294 | ||
295 | %if %{with static_libs} | |
296 | %files icu-static | |
297 | %defattr(644,root,root,755) | |
298 | %{_libdir}/libharfbuzz-icu.a | |
299 | %endif | |
300 | %endif | |
96f54f6c | 301 | |
214fe00a ER |
302 | %files progs |
303 | %defattr(644,root,root,755) | |
304 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
305 | %attr(755,root,root) %{_bindir}/hb-shape | |
306 | %attr(755,root,root) %{_bindir}/hb-view | |
307 | ||
96f54f6c JB |
308 | %files apidocs |
309 | %defattr(644,root,root,755) | |
310 | %{_gtkdocdir}/harfbuzz |