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
8 Summary: HarfBuzz - internationalized text shaping library
9 Summary(pl.UTF-8): HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków
15 Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
16 # Source0-md5: baccea934fac603c8192adbcd096e28c
17 URL: http://www.freedesktop.org/wiki/HarfBuzz
18 BuildRequires: cairo-devel >= 1.8.0
19 BuildRequires: freetype-devel >= 2.3.8
20 BuildRequires: glib2-devel >= 1:2.16
21 BuildRequires: gobject-introspection-devel >= 1.34.0
22 %{?with_graphite2:BuildRequires: graphite2-devel}
23 BuildRequires: gtk-doc >= 1.15
24 %{?with_icu:BuildRequires: libicu-devel}
25 BuildRequires: libstdc++-devel
26 BuildRequires: pkgconfig >= 1:0.20
27 Requires: freetype >= 2.3.8
28 Requires: glib2 >= 1:2.16
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Internationalized OpenType text layout and rendering library.
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.
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}
43 Requires: freetype-devel >= 2.3.8
44 Requires: glib2-devel >= 1:2.16
45 %{?with_graphite2:Requires: graphite2-devel}
46 Requires: libstdc++-devel
49 Header files for HarfBuzz library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki HarfBuzz.
55 Summary: Static HarfBuzz library
56 Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static HarfBuzz library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka HarfBuzz.
67 Summary: Harfbuzz GObject interface
68 Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz
70 Requires: %{name} = %{version}-%{release}
73 Harfbuzz GObject interface.
75 %description gobject -l pl.UTF-8
76 Interfejs GObject do biblioteki Harfbuzz.
78 %package gobject-devel
79 Summary: Header files for Harfbuzz GObject interface
80 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki 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
86 %description gobject-devel
87 This is the package containing the header files for Harfbuzz GObject
90 %description gobject-devel -l pl.UTF-8
91 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki
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}
100 %description gobject-static
101 Static Harfbuzz GObject library.
103 %description gobject-static -l pl.UTF-8
104 Statyczna biblioteka Harfbuzz GObject.
107 Summary: HarfBuzz text shaping library - ICU integration
108 Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU
110 Requires: %{name} = %{version}-%{release}
113 HarfBuzz text shaping library - ICU integration.
115 %description icu -l pl.UTF-8
116 Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU.
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
126 %description icu-devel
127 Header file for HarfBuzz ICU library.
129 %description icu-devel -l pl.UTF-8
130 Plik nagłówkowy biblioteki HarfBuzz ICU.
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}
138 %description icu-static
139 Static HarfBuzz ICU library.
141 %description icu-static -l pl.UTF-8
142 Biblioteka statyczna HarfBuzz ICU.
145 Summary: HarfBuzz command-line utilities
146 Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń
148 Requires: %{name} = %{version}-%{release}
149 Requires: cairo >= 1.8.0
152 HarfBuzz command-line utilities.
154 %description progs -l pl.UTF-8
155 Narzędzia HarfBuzz uruchamiane z linii poleceń.
158 Summary: HarfBuzz API documentation
159 Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz
161 %if "%{_rpmversion}" >= "5"
166 API documentation for HarfBuzz libraries.
168 %description apidocs -l pl.UTF-8
169 Dokumentacja API bibliotek HarfBuzz.
174 # missing dependencies
175 cat >> src/harfbuzz.pc.in <<EOF
176 Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2}
181 --disable-silent-rules \
182 %{?with_static_libs:--enable-static} \
187 %{?with_graphite2:--with-graphite2} \
188 --with-html-dir=%{_gtkdocdir} \
189 --with-icu%{!?with_icu:=no}
192 %{?with_tests:%{__make} check}
195 rm -rf $RPM_BUILD_ROOT
197 DESTDIR=$RPM_BUILD_ROOT
199 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
202 rm -rf $RPM_BUILD_ROOT
204 %post -p /sbin/ldconfig
205 %postun -p /sbin/ldconfig
207 %post gobject -p /sbin/ldconfig
208 %postun gobject -p /sbin/ldconfig
210 %post icu -p /sbin/ldconfig
211 %postun icu -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
216 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libharfbuzz.so
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
227 %{_includedir}/harfbuzz/hb-deprecated.h
228 %{_includedir}/harfbuzz/hb-face.h
229 %{_includedir}/harfbuzz/hb-font.h
230 %{_includedir}/harfbuzz/hb-ft.h
231 %{_includedir}/harfbuzz/hb-glib.h
232 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
233 %{_includedir}/harfbuzz/hb-ot-font.h
234 %{_includedir}/harfbuzz/hb-ot-layout.h
235 %{_includedir}/harfbuzz/hb-ot-shape.h
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
243 %{_pkgconfigdir}/harfbuzz.pc
245 %if %{with static_libs}
247 %defattr(644,root,root,755)
248 %{_libdir}/libharfbuzz.a
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
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
266 %if %{with static_libs}
267 %files gobject-static
268 %defattr(644,root,root,755)
269 %{_libdir}/libharfbuzz-gobject.a
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
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
284 %if %{with static_libs}
286 %defattr(644,root,root,755)
287 %{_libdir}/libharfbuzz-icu.a
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
298 %defattr(644,root,root,755)
299 %{_gtkdocdir}/harfbuzz