Skip to content

Commit d65b61d

Browse files
durgajagadeeshdj_palli
authored andcommitted
ocaml-calendar: update to 3.0.0 (microsoft#11562)
Co-authored-by: dj_palli <[email protected]>
1 parent 8f34d4d commit d65b61d

File tree

3 files changed

+131
-45
lines changed

3 files changed

+131
-45
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"calendar-2.04.tar.gz": "bea6faa0337a1c54b0f3c2b9b45c9eb90e2b2747406e6f0b841e1fd20fd4d9f7"
3+
"ocaml-calendar-3.0.0.tar.gz": "ea04d31762d3f18837af0311cdbfe7b7788aa0f2e7e9f98d2b0decec1e506e9e"
44
}
55
}

SPECS-EXTENDED/ocaml-calendar/ocaml-calendar.spec

Lines changed: 128 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
3+
34
%ifnarch %{ocaml_native_compiler}
45
%global debug_package %{nil}
56
%endif
67

8+
# ocaml-alcotest requires ocaml-astring, ocaml-cmdliner, ocaml-fmt, and ocaml-uutf,
9+
# none of which are otherwise needed for building the OCaml-dependent packages
10+
11+
%global giturl https://github.com/ocaml-community/calendar
12+
713
Name: ocaml-calendar
8-
Version: 2.04
9-
Release: 29%{?dist}
14+
Version: 3.0.0
15+
Release: 14%{?dist}
1016
Summary: Objective Caml library for managing dates and times
11-
License: LGPLv2
17+
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
1218

13-
URL: https://github.com/ocaml-community/calendar
14-
Source0: https://download.ocamlcore.org/calendar/calendar/%{version}/calendar-%{version}.tar.gz
19+
URL: https://ocaml-community.github.io/calendar/
20+
Source0: https://github.com/ocaml-community/calendar/archive/refs/tags/v3.0.0.tar.gz#/%{name}-%{version}.tar.gz
1521

16-
Patch1: calendar-2.03.2-enable-debug.patch
22+
BuildRequires: ocaml >= 4.03
23+
BuildRequires: ocaml-dune >= 1.0
24+
BuildRequires: ocaml-re-devel >= 1.7.2
1725

18-
BuildRequires: ocaml >= 4.00.1
19-
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
20-
BuildRequires: ocaml-ocamldoc
21-
BuildRequires: gawk
22-
23-
# Ignore all generated modules *except* CalendarLib, since everything
24-
# now appears in that namespace.
25-
%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
26-
%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
26+
%if %{with tests}
27+
BuildRequires: ocaml-alcotest-devel
28+
%endif
2729

2830

2931
%description
@@ -41,47 +43,131 @@ developing applications that use %{name}.
4143

4244

4345
%prep
44-
%setup -q -n calendar-%{version}
45-
%patch 1 -p1
46+
%autosetup -n calendar-%{version} -p1
4647

4748

4849
%build
49-
./configure --libdir=%{_libdir}
50-
make
51-
make doc
52-
53-
mv TODO TODO.old
54-
iconv -f iso-8859-1 -t utf-8 < TODO.old > TODO
50+
%dune_build
5551

5652

5753
%install
58-
export DESTDIR=$RPM_BUILD_ROOT
59-
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
60-
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
61-
make install
54+
%dune_install
6255

6356

