Blame ocaml-mtime.spec

455c16d
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
455c16d
ExcludeArch: %{ix86}
455c16d
37fb805
Name:           ocaml-mtime
6a8d90b
Version:        2.0.0
956c628
Release:        10%{?dist}
9b60dc9
Summary:        Monotonic wall-clock time for OCaml
9b60dc9
9b60dc9
License:        ISC
9b60dc9
URL:            https://erratique.ch/software/mtime
37fb805
Source0:        %{url}/releases/mtime-%{version}.tbz
9b60dc9
999409d
BuildRequires:  ocaml >= 4.08.0
ed80699
BuildRequires:  ocaml-compiler-libs
9b60dc9
BuildRequires:  ocaml-findlib
9b60dc9
BuildRequires:  ocaml-ocamlbuild
ed80699
BuildRequires:  ocaml-rpm-macros
999409d
BuildRequires:  ocaml-topkg-devel >= 1.0.3
37fb805
BuildRequires:  python3
9b60dc9
6a8d90b
# Do not require ocaml-compiler-libs at runtime
6a8d90b
%global __ocaml_requires_opts -i Asttypes -i Build_path_prefix_map -i Cmi_format -i Env -i Ident -i Identifiable -i Load_path -i Location -i Longident -i Misc -i Outcometree -i Parsetree -i Path -i Primitive -i Shape -i Subst -i Toploop -i Type_immediacy -i Types -i Warnings
6a8d90b
9b60dc9
%description
9b60dc9
Mtime has platform independent support for monotonic wall-clock time in
9b60dc9
pure OCaml.  This time increases monotonically and is not subject to
9b60dc9
operating system calendar time adjustments.  The library has types to
9b60dc9
represent nanosecond precision timestamps and time spans.
9b60dc9
9b60dc9
The additional Mtime_clock library provide access to a system
9b60dc9
monotonic clock.
9b60dc9
9b60dc9
Mtime has no dependencies.  Mtime_clock depends on your system library.
9b60dc9
9b60dc9
%package        devel
9b60dc9
Summary:        Development files for %{name}
9b60dc9
Requires:       %{name}%{?_isa} = %{version}-%{release}
9b60dc9
9b60dc9
%description    devel
9b60dc9
The %{name}-devel package contains libraries and signature
9b60dc9
files for developing applications that use %{name}.
9b60dc9
9b60dc9
%prep
37fb805
%autosetup -n mtime-%{version}
37fb805
37fb805
# link with the math library
37fb805
echo $'\ntrue: cclib(-lm)' >> _tags
9b60dc9
9b60dc9
%build
999409d
ocaml pkg/pkg.ml build --dev-pkg false --tests true
9b60dc9
9b60dc9
%install
ed80699
%ocaml_install
6a8d90b
37fb805
%check
37fb805
ocaml pkg/pkg.ml test
9b60dc9
37fb805
%files -f .ofiles
9b60dc9
%doc CHANGES.md README.md
9b60dc9
%license LICENSE.md
9b60dc9
37fb805
%files devel -f .ofiles-devel
9b60dc9
%if %{with docs}
9b60dc9
%doc _build/default/_doc/*
9b60dc9
%endif
9b60dc9
9b60dc9
%changelog
956c628
* Mon Jan 29 2024 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-10
956c628
- Bump and rebuild
956c628
7d784cc
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-9
7d784cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7d784cc
48c119d
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
48c119d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
48c119d
befbdc7
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-7
befbdc7
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
befbdc7
15b43c9
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-6
15b43c9
- OCaml 5.1.1 rebuild for Fedora 40
15b43c9
8d0cb29
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-5
8d0cb29
- Bump release and rebuild
8d0cb29
e103b5d
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-4
e103b5d
- OCaml 5.1 rebuild for Fedora 40
e103b5d
ed80699
* Wed Sep 27 2023 Jerry James <loganjerry@gmail.com> - 2.0.0-3
ed80699
- Use the %%ocaml_install macro
ed80699
070b635
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
070b635
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
070b635
00d0634
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-2
00d0634
- OCaml 5.0 rebuild for Fedora 39
00d0634
6a8d90b
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 2.0.0-1
6a8d90b
- Version 2.0.0
6a8d90b
79762a3
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1.4.0-5
79762a3
- Rebuild OCaml packages for F38
79762a3
e29a8dc
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
e29a8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e29a8dc
6870b56
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
6870b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6870b56
37fb805
* Wed Jul 20 2022 Jerry James <loganjerry@gmail.com> - 1.4.0-2
37fb805
- Link with the math library
37fb805
- Use new OCaml macros
37fb805
cb9d5af
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 1.4.0-2
cb9d5af
- OCaml 4.14.0 rebuild
cb9d5af
999409d
* Mon Feb 28 2022 Jerry James <loganjerry@gmail.com> - 1.4.0-1
999409d
- Version 1.4.0
999409d
8ea153d
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1.3.0-3
8ea153d
- OCaml 4.13.1 rebuild to remove package notes
8ea153d
75e698e
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
75e698e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
75e698e
9b60dc9
* Wed Dec  1 2021 Jerry James <loganjerry@gmail.com> - 1.3.0-1
9b60dc9
- Initial RPM