## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # OCaml packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-uuseg Version: 15.1.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.14.0 BuildRequires: ocaml-cmdliner-devel >= 1.1.0 BuildRequires: ocaml-compiler-libs BuildRequires: ocaml-findlib BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-rpm-macros BuildRequires: ocaml-topkg-devel >= 1.0.3 BuildRequires: ocaml-uucp-devel >= 15.1.0 BuildRequires: ocaml-uutf-devel >= 1.0.0 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 %ocaml_install %check ocaml pkg/pkg.ml test %files -f .ofiles %license LICENSE.md %doc CHANGES.md README.md %files devel -f .ofiles-devel %changelog ## START: Generated by rpmautospec * Thu Jan 25 2024 Fedora Release Engineering - 15.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 15.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Richard W.M. Jones - 15.1.0-4 - OCaml 5.1.1 + s390x code gen fix for Fedora 40 * Tue Dec 12 2023 Richard W.M. Jones - 15.1.0-3 - OCaml 5.1.1 rebuild for Fedora 40 * Thu Oct 05 2023 Richard W.M. Jones - 15.1.0-2 - OCaml 5.1 rebuild for Fedora 40 * Thu Oct 05 2023 Jerry James - 15.1.0-1 - Version 15.1.0 * Thu Jul 20 2023 Fedora Release Engineering - 15.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Richard W.M. Jones - 15.0.0-3 - OCaml 5.0 rebuild for Fedora 39 * Tue Jul 11 2023 Richard W.M. Jones - 15.0.0-2 - ExcludeArch i686 (https://lists.fedoraproject.org/archives/list/devel@lis ts.fedoraproject.org/message/SPML7CUBSZNI36NLXGVHEG7DNHU3EWOJ/) * Fri Jun 30 2023 Jerry James - 15.0.0-1 - Initial import ## END: Generated by rpmautospec