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: cairo >= 1.8.0
28 Requires: freetype >= 2.3.8
29 Requires: glib2 >= 1:2.16
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Internationalized OpenType text layout and rendering library.
35 %description -l pl.UTF-8
36 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
37 obsługująca wiele języków.
40 Summary: Header files for HarfBuzz library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: freetype-devel >= 2.3.8
45 Requires: glib2-devel >= 1:2.16
46 %{?with_graphite2:Requires: graphite2-devel}
47 Requires: libstdc++-devel
50 Header files for HarfBuzz library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki HarfBuzz.
56 Summary: Static HarfBuzz library
57 Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static HarfBuzz library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka HarfBuzz.
68 Summary: Harfbuzz GObject interface
69 Summary(pl.UTF-8): Interfejs GObject do Harfbuzz
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 API documentation
145 Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz
147 %if "%{_rpmversion}" >= "5"
152 API documentation for HarfBuzz libraries.
154 %description apidocs -l pl.UTF-8
155 Dokumentacja API bibliotek HarfBuzz.
160 # missing dependencies
161 cat >> src/harfbuzz.pc.in <<EOF
162 Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2}
167 --disable-silent-rules \
168 %{?with_static_libs:--enable-static} \
173 %{?with_graphite2:--with-graphite2} \
174 --with-html-dir=%{_gtkdocdir} \
175 --with-icu%{!?with_icu:=no}
178 %{?with_tests:%{__make} check}
181 rm -rf $RPM_BUILD_ROOT
183 DESTDIR=$RPM_BUILD_ROOT
185 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
188 rm -rf $RPM_BUILD_ROOT
190 %post -p /sbin/ldconfig
191 %postun -p /sbin/ldconfig
193 %post gobject -p /sbin/ldconfig
194 %postun gobject -p /sbin/ldconfig
196 %post icu -p /sbin/ldconfig
197 %postun icu -p /sbin/ldconfig
200 %defattr(644,root,root,755)
201 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
202 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
203 %attr(755,root,root) %{_bindir}/hb-shape
204 %attr(755,root,root) %{_bindir}/hb-view
205 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
206 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.*
211 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0
212 %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so
217 %{_includedir}/harfbuzz/hb-gobject.h
218 %{_includedir}/harfbuzz/hb-gobject-enums.h
219 %{_includedir}/harfbuzz/hb-gobject-structs.h
220 %{_pkgconfigdir}/harfbuzz-gobject.pc
221 %{_datadir}/gir-1.0/HarfBuzz-0.0.gir
223 %files gobject-static
224 %defattr(644,root,root,755)
225 %{_libdir}/libharfbuzz-gobject.a
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-shape.h
244 %{_includedir}/harfbuzz/hb-ot-tag.h
245 %{_includedir}/harfbuzz/hb-ot.h
246 %{_includedir}/harfbuzz/hb-set.h
247 %{_includedir}/harfbuzz/hb-shape-plan.h
248 %{_includedir}/harfbuzz/hb-shape.h
249 %{_includedir}/harfbuzz/hb-unicode.h
250 %{_includedir}/harfbuzz/hb-version.h
251 %{_pkgconfigdir}/harfbuzz.pc
253 %if %{with static_libs}
255 %defattr(644,root,root,755)
256 %{_libdir}/libharfbuzz.a
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.*
263 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so
268 %{_includedir}/harfbuzz/hb-icu.h
269 %{_pkgconfigdir}/harfbuzz-icu.pc
271 %if %{with static_libs}
273 %defattr(644,root,root,755)
274 %{_libdir}/libharfbuzz-icu.a
279 %defattr(644,root,root,755)
280 %{_gtkdocdir}/harfbuzz