Notification time stamped 2023-06-30 21:13:57 UTC
From 01cf20fe022a09db17240b4026f75b6305cebf35 Mon Sep 17 00:00:00 2001 From: Jerry James loganjerry@gmail.com Date: Jun 30 2023 21:13:38 +0000 Subject: Initial import
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f2f860 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/uuseg-*.tbz diff --git a/ocaml-uuseg.spec b/ocaml-uuseg.spec new file mode 100644 index 0000000..0ef52d9 --- /dev/null +++ b/ocaml-uuseg.spec @@ -0,0 +1,85 @@ +%ifnarch %{ocaml_native_compiler} +%global debug_package %{nil} +%endif + +Name: ocaml-uuseg +Version: 15.0.0 +Release: %autorelease +Summary: Unicode text segmentation for OCaml + +License: ISC +URL: https://erratique.ch/software/uuseg +Source0: %{url}/releases/uuseg-%{version}.tbz + +BuildRequires: ocaml >= 4.03.0 +BuildRequires: ocaml-cmdliner-devel >= 1.1.0 +BuildRequires: ocaml-findlib +BuildRequires: ocaml-ocamlbuild +BuildRequires: ocaml-topkg-devel >= 1.0.3 +BuildRequires: ocaml-uucp-devel >= 15.0.0 +BuildRequires: ocaml-uutf-devel >= 1.0.0 +BuildRequires: python3 +BuildRequires: unicode-ucd + +%description +Uuseg is an OCaml library for segmenting Unicode text. It implements +the locale-independent Unicode text segmentation algorithms +(http://www.unicode.org/reports/tr29/) to detect grapheme cluster, word +and sentence boundaries and the Unicode line breaking algorithm +(http://www.unicode.org/reports/tr14/) to detect line break +opportunities. + +The library is independent from any IO mechanism or Unicode text data +structure and it can process text without a complete in-memory +representation. + +Uuseg depends on Uucp and optionally on Uutf for support for OCaml UTF-X +encoded strings. It is distributed under the ISC license. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: ocaml-uucp-devel%{?_isa} +Requires: ocaml-uutf-devel%{?_isa} + +%description devel +The %{name}-devel package contains libraries and signature +files for developing applications that use %{name}. + +%prep +%autosetup -n uuseg-%{version} + +# Files needed for the tests +cp -p %{_datadir}/unicode/ucd/auxiliary/*BreakTest.txt test + +%build +# Build the library and the tests +ocaml pkg/pkg.ml build --dev-pkg false --with-uutf true --with-cmdliner true \ + --tests true + +%install +# Install the library +mkdir -p %{buildroot}%{ocamldir}/uuseg/string +cp -p _build/{opam,pkg/META} %{buildroot}%{ocamldir}/uuseg +%ifarch %{ocaml_native_compiler} +cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \ + %{buildroot}%{ocamldir}/uuseg +%else +cp -a _build/src/*.{cma,cmi,cmt,cmti,mli} %{buildroot}%{ocamldir}/uuseg +%endif +mv %{buildroot}%{ocamldir}/uuseg/uuseg_string.* \ + %{buildroot}%{ocamldir}/uuseg/string + +%ocaml_files + +%check +ocaml pkg/pkg.ml test + +%files -f .ofiles +%license LICENSE.md +%doc CHANGES.md README.md + +%files devel -f .ofiles-devel + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..f5b9f3d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (uuseg-15.0.0.tbz) = 37ea83b582dd779a026cfae11f08f5d67ef79fce65a2cf03f2a9aabc7eb5de60c8e812524fa7531e4ff6e22a3b18228e3438a0143ce43be95f23237cc283576f
https://src.fedoraproject.org/rpms/ocaml-uuseg/c/01cf20fe022a09db17240b4026f...