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