Compare commits

...
Sign in to create a new pull request.

17 commits

Author SHA1 Message Date
Jerry James
ed6c50508f Fix a changelog entry 2026-01-13 16:24:10 -07:00
Richard W.M. Jones
a347812ca3 OCaml 5.4.0 rebuild 2025-10-14 09:06:13 +01:00
Fedora Release Engineering
09b1b038dd Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:10:48 +00:00
Jerry James
1b68af0abb Rebuild to fix OCaml dependencies 2025-07-12 13:11:17 -06:00
Fedora Release Engineering
3db60a3d60 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:49:28 +00:00
Jerry James
26e1fe9f86 OCaml 5.3.0 rebuild for Fedora 42
- Version 0.6.6
- All patches have been upstreamed
2025-01-09 20:43:03 -07:00
Fedora Release Engineering
463344a932 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:06:48 +00:00
Jerry James
5f93dd1c6d Fix the VCS field 2024-07-17 13:58:13 -06:00
Richard W.M. Jones
773c929684 OCaml 5.2.0 ppc64le fix 2024-06-19 16:29:22 +01:00
Richard W.M. Jones
4d2c5014c4 Add RHEL gating test 2024-06-19 09:21:14 +01:00
Richard W.M. Jones
267e2f68af OCaml 5.2.0 for Fedora 41 2024-05-29 22:10:50 +01:00
Jerry James
0b776a7ac6 Add VCS field 2024-05-23 11:55:14 -06:00
Fedora Release Engineering
aead5407c2 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 09:59:07 +00:00
Fedora Release Engineering
364d7d1d30 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:16:06 +00:00
Richard W.M. Jones
2ed22a0f19 OCaml 5.1.1 + s390x code gen fix for Fedora 40 2023-12-18 15:05:57 +00:00
Richard W.M. Jones
d8e48ef75a OCaml 5.1.1 rebuild for Fedora 40 2023-12-12 14:44:35 +00:00
Richard W.M. Jones
b683ec35b2 OCaml 5.1 rebuild for Fedora 40 2023-10-05 16:04:49 +01:00
8 changed files with 79 additions and 58 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ ocaml-fileutils-0.4.0.tar.gz
/ocaml-fileutils-0.5.1.tar.gz
/ocaml-fileutils-0.5.2.tar.gz
/fileutils-0.6.4.tbz
/fileutils-0.6.6.tbz

6
gating.yaml Executable file
View file

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View file

@ -1,18 +0,0 @@
--- fileutils-0.6.4/src/lib/fileutils/FileUtilCMP.ml.orig 2022-10-28 14:22:35.000000000 -0600
+++ fileutils-0.6.4/src/lib/fileutils/FileUtilCMP.ml 2023-06-22 15:04:21.317130686 -0600
@@ -48,11 +48,14 @@ let cmp ?(skip1 = 0) fln1 ?(skip2 = 0) f
let rec loop count s1 s2 =
match s1, s2 with
| Seq.Cons (v1, s1), Seq.Cons (v2, s2) when v1 = v2 -> loop (count + 1) (s1 ()) (s2 ())
+ | Seq.Nil, Seq.Nil -> (-1)
| _ -> count
in
let count = loop 0 (stream1 ()) (stream2 ()) in
clean_fd ();
- Some count
+ match count with
+ | (-1) -> None
+ | x -> Some x
end else
Some (-1)

View file

