2017-11-21 05:56:35 +00:00
|
|
|
Name: ocaml-benchmark
|
2018-05-18 02:07:33 +00:00
|
|
|
Version: 1.5
|
2021-03-01 22:00:49 +00:00
|
|
|
Release: 20%{?dist}
|
2017-11-21 05:56:35 +00:00
|
|
|
Summary: Benchmarking module for OCaml
|
|
|
|
|
|
|
|
License: LGPLv3+ with exceptions
|
|
|
|
URL: http://ocaml-benchmark.forge.ocamlcore.org/
|
|
|
|
Source0: https://github.com/Chris00/ocaml-benchmark/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-findlib
|
2020-01-19 21:16:32 +00:00
|
|
|
BuildRequires: ocaml-dune
|
2018-05-18 02:07:33 +00:00
|
|
|
BuildRequires: opam-installer
|
2017-11-21 05:56:35 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Benchmark provides functions to measure and compare the run-time of functions.
|
|
|
|
It is inspired by the Perl module of the same name.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2020-01-19 21:16:32 +00:00
|
|
|
# Converts the jbuilder configuration to dune.
|
|
|
|
dune upgrade
|
2017-11-21 05:56:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2020-01-19 21:16:32 +00:00
|
|
|
dune build @install --profile release
|
2017-11-21 05:56:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-01-19 21:16:32 +00:00
|
|
|
dune install --destdir="%{buildroot}" --libdir="%{_libdir}/ocaml" --verbose
|
2018-05-18 02:07:33 +00:00
|
|
|
|
|
|
|
# Makes *.cmxs executable such that they will be stripped.
|
|
|
|
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
|
2017-11-21 05:56:35 +00:00
|
|
|
|
2019-04-30 07:56:11 +00:00
|
|
|
# Remove /usr/doc, we will install it using %%doc directives.
|
|
|
|
rm -r %{buildroot}$DESTDIR/usr/doc
|
|
|
|
|
2017-11-21 05:56:35 +00:00
|
|
|
|
|
|
|
%check
|
2020-01-19 21:16:32 +00:00
|
|
|
dune runtest --profile release
|
2017-11-21 05:56:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-05-18 02:07:33 +00:00
|
|
|
%doc README.md CHANGES.md
|
|
|
|
%license LICENSE.md
|
2017-11-21 05:56:35 +00:00
|
|
|
%{_libdir}/ocaml/benchmark
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%exclude %{_libdir}/ocaml/benchmark/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/benchmark/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/benchmark/*.cmx
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/benchmark/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
2018-05-18 02:07:33 +00:00
|
|
|
%doc README.md CHANGES.md
|
|
|
|
%license LICENSE.md
|
2017-11-21 05:56:35 +00:00
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/benchmark/*.a
|
|
|
|
%{_libdir}/ocaml/benchmark/*.cmxa
|
|
|
|
%{_libdir}/ocaml/benchmark/*.cmx
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/benchmark/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-03-01 22:00:49 +00:00
|
|
|
* Mon Mar 1 22:00:48 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5-20
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
2021-01-26 21:53:19 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-01 21:07:44 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-18
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
2020-08-21 18:43:37 +00:00
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-17
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
2020-08-01 06:35:33 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-16
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 12:05:37 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-05 14:51:47 +00:00
|
|
|
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-14
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-22 14:18:54 +00:00
|
|
|
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-13
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-04 15:27:59 +00:00
|
|
|
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-12
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2020-04-04 13:42:59 +00:00
|
|
|
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-11
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-27 10:15:20 +00:00
|
|
|
* Thu Feb 27 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-10
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-01-29 19:29:53 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-19 21:11:02 +00:00
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5-8
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
2020-01-19 21:16:32 +00:00
|
|
|
- jbuilder -> dune.
|
2020-01-19 21:11:02 +00:00
|
|
|
|
2019-08-16 16:37:09 +00:00
|
|
|
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.5-7
|
|
|
|
- OCaml 4.08.1 (final) rebuild.
|
|
|
|
|
2019-08-01 21:51:46 +00:00
|
|
|
* Thu Aug 01 2019 Richard W.M. Jones <rjones@redhat.com> - 1.5-6
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
2019-07-25 22:48:08 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-29 19:31:30 +00:00
|
|
|
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.5-4
|
|
|
|
- OCaml 4.08.0 (beta 3) rebuild.
|
2019-04-30 07:56:11 +00:00
|
|
|
- Set --profile release to disable warn-error.
|
|
|
|
- Various jbuilder command line fixes.
|
2019-04-29 19:31:30 +00:00
|
|
|
|
2019-02-01 16:45:43 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 14:40:32 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-18 02:07:33 +00:00
|
|
|
* Fri May 18 2018 Andy Li <andy@onthewings.net> - 1.5-1
|
|
|
|
- New upstream release (RHBZ#1579582).
|
|
|
|
- Update build commands to use jbuilder.
|
|
|
|
- Enable debug package.
|
|
|
|
|
2018-02-08 08:45:09 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-02 11:21:35 +00:00
|
|
|
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 1.4-2
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
2017-11-21 05:56:35 +00:00
|
|
|
* Mon Nov 20 2017 Andy Li <andy@onthewings.net> - 1.4-1
|
|
|
|
- Initial RPM release.
|