Notification time stamped 2023-06-30 21:01:43 UTC
From 46592fa5597fa260ae05ed4db72b8c5ea1fb8246 Mon Sep 17 00:00:00 2001 From: Jerry James loganjerry@gmail.com Date: Jun 30 2023 21:01:26 +0000 Subject: Initial import
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b0b69b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/uucd-*.tbz diff --git a/README.md b/README.md index d6f1361..781bfb1 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # ocaml-uucd
-Uucd is an OCaml module to decode the data of the -[Unicode character database](http://www.unicode.org/reports/tr44/) from its -[XML representation](http://www.unicode.org/reports/tr42/). It provides -high-level (but not necessarily efficient) access to the data so that +[Uucd](https://erratique.ch/software/uucd) is an OCaml module to decode the +data of the [Unicode character database](http://www.unicode.org/reports/tr44/) +from its [XML representation](http://www.unicode.org/reports/tr42/). It +provides high-level (but not necessarily efficient) access to the data so that efficient representations can be extracted.
Uucd is made of a single module, depends on Xmlm and is distributed under the -ISC license. \ No newline at end of file +ISC license. diff --git a/ocaml-uucd.spec b/ocaml-uucd.spec new file mode 100644 index 0000000..0e89952 --- /dev/null +++ b/ocaml-uucd.spec @@ -0,0 +1,69 @@ +%ifnarch %{ocaml_native_compiler} +%global debug_package %{nil} +%endif + +Name: ocaml-uucd +Version: 15.0.0 +Release: %autorelease +Summary: Unicode character database decoder for OCaml + +License: ISC +URL: https://erratique.ch/software/uucd +Source0: %{url}/releases/uucd-%{version}.tbz + +BuildRequires: ocaml >= 4.01.0 +BuildRequires: ocaml-findlib +BuildRequires: ocaml-ocamlbuild +BuildRequires: ocaml-topkg-devel >= 1.0.3 +BuildRequires: ocaml-xmlm-devel +BuildRequires: python3 + +%description +Uucd is an OCaml module to decode the data of the Unicode character +database (http://www.unicode.org/reports/tr44/) from its XML +representation (http://www.unicode.org/reports/tr42/). It provides +high-level (but not necessarily efficient) access to the data so that +efficient representations can be extracted. + +Uucd is made of a single module, depends on Xmlm and is distributed +under the ISC license. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: ocaml-xmlm-devel%{?_isa} + +%description devel +The %{name}-devel package contains libraries and signature +files for developing applications that use %{name}. + +%prep +%autosetup -n uucd-%{version} + +%build +# Build the library and the tests +ocaml pkg/pkg.ml build --dev-pkg false --tests true + +%install +# Install the library +mkdir -p %{buildroot}%{ocamldir}/uucd +cp -p _build/{opam,pkg/META} %{buildroot}%{ocamldir}/uucd +%ifarch %{ocaml_native_compiler} +cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \ + %{buildroot}%{ocamldir}/uucd +%else +cp -a _build/src/*.{cma,cmi,cmt,cmti,mli} %{buildroot}%{ocamldir}/uucd +%endif +%ocaml_files + +%check +ocaml pkg/pkg.ml test + +%files -f .ofiles +%license LICENSE.md +%doc README.md CHANGES.md + +%files devel -f .ofiles-devel + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..fab8deb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (uucd-15.0.0.tbz) = 022507d380dea2ce5a1a3b2b8f1d18be10454184fd11ddbd1ecbe09d303284b6e1cb59144748ccef4292bb82a469341d81086e1b3024fb9b08ad14b43e12abce
https://src.fedoraproject.org/rpms/ocaml-uucd/c/46592fa5597fa260ae05ed4db72b...
scm-commits@lists.fedoraproject.org