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: accbeb679f39d839038b95a87e40870e
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.32.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 Harfbuzz
70 Requires: %{name} = %{version}-%{release}
73 Harfbuzz GObject interface.
75 %description gobject -l pl.UTF-8
76 Interfejs GObject do Harfbuzz.
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
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 Harfbuzz.
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}
99 %description gobject-static
100 Static Harfbuzz GObject library.
102 %description gobject-static -l pl.UTF-8
103 Statyczna biblioteka Harfbuzz GObject.
106 Summary: HarfBuzz text shaping library - ICU integration
107 Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU
109 Requires: %{name} = %{version}-%{release}
112 HarfBuzz text shaping library - ICU integration.
114 %description icu -l pl.UTF-8
115 Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU.
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
125 %description icu-devel
126 Header file for HarfBuzz ICU library.
128 %description icu-devel -l pl.UTF-8
129 Plik nagłówkowy biblioteki HarfBuzz ICU.
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}
137 %description icu-static
138 Static HarfBuzz ICU library.
140 %description icu-static -l pl.UTF-8
141 Biblioteka statyczna HarfBuzz ICU.
144 Summary: HarfBuzz programs
146 Requires: %{name} = %{version}-%{release}
147 Requires: cairo >= 1.8.0
153 Summary: HarfBuzz API documentation
154 Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz
156 %if "%{_rpmversion}" >= "5"
161 API documentation for HarfBuzz libraries.
163 %description apidocs -l pl.UTF-8
164 Dokumentacja API bibliotek HarfBuzz.
169 # missing dependencies
170 cat >> src/harfbuzz.pc.in <<EOF
171 Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2}
176 --disable-silent-rules \
177 %{?with_static_libs:--enable-static} \
182 %{?with_graphite2:--with-graphite2} \
183 --with-html-dir=%{_gtkdocdir} \
184 --with-icu%{!?with_icu:=no}
187 %{?with_tests:%{__make} check}
190 rm -rf $RPM_BUILD_ROOT
192 DESTDIR=$RPM_BUILD_ROOT
194 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
197 rm -rf $RPM_BUILD_ROOT
199 %post -p /sbin/ldconfig
200 %postun -p /sbin/ldconfig
202 %post gobject -p /sbin/ldconfig
203 %postun gobject -p /sbin/ldconfig
205 %post icu -p /sbin/ldconfig
206 %postun icu -p /sbin/ldconfig
209 %defattr(644,root,root,755)
210 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
211 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
212 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0
218 %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
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
229 %files gobject-static
230 %defattr(644,root,root,755)
231 %{_libdir}/libharfbuzz-gobject.a
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/libharfbuzz.so
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
241 %{_includedir}/harfbuzz/hb-deprecated.h
242 %{_includedir}/harfbuzz/hb-face.h
243 %{_includedir}/harfbuzz/hb-font.h
244 %{_includedir}/harfbuzz/hb-ft.h
245 %{_includedir}/harfbuzz/hb-glib.h
246 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
247 %{_includedir}/harfbuzz/hb-ot-font.h
248 %{_includedir}/harfbuzz/hb-ot-layout.h
249 %{_includedir}/harfbuzz/hb-ot-shape.h
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
257 %{_pkgconfigdir}/harfbuzz.pc
259 %if %{with static_libs}
261 %defattr(644,root,root,755)
262 %{_libdir}/libharfbuzz.a
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
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
277 %if %{with static_libs}
279 %defattr(644,root,root,755)
280 %{_libdir}/libharfbuzz-icu.a
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
291 %defattr(644,root,root,755)
292 %{_gtkdocdir}/harfbuzz