@ -1,27 +0,0 @@
--- fileutils-0.6.4/fileutils.opam.orig 2022-10-28 14:22:35.000000000 -0600
+++ fileutils-0.6.4/fileutils.opam 2023-06-22 13:01:26.779533940 -0600
@@ -16,8 +16,6 @@ build: [
depends: [
"ocaml" {>= "4.03"}
"base-unix"
- "stdlib-shims"
- "seq"
"dune" {>= "1.11.0"}
"ounit2" {with-test & >= "2.0.0"}
]
--- fileutils-0.6.4/src/lib/fileutils/dune.orig 2022-10-28 14:22:35.000000000 -0600
+++ fileutils-0.6.4/src/lib/fileutils/dune 2023-06-22 13:01:47.403222843 -0600
@@ -30,4 +30,4 @@
fileUtilWHICH
unixPath
win32Path)
- (libraries unix seq stdlib-shims))
+ (libraries unix))
--- fileutils-0.6.4/test/dune.orig 2022-10-28 14:22:35.000000000 -0600
+++ fileutils-0.6.4/test/dune 2023-06-22 13:02:04.739961336 -0600
@@ -6,4 +6,4 @@
(test
(name test)
(modules test)
- (libraries fileutils fileutils_str ounit2 stdlib-shims))
+ (libraries fileutils fileutils_str ounit2))

View file

@ -5,24 +5,21 @@ ExcludeArch: %{ix86}
%global debug_package %{nil}
%endif
%global giturl https://github.com/gildor478/ocaml-fileutils
Name: ocaml-fileutils
Version: 0.6.4
Release: 3%{?dist}
Version: 0.6.6
Release: 5%{?dist}
Summary: OCaml library for common file and filename operations
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
URL: https://gildor478.github.io/ocaml-fileutils/
Source0: https://github.com/gildor478/ocaml-fileutils/releases/download/v%{version}/fileutils-%{version}.tbz
# Fedora does not need the stdlib-shims or seq forward compatibility packages
Patch0: ocaml-fileutils-0.6.4-forward-compat.patch
# Given two distinct files with identical contents, the cmp function evaluates
# to "Some x", where x is the size of each file, instead of None. This breaks
# the ocaml-gettext tests, which expect None in that case.
Patch1: ocaml-fileutils-0.6.4-cmp.patch
VCS: git:%{giturl}.git
Source0: %{giturl}/releases/download/v%{version}/fileutils-%{version}.tbz
BuildRequires: ocaml >= 4.03.0
BuildRequires: ocaml-dune >= 1.11.0
%if 0%{?fedora} || 0%{?rhel} <= 6
BuildRequires: ocaml >= 4.14
BuildRequires: ocaml-dune >= 2.9
%if 0%{?fedora}
BuildRequires: ocaml-ounit-devel >= 2.0.0
%endif
@ -77,6 +74,47 @@ developing applications that use %{name}.
%changelog
* Tue Oct 14 2025 Richard W.M. Jones <rjones@redhat.com> - 0.6.6-5
- OCaml 5.4.0 rebuild
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jul 12 2025 Jerry James <loganjerry@gmail.com> - 0.6.6-3
- Rebuild to fix OCaml dependencies
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jan 9 2025 Jerry James <loganjerry@gmail.com> - 0.6.6-1
- OCaml 5.3.0 rebuild for Fedora 42
- Version 0.6.6
- All patches have been upstreamed
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 0.6.4-10
- OCaml 5.2.0 ppc64le fix
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 0.6.4-9
- OCaml 5.2.0 for Fedora 41
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.4-6
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.4-5
- OCaml 5.1.1 rebuild for Fedora 40
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.4-4
- OCaml 5.1 rebuild for Fedora 40
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (fileutils-0.6.4.tbz) = 7053f8d92655d5631f1ec61ab7f9e3f6e3afedbe435038858dd9a026b9c769c6182afaa436491a398e7c4513b384a609e016718e030855996b2d9d54b461bd19
SHA512 (fileutils-0.6.6.tbz) = ecc38b1577ab108bd24d1e9f0e83596254e542eefb37020dedcff7ca0109e562411cbb9806fbc6f88f4166569bf061a444971388c26950ec02dfc48b35daed90

8
tests/basic-test.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash -
set -e
set -x
# Compile trivial fileutils program.
echo 'assert (FilePath.compare "/" "/" = 0)' > filetest.ml
ocamlfind ocamlopt -package fileutils filetest.ml -linkpkg -o filetest
./filetest

13
tests/tests.yml Executable file
View file

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- ocaml
- ocaml-findlib
- ocaml-fileutils-devel
tests:
- simple:
dir: .
run: ./basic-test.sh