public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ocaml-mtime] rawhide: Test with ocaml-b0
@ 2026-08-07 17:23 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-08-07 17:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ocaml-mtime
Branch : rawhide
Commit : 7470be9f8057d17e7134a01f7bbee28865bd575f
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-08-07T11:23:14-06:00
Stats : +23/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ocaml-mtime/c/7470be9f8057d17e7134a01f7bbee28865bd575f?branch=rawhide
Log:
Test with ocaml-b0
- Remove test dependency on js-of-ocaml
---
diff --git a/ocaml-mtime-js-of-ocaml.patch b/ocaml-mtime-js-of-ocaml.patch
new file mode 100644
index 0000000..28ab532
--- /dev/null
+++ b/ocaml-mtime-js-of-ocaml.patch
@@ -0,0 +1,16 @@
+--- mtime-2.1.0/B0.ml.orig 2024-09-10 07:46:38.000000000 -0600
++++ mtime-2.1.0/B0.ml 2026-08-07 11:17:47.109243611 -0600
+@@ -43,13 +43,6 @@ let min_clock =
+ let requires = [mtime; mtime_clock] in
+ B0_ocaml.test ~/"test/min_clock.ml" ~run:false ~requires ~doc
+
+-let min_clock_jsoo =
+- let doc = "Minimal clock example in JavaScript" in
+- let srcs = Fpath.[`File (v "test/min_clock.ml") ] in
+- let meta = B0_meta.(empty |> tag test) in
+- let requires = [mtime; mtime_clock] in
+- B0_jsoo.html_page "min-clock-jsoo" ~srcs ~requires ~meta ~doc
+-
+ (* Packs *)
+
+ let default =
diff --git a/ocaml-mtime.spec b/ocaml-mtime.spec
index 27f3769..2d9f72d 100644
--- a/ocaml-mtime.spec
+++ b/ocaml-mtime.spec
@@ -10,12 +10,15 @@ License: ISC
URL: https://erratique.ch/software/mtime
VCS: git:https://erratique.ch/repos/mtime.git
Source: %{url}/releases/mtime-%{version}.tbz
+# Remove js_of_ocaml dependency in the tests, since Fedora does not have it
+Patch: %{name}-js-of-ocaml.patch
BuildSystem: topkg
BuildOption(build): --dev-pkg false
BuildOption(build): --tests true
BuildRequires: ocaml >= 4.08.0
+BuildRequires: ocaml-b0-devel
BuildRequires: ocaml-compiler-libs
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamlbuild
@@ -44,11 +47,14 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
-%autosetup -n mtime-%{version}
+%autosetup -n mtime-%{version} -p1
# link with the math library
echo $'\ntrue: cclib(-lm)' >> _tags
+%check
+b0 test
+
%files -f .ofiles
%doc CHANGES.md README.md
%license LICENSE.md
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 17:23 [rpms/ocaml-mtime] rawhide: Test with ocaml-b0 Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox