]> git.pld-linux.org Git - packages/utf8proc.git/commitdiff
- new: julialang fork of libutf8proc, plus external .pc file
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Jul 2018 14:16:32 +0000 (16:16 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Jul 2018 14:16:32 +0000 (16:16 +0200)
libutf8proc.pc.in [new file with mode: 0644]
utf8proc.spec [new file with mode: 0644]

diff --git a/libutf8proc.pc.in b/libutf8proc.pc.in
new file mode 100644 (file)
index 0000000..4678e4e
--- /dev/null
@@ -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
diff --git a/utf8proc.spec b/utf8proc.spec
new file mode 100644 (file)
index 0000000..cb344fe
--- /dev/null
@@ -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,@VERSION@,%{version},' \
+       -e 's,@prefix@,%{_prefix},' \
+       -e 's,@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
This page took 0.141797 seconds and 4 git commands to generate.