1
1
Vendor: Microsoft Corporation
2
2
Distribution: Azure Linux
3
+
3
4
%ifnarch %{ocaml_native_compiler }
4
5
%global debug_package %{nil }
5
6
%endif
6
7
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
+
7
13
Name: ocaml-calendar
8
- Version: 2.04
9
- Release: 29 %{?dist }
14
+ Version: 3.0.0
15
+ Release: 14 %{?dist }
10
16
Summary: Objective Caml library for managing dates and times
11
- License: LGPLv2
17
+ License: LGPL-2.1 -or-later WITH OCaml-LGPL-linking-exception
12
18
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
15
21
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
17
25
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
27
29
28
30
29
31
%description
@@ -41,47 +43,131 @@ developing applications that use %{name}.
41
43
42
44
43
45
%prep
44
- %setup -q -n calendar-%{version }
45
- %patch 1 -p1
46
+ %autosetup -n calendar-%{version } -p1
46
47
47
48
48
49
%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
55
51
56
52
57
53
%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
62
55
63
56
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
69
60
%endif
70
- %exclude %{_libdir }/ocaml/calendar/* .mli
71
61
72
62
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
79
70
80
71
81
72
%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
85
171
86
172
*
Thu Feb 27 2020 Richard W.M. Jones <[email protected] > -
2.04-28.1
87
173
- OCaml 4.10.0 final (Fedora 32).
0 commit comments