[packages/utf8proc] - new: julialang fork of libutf8proc, plus external .pc file
qboosh
qboosh at pld-linux.org
Sat Jul 14 16:14:50 CEST 2018
commit 3ba71b57df3025243c3fc4f30a034418486bc61a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 14 16:16:32 2018 +0200
- new: julialang fork of libutf8proc, plus external .pc file
libutf8proc.pc.in | 10 ++++++
utf8proc.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
---
diff --git a/utf8proc.spec b/utf8proc.spec
new file mode 100644
index 0000000..cb344fe
--- /dev/null
+++ b/utf8proc.spec
@@ -0,0 +1,99 @@
+# NOTE: PLD currently uses netsurf fork (libutf8proc.spec)
+# Differences:
+# - utf8proc_property_t incompatibilities (both should be OK for netsurf)
+# - few more functions in julialang fork
+# - Unicode 9 in julialang vs Unicode 8 in netsurf
+Summary: utf8proc library for NetSurf
+Summary(pl.UTF-8): Biblioteka utf8proc dla projektu NetSurf
+Name: utf8proc
+Version: 2.1.1
+Release: 0.1
+License: MIT
+Group: Libraries
+#Source0Download: https://github.com/JuliaStrings/utf8proc/releases
+Source0: https://github.com/JuliaStrings/utf8proc/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 0713679a26f18d1f217c15b245a85e92
+Source1: libutf8proc.pc.in
+URL: https://github.com/JuliaStrings/utf8proc
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+utf8proc is a small, clean C library that provides Unicode
+normalization, case-folding, and other operations for data in the UTF-8
+encoding.
+
+%description -l pl.UTF-8
+utf8proc to mała, napisana w czystym C biblioteka zapewniająca
+normalizację Unicode, zamianę wielkości liter i inne operacje na
+danych w kodowaniu UTF-8.
+
+%package devel
+Summary: Header file for utf8proc library
+Summary(pl.UTF-8): Plik nagłówkowy biblioteki utf8proc
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header file for utf8proc library.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy biblioteki utf8proc.
+
+%package static
+Summary: utf8proc static library
+Summary(pl.UTF-8): Statyczna biblioteka utf8proc
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+utf8proc static library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka utf8proc.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ AR="%{__ar}" \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ includedir=%{_includedir} \
+ libdir=%{_libdir}
+
+# julialang version doesn't provide .pc file
+test ! -f $RPM_BUILD_ROOT%{_pkgconfigdir}/libutf8proc.pc
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+%{__sed} -e 's, at VERSION@,%{version},' \
+ -e 's, at prefix@,%{_prefix},' \
+ -e 's, at libdir@,%{_libdir},' %{SOURCE1} >>$RPM_BUILD_ROOT%{_pkgconfigdir}/libutf8proc.pc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md NEWS.md README.md
+%attr(755,root,root) %{_libdir}/libutf8proc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libutf8proc.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libutf8proc.so
+%{_includedir}/utf8proc.h
+%{_pkgconfigdir}/libutf8proc.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libutf8proc.a
diff --git a/libutf8proc.pc.in b/libutf8proc.pc.in
new file mode 100644
index 0000000..4678e4e
--- /dev/null
+++ b/libutf8proc.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=${prefix}/include
+
+Name: libutf8proc
+Description: UTF8 processing
+Version: @VERSION@
+Libs: -L${libdir} -lutf8proc
+Cflags: -I${includedir} -DUTF8PROC_EXPORTS
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/utf8proc.git/commitdiff/3ba71b57df3025243c3fc4f30a034418486bc61a
More information about the pld-cvs-commit
mailing list