64-
%files
65-
%doc CHANGES README TODO LGPL COPYING
66-
%{_libdir}/ocaml/calendar
67-
%ifarch %{ocaml_native_compiler}
68-
%exclude %{_libdir}/ocaml/calendar/*.cmx
57+
%if %{with tests}
58+
%check
59+
%dune_check
6960
%endif
70-
%exclude %{_libdir}/ocaml/calendar/*.mli
7161

7262

73-
%files devel
74-
%doc CHANGES README TODO LGPL COPYING calendarFAQ-2.6.txt doc/*
75-
%ifarch %{ocaml_native_compiler}
76-
%{_libdir}/ocaml/calendar/*.cmx
77-
%endif
78-
%{_libdir}/ocaml/calendar/*.mli
63+
%files -f .ofiles
64+
%doc CHANGES README.md TODO
65+
%license LGPL COPYING
66+
67+
%files devel -f .ofiles-devel
68+
%doc CHANGES README.md TODO calendarFAQ-2.6.txt
69+
%license LGPL COPYING
7970

8071

8172
%changelog
82-
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 2.04-29
83-
- Switching to using full number for the 'Release' tag.
84-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
73+
* Fri Dec 20 2024 Durga Jagadeesh Palli <[email protected]> - 3.0.0-14
74+
- Initial Azure Linux import from Fedora 41 (license: MIT)
75+
- License verified
76+
77+
* Thu Jul 18 2024 Fedora Release Engineering <[email protected]> - 1:3.0.0-13
78+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
79+
80+
* Wed Jun 19 2024 Richard W.M. Jones <[email protected]> - 1:3.0.0-12
81+
- OCaml 5.2.0 ppc64le fix
82+
83+
* Thu May 30 2024 Richard W.M. Jones <[email protected]> - 3.0.0-11
84+
- OCaml 5.2.0 for Fedora 41
85+
86+
* Thu May 23 2024 Jerry James <[email protected]> - 3.0.0-8
87+
- Simplify with %%bcond
88+
- Add VCS field
89+
90+
* Thu Jan 25 2024 Fedora Release Engineering <[email protected]> - 3.0.0-8
91+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
92+
93+
* Sun Jan 21 2024 Fedora Release Engineering <[email protected]> - 3.0.0-7
94+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
95+
96+
* Mon Dec 18 2023 Richard W.M. Jones <[email protected]> - 3.0.0-6
97+
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
98+
99+
* Tue Dec 12 2023 Richard W.M. Jones <[email protected]> - 3.0.0-5
100+
- OCaml 5.1.1 rebuild for Fedora 40
101+
102+
* Thu Oct 05 2023 Richard W.M. Jones <[email protected]> - 3.0.0-4
103+
- OCaml 5.1 rebuild for Fedora 40
104+
105+
* Thu Jul 20 2023 Fedora Release Engineering <[email protected]> - 3.0.0-3
106+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
107+
108+
* Tue Jul 11 2023 Richard W.M. Jones <[email protected]> - 3.0.0-2
109+
- OCaml 5.0 rebuild for Fedora 39
110+
111+
* Mon Jul 10 2023 Jerry James <[email protected]> - 3.0.0-1
112+
- Version 3.0.0
113+
- New project URLs
114+
- Convert License tag to SPDX
115+
- Drop obsolete debuginfo patch
116+
- Build with dune
117+
118+
* Tue Jan 24 2023 Richard W.M. Jones <[email protected]> - 2.04-46
119+
- Rebuild OCaml packages for F38
120+
121+
* Thu Jan 19 2023 Fedora Release Engineering <[email protected]> - 2.04-45
122+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
123+
124+
* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 2.04-44
125+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
126+
127+
* Sat Jun 18 2022 Richard W.M. Jones <[email protected]> - 2.04-43
128+
- OCaml 4.14.0 rebuild
129+
130+
* Fri Feb 04 2022 Richard W.M. Jones <[email protected]> - 2.04-42
131+
- Bump release and rebuild.
132+
133+
* Fri Feb 04 2022 Richard W.M. Jones <[email protected]> - 2.04-41
134+
- OCaml 4.13.1 rebuild to remove package notes
135+
136+
* Thu Jan 20 2022 Fedora Release Engineering <[email protected]> - 2.04-40
137+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
138+
139+
* Mon Oct 04 2021 Richard W.M. Jones <[email protected]> - 2.04-39
140+
- OCaml 4.13.1 build
141+
142+
* Thu Jul 22 2021 Fedora Release Engineering <[email protected]> - 2.04-38
143+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
144+
145+
* Mon Mar 1 14:31:55 GMT 2021 Richard W.M. Jones <[email protected]> - 2.04-37
146+
- OCaml 4.12.0 build
147+
148+
* Tue Jan 26 2021 Fedora Release Engineering <[email protected]> - 2.04-36
149+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
150+
151+
* Tue Sep 01 2020 Richard W.M. Jones <[email protected]> - 2.04-35
152+
- OCaml 4.11.1 rebuild
153+
154+
* Fri Aug 21 2020 Richard W.M. Jones <[email protected]> - 2.04-34
155+
- OCaml 4.11.0 rebuild
156+
157+
* Tue Jul 28 2020 Fedora Release Engineering <[email protected]> - 2.04-33
158+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
159+
160+
* Mon May 04 2020 Richard W.M. Jones <[email protected]> - 2.04-32
161+
- OCaml 4.11.0+dev2-2020-04-22 rebuild
162+
163+
* Tue Apr 21 2020 Richard W.M. Jones <[email protected]> - 2.04-31
164+
- OCaml 4.11.0 pre-release attempt 2
165+
166+
* Fri Apr 17 2020 Richard W.M. Jones <[email protected]> - 2.04-30
167+
- OCaml 4.11.0 pre-release
168+
169+
* Thu Apr 02 2020 Richard W.M. Jones <[email protected]> - 2.04-29
170+
- Update all OCaml dependencies for RPM 4.16
85171

86172
* Thu Feb 27 2020 Richard W.M. Jones <[email protected]> - 2.04-28.1
87173
- OCaml 4.10.0 final (Fedora 32).

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14602,8 +14602,8 @@
1460214602
"type": "other",
1460314603
"other": {
1460414604
"name": "ocaml-calendar",
14605-
"version": "2.04",
14606-
"downloadUrl": "https://download.ocamlcore.org/calendar/calendar/2.04/calendar-2.04.tar.gz"
14605+
"version": "3.0.0",
14606+
"downloadUrl": "https://github.com/ocaml-community/calendar/archive/refs/tags/v3.0.0.tar.gz"
1460714607
}
1460814608
}
1460914609
},

0 commit comments

Comments
 (0)