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