[packages/icu-le-hb] - new
qboosh
qboosh at pld-linux.org
Sun Nov 29 10:51:25 CET 2015
commit e0d200a72eb64b208683a0fe6844caad37685747
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 29 10:51:54 2015 +0100
- new
icu-le-hb-link.patch | 10 +++++
icu-le-hb.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 123 insertions(+)
---
diff --git a/icu-le-hb.spec b/icu-le-hb.spec
new file mode 100644
index 0000000..6e4d07d
--- /dev/null
+++ b/icu-le-hb.spec
@@ -0,0 +1,113 @@
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+#
+Summary: ICU Layout Engine API on top of HarfBuzz shaping library
+Summary(pl.UTF-8): API ICU Layout Engine oparte na bibliotece tworzenia kształtów HarfBuzz
+Name: icu-le-hb
+Version: 1.0.3
+Release: 1
+License: ICU (MIT-like)
+Group: Libraries
+Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.gz
+# Source0-md5: e9b6ad05e19597bb90d1aa087c149b23
+Patch0: %{name}-link.patch
+URL: http://www.freedesktop.org/wiki/HarfBuzz
+BuildRequires: autoconf >= 2.56
+BuildRequires: automake >= 1:1.9
+BuildRequires: harfbuzz-devel >= 1.0.3
+BuildRequires: libicu-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig
+Requires: harfbuzz >= 1.0.3
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+icu-le-hb is a library implementing the ICU Layout Engine (icu-le) API
+using external HarfBuzz library for implementation. This is useful as
+a compatibility layer to make applications using ICU Layout Engine to
+use HarfBuzz without porting them to use the HarfBuzz API.
+
+%description -l pl.UTF-8
+icu-le-hb to biblioteka implementująca API ICU Layout Engine (icu-le)
+przy użyciu zewnętrznej biblioteki HarfBuzz. Jest przydatna jako
+warstwa zgodności, aby aplikacje wykorzystujące silnik ICU Layout
+Engine mogły używać biblioteki HarfBuzz bez potrzeby portowania do API
+biblioteki HarfBuzz.
+
+%package devel
+Summary: Header files for icu-le-hb library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki icu-le-hb
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: harfbuzz-devel >= 1.0.3
+Requires: libicu-devel
+Requires: libstdc++-devel
+
+%description devel
+Header files for icu-le-hb library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki icu-le-hb.
+
+%package static
+Summary: Static icu-le-hb library
+Summary(pl.UTF-8): Statyczna biblioteka icu-le-hb
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static icu-le-hb library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka icu-le-hb.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ %{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libicu-le-hb.la
+
+# conflict with libicu-devel (or: split libicu and package it in subpackage)
+%{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/icu-le.pc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING NEWS README
+%attr(755,root,root) %{_libdir}/libicu-le-hb.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libicu-le-hb.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libicu-le-hb.so
+%{_includedir}/icu-le-hb
+%{_pkgconfigdir}/icu-le-hb.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libicu-le-hb.a
+%endif
diff --git a/icu-le-hb-link.patch b/icu-le-hb-link.patch
new file mode 100644
index 0000000..f5deffd
--- /dev/null
+++ b/icu-le-hb-link.patch
@@ -0,0 +1,10 @@
+--- icu-le-hb-1.0.3/src/Makefile.am.orig 2015-11-23 22:32:52.000000000 +0100
++++ icu-le-hb-1.0.3/src/Makefile.am 2015-11-29 10:26:59.099082085 +0100
+@@ -24,6 +24,7 @@
+ $(NULL)
+ libicu_le_hb_la_LIBADD = \
+ $(HARFBUZZ_LIBS) \
++ $(ICU_LIBS) \
+ $(NULL)
+
+ libicu_le_hb_la_SOURCES = \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/icu-le-hb.git/commitdiff/e0d200a72eb64b208683a0fe6844caad37685747
More information about the pld-cvs-commit
mailing list