[packages/libraqm] - new

qboosh qboosh at pld-linux.org
Wed May 10 21:56:11 CEST 2017


commit 6a1b752e51efae10ffaec7b42d30d1716263d7eb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed May 10 21:56:41 2017 +0200

    - new

 libraqm-format.patch |  38 +++++++++++++
 libraqm.spec         | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 189 insertions(+)
---
diff --git a/libraqm.spec b/libraqm.spec
new file mode 100644
index 0000000..e421040
--- /dev/null
+++ b/libraqm.spec
@@ -0,0 +1,151 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+%bcond_without	static_libs	# static library
+%bcond_without	tests		# unit tests
+#
+Summary:	Library for complex text layout
+Summary(pl.UTF-8):	Biblioteka do skomplikowanego układu tekstu
+Name:		libraqm
+Version:	0.2.0
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/HOST-Oman/libraqm/releases
+Source0:	https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz
+# Source0-md5:	0a693640ac3aa5c25b533de7dce2cce3
+Patch0:		%{name}-format.patch
+URL:		https://github.com/HOST-Oman/libraqm
+BuildRequires:	autoconf >= 2.50
+BuildRequires:	automake >= 1:1.11
+# pkgconfig(freetype2) >= 12.0.6
+BuildRequires:	freetype-devel >= 1:2.4.2
+BuildRequires:	fribidi-devel
+%{?with_tests:BuildRequires:	glib2-devel >= 2.0}
+%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
+BuildRequires:	glibc-localedb-all
+%endif
+BuildRequires:	gtk-doc >= 1.14
+BuildRequires:	harfbuzz-devel
+BuildRequires:	libtool >= 2:2
+BuildRequires:	pkgconfig >= 1:0.20
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Raqm is a small library that encapsulates the logic for complex text
+layout and provide a convenient API.
+
+It currently provides bidirectional text support (using FriBiDi),
+shaping (using HarfBuzz), and proper script itemization. As a result,
+Raqm can support most writing systems covered by Unicode.
+
+%description -l pl.UTF-8
+Raqm to mała biblioteka opakowująca logikę złożonego układu tekstu i
+udostępniająca wygodne API.
+
+Obecnie zapewnia obsługę tekstu dwukierunkowego (przy użyciu FriBiDi),
+formowanie (przy użyciu HarfBuzz) i właściwe wyszczególnienie pisma.
+W efekcie Raqm potrafi obsłużyć większość systemów pisma pokrytych
+przez Unikod.
+
+%package devel
+Summary:	Header files for Raqm library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Raqm
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	freetype-devel >= 1:2.4.2
+Requires:	fribidi-devel
+Requires:	harfbuzz-devel
+
+%description devel
+Header files for Raqm library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Raqm.
+
+%package static
+Summary:	Static Raqm library
+Summary(pl.UTF-8):	Statyczna biblioteka Raqm
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static Raqm library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Raqm.
+
+%package apidocs
+Summary:	API documentation for Raqm library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki Raqm
+Group:		Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description apidocs
+API documentation for Raqm library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Raqm.
+
+%prep
+%setup -q -n raqm-%{version}
+%patch0 -p1
+
+%build
+# rebuild ac/am for as-needed to work
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--disable-silent-rules \
+	%{!?with_static_libs:--disable-static} \
+	--with-html-dir=%{_gtkdocdir}
+%{__make}
+
+%if %{with tests}
+LC_ALL=C.UTF-8 \
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libraqm.la
+
+%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}/libraqm.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libraqm.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libraqm.so
+%{_includedir}/raqm.h
+%{_pkgconfigdir}/raqm.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libraqm.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/raqm
+%endif
diff --git a/libraqm-format.patch b/libraqm-format.patch
new file mode 100644
index 0000000..ec8a71d
--- /dev/null
+++ b/libraqm-format.patch
@@ -0,0 +1,38 @@
+--- raqm-0.2.0/src/raqm.c.orig	2016-08-25 14:12:55.000000000 +0200
++++ raqm-0.2.0/src/raqm.c	2017-05-10 21:52:39.004931212 +0200
+@@ -1541,7 +1541,7 @@
+ 
+   if (rq->flags & RAQM_FLAG_UTF8)
+     *index = _raqm_u32_to_u8_index (rq, *index);
+-  RAQM_TEST ("The position is %d at index %ld\n",*x ,*index);
++  RAQM_TEST ("The position is %d at index %zd\n",*x ,*index);
+   return true;
+ }
+ 
+@@ -1625,7 +1625,7 @@
+         }
+         if (_raqm_allowed_grapheme_boundary (rq->text[*index],rq->text[*index + 1]))
+         {
+-          RAQM_TEST ("The start-index is %ld  at position %d \n", *index, x);
++          RAQM_TEST ("The start-index is %zd  at position %d \n", *index, x);
+             return true;
+         }
+ 
+@@ -1639,7 +1639,7 @@
+           }
+           *index += 1;
+         }
+-        RAQM_TEST ("The start-index is %ld  at position %d \n", *index, x);
++        RAQM_TEST ("The start-index is %zd  at position %d \n", *index, x);
+         return true;
+       }
+       else
+@@ -1653,7 +1653,7 @@
+   else
+     *index = rq->text_len;
+ 
+-  RAQM_TEST ("The start-index is %ld  at position %d \n", *index, x);
++  RAQM_TEST ("The start-index is %zd  at position %d \n", *index, x);
+ 
+   return true;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libraqm.git/commitdiff/6a1b752e51efae10ffaec7b42d30d1716263d7eb



More information about the pld-cvs-commit mailing list