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
16 URL: http://www.freedesktop.org/wiki/HarfBuzz
17 BuildRequires: autoconf >= 2.56
18 BuildRequires: automake >= 1:1.9
19 BuildRequires: harfbuzz-devel >= 1.0.3
20 BuildRequires: libicu-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 BuildRequires: pkgconfig
24 Requires: harfbuzz >= 1.0.3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 icu-le-hb is a library implementing the ICU Layout Engine (icu-le) API
29 using external HarfBuzz library for implementation. This is useful as
30 a compatibility layer to make applications using ICU Layout Engine to
31 use HarfBuzz without porting them to use the HarfBuzz API.
33 %description -l pl.UTF-8
34 icu-le-hb to biblioteka implementująca API ICU Layout Engine (icu-le)
35 przy użyciu zewnętrznej biblioteki HarfBuzz. Jest przydatna jako
36 warstwa zgodności, aby aplikacje wykorzystujące silnik ICU Layout
37 Engine mogły używać biblioteki HarfBuzz bez potrzeby portowania do API
41 Summary: Header files for icu-le-hb library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki icu-le-hb
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: harfbuzz-devel >= 1.0.3
46 Requires: libicu-devel
47 Requires: libstdc++-devel
50 Header files for icu-le-hb library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki icu-le-hb.
56 Summary: Static icu-le-hb library
57 Summary(pl.UTF-8): Statyczna biblioteka icu-le-hb
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static icu-le-hb library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka icu-le-hb.
78 %{!?with_static_libs:--disable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libicu-le-hb.la
90 # conflict with libicu-devel (or: split libicu and package it in subpackage)
91 %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/icu-le.pc
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS COPYING NEWS README
102 %attr(755,root,root) %{_libdir}/libicu-le-hb.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libicu-le-hb.so.0
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libicu-le-hb.so
108 %{_includedir}/icu-le-hb
109 %{_pkgconfigdir}/icu-le-hb.pc
111 %if %{with static_libs}
113 %defattr(644,root,root,755)
114 %{_libdir}/libicu-le-hb.a