3 %bcond_without static_libs # don't build static libraries
5 Summary: ICU Layout Engine API on top of HarfBuzz shaping library
6 Summary(pl.UTF-8): API ICU Layout Engine oparte na bibliotece tworzenia kształtów HarfBuzz
10 License: ICU (MIT-like)
12 Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.gz
13 # Source0-md5: e9b6ad05e19597bb90d1aa087c149b23
14 Patch0: %{name}-link.patch
15 URL: http://www.freedesktop.org/wiki/HarfBuzz
16 BuildRequires: autoconf >= 2.56
17 BuildRequires: automake >= 1:1.9
18 BuildRequires: harfbuzz-devel >= 1.0.3
19 BuildRequires: libicu-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool >= 2:1.5
22 BuildRequires: pkgconfig
23 Requires: harfbuzz >= 1.0.3
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 icu-le-hb is a library implementing the ICU Layout Engine (icu-le) API
28 using external HarfBuzz library for implementation. This is useful as
29 a compatibility layer to make applications using ICU Layout Engine to
30 use HarfBuzz without porting them to use the HarfBuzz API.
32 %description -l pl.UTF-8
33 icu-le-hb to biblioteka implementująca API ICU Layout Engine (icu-le)
34 przy użyciu zewnętrznej biblioteki HarfBuzz. Jest przydatna jako
35 warstwa zgodności, aby aplikacje wykorzystujące silnik ICU Layout
36 Engine mogły używać biblioteki HarfBuzz bez potrzeby portowania do API
40 Summary: Header files for icu-le-hb library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki icu-le-hb
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: harfbuzz-devel >= 1.0.3
45 Requires: libicu-devel
46 Requires: libstdc++-devel
49 Header files for icu-le-hb library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki icu-le-hb.
55 Summary: Static icu-le-hb library
56 Summary(pl.UTF-8): Statyczna biblioteka icu-le-hb
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static icu-le-hb library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka icu-le-hb.
76 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
85 # obsoleted by pkg-config
86 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libicu-le-hb.la
88 # conflict with libicu-devel (or: split libicu and package it in subpackage)
89 %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/icu-le.pc
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %doc AUTHORS COPYING NEWS README
100 %attr(755,root,root) %{_libdir}/libicu-le-hb.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libicu-le-hb.so.0
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libicu-le-hb.so
106 %{_includedir}/icu-le-hb
107 %{_pkgconfigdir}/icu-le-hb.pc
109 %if %{with static_libs}
111 %defattr(644,root,root,755)
112 %{_libdir}/libicu-le-hb.a