]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries build | |
4 | %bcond_without graphite2 # Graphite2 library usage | |
5 | %bcond_without icu # ICU integration | |
6 | %bcond_without tests # "make check" call | |
7 | ||
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 | |
11 | Version: 1.3.4 | |
12 | Release: 1 | |
13 | License: MIT | |
14 | Group: Libraries | |
15 | Source0: https://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: 065843caf247687b94126773285bc70f | |
17 | Patch0: pc_deps.patch | |
18 | URL: https://www.freedesktop.org/wiki/HarfBuzz | |
19 | BuildRequires: autoconf >= 2.64 | |
20 | BuildRequires: automake >= 1:1.11.1 | |
21 | BuildRequires: cairo-devel >= 1.8.0 | |
22 | # hb-fc-list is disabled in util/Makefile.am | |
23 | #BuildRequires: fontconfig-devel | |
24 | BuildRequires: freetype-devel >= 1:2.4.2 | |
25 | BuildRequires: glib2-devel >= 1:2.38 | |
26 | BuildRequires: gobject-introspection-devel >= 1.34.0 | |
27 | %{?with_graphite2:BuildRequires: graphite2-devel} | |
28 | BuildRequires: gtk-doc >= 1.15 | |
29 | %{?with_icu:BuildRequires: libicu-devel} | |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtool >= 2:2.2 | |
32 | BuildRequires: pkgconfig >= 1:0.27 | |
33 | BuildRequires: sed >= 4.0 | |
34 | Requires: freetype >= 1:2.4.2 | |
35 | Requires: glib2 >= 1:2.38 | |
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} | |
50 | Requires: freetype-devel >= 1:2.4.2 | |
51 | Requires: glib2-devel >= 1:2.38 | |
52 | %{?with_graphite2:Requires: graphite2-devel} | |
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 | ||
73 | %package gobject | |
74 | Summary: Harfbuzz GObject interface | |
75 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz | |
76 | Group: Libraries | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description gobject | |
80 | Harfbuzz GObject interface. | |
81 | ||
82 | %description gobject -l pl.UTF-8 | |
83 | Interfejs GObject do biblioteki Harfbuzz. | |
84 | ||
85 | %package gobject-devel | |
86 | Summary: Header files for Harfbuzz GObject interface | |
87 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | Requires: %{name}-gobject = %{version}-%{release} | |
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 | |
97 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki | |
98 | Harfbuzz. | |
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 | ||
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 | ||
150 | %package progs | |
151 | Summary: HarfBuzz command-line utilities | |
152 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
153 | Group: Libraries | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | Requires: cairo >= 1.8.0 | |
156 | ||
157 | %description progs | |
158 | HarfBuzz command-line utilities. | |
159 | ||
160 | %description progs -l pl.UTF-8 | |
161 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
162 | ||
163 | %package apidocs | |
164 | Summary: HarfBuzz API documentation | |
165 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
166 | Group: Documentation | |
167 | %if "%{_rpmversion}" >= "5" | |
168 | BuildArch: noarch | |
169 | %endif | |
170 | ||
171 | %description apidocs | |
172 | API documentation for HarfBuzz libraries. | |
173 | ||
174 | %description apidocs -l pl.UTF-8 | |
175 | Dokumentacja API bibliotek HarfBuzz. | |
176 | ||
177 | %prep | |
178 | %setup -q | |
179 | ||
180 | %patch0 -p1 | |
181 | ||
182 | %build | |
183 | %{__libtoolize} | |
184 | %{__aclocal} -I m4 | |
185 | %{__autoconf} | |
186 | %{__autoheader} | |
187 | %{__automake} | |
188 | %configure \ | |
189 | --disable-silent-rules \ | |
190 | %{?with_static_libs:--enable-static} \ | |
191 | --with-cairo \ | |
192 | --with-freetype \ | |
193 | --with-glib \ | |
194 | --with-gobject \ | |
195 | %{?with_graphite2:--with-graphite2} \ | |
196 | --with-html-dir=%{_gtkdocdir} \ | |
197 | --with-icu%{!?with_icu:=no} | |
198 | %{__make} | |
199 | ||
200 | %{?with_tests:%{__make} check} | |
201 | ||
202 | %install | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | %{__make} install \ | |
205 | DESTDIR=$RPM_BUILD_ROOT | |
206 | ||
207 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
208 | ||
209 | %clean | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
212 | %post -p /sbin/ldconfig | |
213 | %postun -p /sbin/ldconfig | |
214 | ||
215 | %post gobject -p /sbin/ldconfig | |
216 | %postun gobject -p /sbin/ldconfig | |
217 | ||
218 | %post icu -p /sbin/ldconfig | |
219 | %postun icu -p /sbin/ldconfig | |
220 | ||
221 | %files | |
222 | %defattr(644,root,root,755) | |
223 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO | |
224 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
226 | ||
227 | %files devel | |
228 | %defattr(644,root,root,755) | |
229 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
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 | |
235 | %{_includedir}/harfbuzz/hb-deprecated.h | |
236 | %{_includedir}/harfbuzz/hb-face.h | |
237 | %{_includedir}/harfbuzz/hb-font.h | |
238 | %{_includedir}/harfbuzz/hb-ft.h | |
239 | %{_includedir}/harfbuzz/hb-glib.h | |
240 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} | |
241 | %{_includedir}/harfbuzz/hb-ot-font.h | |
242 | %{_includedir}/harfbuzz/hb-ot-layout.h | |
243 | %{_includedir}/harfbuzz/hb-ot-math.h | |
244 | %{_includedir}/harfbuzz/hb-ot-shape.h | |
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 | |
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 | |
259 | ||
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 | ||
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 | |
299 | ||
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 | ||
306 | %files apidocs | |
307 | %defattr(644,root,root,755) | |
308 | %{_gtkdocdir}/harfbuzz |