Compare commits

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

45 commits

Author SHA1 Message Date
Jerry James
43c2e4c970 Fix a changelog entry 2026-01-13 16:07:40 -07:00
Richard W.M. Jones
b429b74638 OCaml 5.4.0 rebuild 2025-10-13 21:38:33 +01:00
Fedora Release Engineering
7f8bd27d2e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:08:09 +00:00
Jerry James
efff9ad217 Rebuild to fix OCaml dependencies 2025-07-12 09:34:16 -06:00
Fedora Release Engineering
f3fb1b87c1 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:43:44 +00:00
Jerry James
76805c3b26 OCaml 5.3.0 rebuild for Fedora 42
- Add patch for a test failure
2025-01-09 17:26:28 -07:00
Richard W.M. Jones
5e7be62153 Rebuild against ocaml-re 1.13.3 (RHBZ#2316105) 2024-10-03 11:14:21 +01:00
Fedora Release Engineering
93e8ebb6ae Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:01:57 +00:00
Jerry James
76dd5de159 Fix the VCS field 2024-07-17 13:44:59 -06:00
Richard W.M. Jones
70cfb51a8c OCaml 5.2.0 ppc64le fix 2024-06-19 14:25:09 +01:00
Richard W.M. Jones
e00b4bbeaa Add RHEL gating test 2024-06-19 08:39:08 +01:00
Richard W.M. Jones
024d922bfa Bump Epoch to 1 to match RHEL 10
See:

92adf4cf1d
2024-06-19 08:28:05 +01:00
Richard W.M. Jones
5a90b4e881 Revert "Remove BR ocaml-re, apparently not necessary."
This was incorrect.  ocaml-re is necessary (see src/dune).  As it is
pulled in implicitly the build still appeared to work without the BR.

This reverts commit a0a1bb9a67.
2024-05-31 17:18:15 +01:00
Richard W.M. Jones
a0a1bb9a67 Remove BR ocaml-re, apparently not necessary. 2024-05-31 16:58:23 +01:00
Richard W.M. Jones
f165f24025 OCaml 5.2.0 for Fedora 41 2024-05-30 08:53:45 +01:00
Jerry James
57f62de477 Simplify with %bcond
- Add VCS field
2024-05-23 11:27:39 -06:00
Fedora Release Engineering
cbbff9ed00 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 09:51:05 +00:00
Fedora Release Engineering
877a795728 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:11:42 +00:00
Richard W.M. Jones
c5c2851f13 OCaml 5.1.1 + s390x code gen fix for Fedora 40 2023-12-18 14:35:29 +00:00
Richard W.M. Jones
c63aeb4a5f OCaml 5.1.1 rebuild for Fedora 40 2023-12-12 14:53:20 +00:00
Richard W.M. Jones
6a7e8de275 OCaml 5.1 rebuild for Fedora 40 2023-10-05 15:38:33 +01:00
Fedora Release Engineering
c30763d3b5 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:12:32 +00:00
Yaakov Selkowitz
b68b0c7ba8 Disable tests in RHEL builds
ocaml-alcotest and its several dependencies are otherwise unneeded in
RHEL and ELN.
2023-07-13 19:23:08 -04:00
Richard W.M. Jones
864c509d9a OCaml 5.0 rebuild for Fedora 39 2023-07-11 23:41:43 +01:00
Richard W.M. Jones
d3c7c65fd1 ExcludeArch i686 (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/SPML7CUBSZNI36NLXGVHEG7DNHU3EWOJ/) 2023-07-11 11:36:23 +01:00
Jerry James
22e86b3341 Version 3.0.0
Other changes:
- New project URLs
- Convert License tag to SPDX
- Drop obsolete debuginfo patch
- Build with dune
2023-07-10 17:21:37 -06:00
Richard W.M. Jones
a936e48978 Rebuild OCaml packages for F38 2023-01-24 10:15:29 +00:00
Fedora Release Engineering
782091172f Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:03:24 +00:00
Fedora Release Engineering
c62b64a88a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 01:07:58 +00:00
Richard W.M. Jones
c76cf71072 OCaml 4.14.0 rebuild 2022-06-18 14:40:47 +01:00
Richard W.M. Jones
33e0a9e1b5 Bump release and rebuild. 2022-02-04 14:22:01 +00:00
Richard W.M. Jones
2bc1dac110 OCaml 4.13.1 rebuild to remove package notes 2022-02-04 13:02:36 +00:00
Fedora Release Engineering
03b4292d25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 21:39:47 +00:00
Richard W.M. Jones
74afe2984c OCaml 4.13.1 build 2021-10-04 22:11:04 +01:00
Fedora Release Engineering
bf53a197e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 16:33:33 +00:00
Richard W.M. Jones
ed0615fe29 OCaml 4.12.0 build 2021-03-01 14:31:56 +00:00
Fedora Release Engineering
edf6454ab7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 21:54:01 +00:00
Tom Stellard
66a231b42f Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 06:10:34 +00:00
Richard W.M. Jones
96bfcca674 OCaml 4.11.1 rebuild 2020-09-01 20:06:34 +01:00
Richard W.M. Jones
dfc93a29b2 OCaml 4.11.0 rebuild 2020-08-21 11:59:52 +01:00
Fedora Release Engineering
3191dc541d - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:06:20 +00:00
Richard W.M. Jones
fcd3bc0ddf OCaml 4.11.0+dev2-2020-04-22 rebuild 2020-05-04 23:06:48 +01:00
Richard W.M. Jones
46292f2ded OCaml 4.11.0 pre-release attempt 2 2020-04-21 16:48:39 +01:00
Richard W.M. Jones
e3edd6a8b6 OCaml 4.11.0 pre-release 2020-04-17 21:22:41 +01:00
Richard W.M. Jones
973c1a5664 Update all OCaml dependencies for RPM 4.16. 2020-04-02 14:05:47 +01:00
8 changed files with 216 additions and 52 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ calendar-2.01.1.tar.gz
/calendar-2.03.1.tar.gz
/calendar-2.03.2.tar.gz
/calendar-2.04.tar.gz
/calendar-3.0.0.tar.gz

View file

@ -1,11 +0,0 @@
--- calendar-2.03.2/Makefile.in.old 2013-09-14 16:15:43.760253519 +0100
+++ calendar-2.03.2/Makefile.in 2013-09-14 16:16:03.233279962 +0100
@@ -86,7 +86,7 @@
CAMLIBS = $(addprefix -I , $(DIRS))
-CAMLFLAGS= $(CAMLIBS)
+CAMLFLAGS= -g $(CAMLIBS)
BYTEFLAGS= $(CAMLFLAGS)
LINK_OPTFLAGS = $(CAMLFLAGS) -noassert
OPTFLAGS = $(LINK_OPTFLAGS) -for-pack CalendarLib

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

@ -0,0 +1,33 @@
When the tests are executed in Mountain Standard Time, the timezone test fails:
ASSERT gap g6 Local = gap g6 UTC + gap UTC Local
File "tests/test_timezone.ml", line 37, character 2:
FAIL gap g6 Local = gap g6 UTC + gap UTC Local
Expected: `11'
Received: `-13'
--- calendar-3.0.0/tests/test_timezone.ml.orig 2022-10-11 09:39:06.000000000 -0600
+++ calendar-3.0.0/tests/test_timezone.ml 2024-12-13 11:20:28.349298798 -0700
@@ -27,6 +27,12 @@ open Time_Zone;;
let tz = Alcotest.testable (Fmt.always "timezone") (=) ;;
+let make_in_bounds x =
+ let y = x mod 24 in
+ if y < -12 then y + 24
+ else if y > 11 then y - 24
+ else y
+
let test () =
change UTC;
Alcotest.(check tz) "current () = UTC" UTC (current ());
@@ -36,7 +42,7 @@ let test () =
let g6 = UTC_Plus 6 in
Alcotest.(check int)
"gap g6 Local = gap g6 UTC + gap UTC Local"
- (gap g6 Local) (gap g6 UTC + gap UTC Local);
+ (gap g6 Local) (make_in_bounds (gap g6 UTC + gap UTC Local));
Gen_test.test_exn (lazy (change (UTC_Plus 13))) "change 13";
Gen_test.test_exn (lazy (change (UTC_Plus (-15)))) "change (-15)";
change (UTC_Plus 4);

View file

@ -1,27 +1,37 @@
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
ExcludeArch: %{ix86}
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif
# ocaml-alcotest requires ocaml-astring, ocaml-cmdliner, ocaml-fmt, and ocaml-uutf,
# none of which are otherwise needed for building the OCaml-dependent packages
# found in RHEL and ELN. We want to avoid the extra dependencies there.
%bcond tests %[!0%{?rhel}]
%global giturl https://github.com/ocaml-community/calendar
Name: ocaml-calendar
Version: 2.04
Release: 28%{?dist}
Epoch: 1
Version: 3.0.0
Release: 19%{?dist}
Summary: Objective Caml library for managing dates and times
License: LGPLv2
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
URL: http://calendar.forge.ocamlcore.org/
Source0: https://forge.ocamlcore.org/frs/download.php/1481/calendar-2.04.tar.gz
URL: https://ocaml-community.github.io/calendar/
VCS: git:%{giturl}.git
Source0: %{giturl}/archive/v%{version}/calendar-%{version}.tar.gz
# Work around https://github.com/ocaml-community/calendar/issues/43
Patch: %{name}-timezone-test.patch
Patch1: calendar-2.03.2-enable-debug.patch
BuildRequires: ocaml >= 4.03
BuildRequires: ocaml-dune >= 1.0
BuildRequires: ocaml-re-devel >= 1.7.2
BuildRequires: ocaml >= 4.00.1
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
BuildRequires: ocaml-ocamldoc
BuildRequires: gawk
# Ignore all generated modules *except* CalendarLib, since everything
# now appears in that namespace.
%global __ocaml_requires_opts -i Calendar_builder -i Calendar_sig -i Date -i Date_sig -i Fcalendar -i Ftime -i Period -i Printer -i Time -i Time_sig -i Time_Zone -i Utils -i Version
%global __ocaml_provides_opts -i Calendar_builder -i Calendar_sig -i Date -i Date_sig -i Fcalendar -i Ftime -i Period -i Printer -i Time -i Time_sig -i Time_Zone -i Utils -i Version
%if %{with tests}
BuildRequires: ocaml-alcotest-devel
%endif
%description
@ -30,7 +40,7 @@ Objective Caml library for managing dates and times.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description devel
@ -39,44 +49,148 @@ developing applications that use %{name}.
%prep
%setup -q -n calendar-%{version}
%patch1 -p1
%autosetup -n calendar-%{version} -p1
%build
./configure --libdir=%{_libdir}
make
make doc
mv TODO TODO.old
iconv -f iso-8859-1 -t utf-8 < TODO.old > TODO
%dune_build
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install
%dune_install
%files
%doc CHANGES README TODO LGPL COPYING
%{_libdir}/ocaml/calendar
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/calendar/*.cmx
%if %{with tests}
%check
%dune_check
%endif
%exclude %{_libdir}/ocaml/calendar/*.mli
%files devel
%doc CHANGES README TODO LGPL COPYING calendarFAQ-2.6.txt doc/*
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/calendar/*.cmx
%endif
%{_libdir}/ocaml/calendar/*.mli
%files -f .ofiles
%doc CHANGES README.md TODO
%license LGPL COPYING
%files devel -f .ofiles-devel
%doc CHANGES README.md TODO calendarFAQ-2.6.txt
%license LGPL COPYING
%changelog
* Mon Oct 13 2025 Richard W.M. Jones <rjones@redhat.com> - 1:3.0.0-19
- OCaml 5.4.0 rebuild
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.0-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jul 12 2025 Jerry James <loganjerry@gmail.com> - 1:3.0.0-17
- Rebuild to fix OCaml dependencies
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.0-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jan 10 2025 Jerry James <loganjerry@gmail.com> - 1:3.0.0-15
- OCaml 5.3.0 rebuild for Fedora 42
- Add patch for a test failure
* Thu Oct 03 2024 Richard W.M. Jones <rjones@redhat.com> - 1:3.0.0-14
- Rebuild against ocaml-re 1.13.3 (RHBZ#2316105)
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 1:3.0.0-12
- OCaml 5.2.0 ppc64le fix
* Thu May 30 2024 Richard W.M. Jones <rjones@redhat.com> - 3.0.0-11
- OCaml 5.2.0 for Fedora 41
* Thu May 23 2024 Jerry James <loganjerry@gmail.com> - 3.0.0-8
- Simplify with %%bcond
- Add VCS field
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0.0-6
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0.0-5
- OCaml 5.1.1 rebuild for Fedora 40
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0.0-4
- OCaml 5.1 rebuild for Fedora 40
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 3.0.0-2
- OCaml 5.0 rebuild for Fedora 39
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 3.0.0-1
- Version 3.0.0
- New project URLs
- Convert License tag to SPDX
- Drop obsolete debuginfo patch
- Build with dune
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 2.04-46
- Rebuild OCaml packages for F38
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 2.04-43
- OCaml 4.14.0 rebuild
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.04-42
- Bump release and rebuild.
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.04-41
- OCaml 4.13.1 rebuild to remove package notes
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 2.04-39
- OCaml 4.13.1 build
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Mar 1 14:31:55 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 2.04-37
- OCaml 4.12.0 build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-35
- OCaml 4.11.1 rebuild
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-34
- OCaml 4.11.0 rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-32
- OCaml 4.11.0+dev2-2020-04-22 rebuild
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-31
- OCaml 4.11.0 pre-release attempt 2
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-30
- OCaml 4.11.0 pre-release
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-29
- Update all OCaml dependencies for RPM 4.16.
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 2.04-28
- OCaml 4.10.0 final.

View file

@ -1 +1 @@
625b4f32c9ff447501868fa1c44f4f4f calendar-2.04.tar.gz
SHA512 (calendar-3.0.0.tar.gz) = cf8a5cfbfb8879da7bcacf765d5461523cbc4f0c13133dfb2f311b051ed95b5f72815af5ca2836294a793d9b57bfc4cc1abbb8b54e17954cb4ecc99e1743bdc3

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

@ -0,0 +1,8 @@
#!/bin/bash -
set -e
set -x
# Compile trivial calendar program.
echo 'CalendarLib.Calendar.Period.make 0 0 0 1 0 0' > caltest.ml
ocamlfind ocamlopt -package calendar caltest.ml -linkpkg -o caltest
./caltest

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-calendar-devel
tests:
- simple:
dir: .
run: ./basic-test.sh