2022-02-04 13:23:25 +00:00
|
|
|
%undefine _package_note_flags
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
# This package is needed to build ppx_jane, but its tests require ppx_jane.
|
|
|
|
# Break the dependency cycle here.
|
|
|
|
%bcond_with test
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
Name: ocaml-base
|
2022-11-01 15:59:40 +00:00
|
|
|
Version: 0.15.1
|
2023-01-19 22:02:01 +00:00
|
|
|
Release: 2%{?dist}
|
2020-01-08 16:12:17 +00:00
|
|
|
Summary: Jane Street standard library for OCaml
|
|
|
|
|
2022-12-12 15:49:32 +00:00
|
|
|
# MIT: The project as a whole
|
|
|
|
# Apache-2.0: src/map.ml, src/random.mli, src/set.ml
|
|
|
|
License: MIT AND Apache-2.0
|
2021-01-20 15:00:04 +00:00
|
|
|
URL: https://opensource.janestreet.com/base/
|
2022-07-20 19:37:05 +00:00
|
|
|
Source0: https://github.com/janestreet/base/archive/v%{version}/base-%{version}.tar.gz
|
2021-11-30 17:05:00 +00:00
|
|
|
# Adapt to changes in the OCaml 4.13 standard library
|
|
|
|
# See https://github.com/janestreet/base/issues/125
|
|
|
|
Patch0: %{name}-ocaml413.patch
|
2022-07-20 19:37:05 +00:00
|
|
|
# Expose a dependency on the math library so RPM can see it
|
|
|
|
Patch1: %{name}-mathlib.patch
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
BuildRequires: ocaml >= 4.08.0
|
|
|
|
BuildRequires: ocaml-dune >= 2.0.0
|
|
|
|
BuildRequires: ocaml-dune-configurator-devel
|
2021-11-30 17:05:00 +00:00
|
|
|
BuildRequires: ocaml-sexplib0-devel >= 0.15
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: ocaml-num-devel
|
|
|
|
BuildRequires: ocaml-ppx-jane-devel
|
|
|
|
BuildRequires: ocaml-sexplib-devel
|
|
|
|
BuildRequires: ocaml-stdio-devel
|
|
|
|
BuildRequires: ocaml-uutf-devel
|
|
|
|
%endif
|
|
|
|
|
2020-01-08 16:12:17 +00:00
|
|
|
%description
|
|
|
|
Base is a standard library for OCaml. It provides a standard set of
|
|
|
|
general purpose modules that are well-tested, performant, and
|
|
|
|
fully-portable across any environment that can run OCaml code. Unlike
|
|
|
|
other standard library projects, Base is meant to be used as a wholesale
|
|
|
|
replacement of the standard library distributed with the OCaml compiler.
|
|
|
|
In particular it makes different choices and doesn't re-export features
|
|
|
|
that are not fully portable such as I/O, which are left to other
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-01-15 22:46:14 +00:00
|
|
|
Requires: ocaml-sexplib0-devel%{?_isa}
|
2020-01-08 16:12:17 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2022-07-20 19:37:05 +00:00
|
|
|
%autosetup -n base-%{version} -p1
|
2020-01-08 16:12:17 +00:00
|
|
|
|
|
|
|
%build
|
2022-07-20 19:37:05 +00:00
|
|
|
%dune_build
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2020-07-19 20:45:00 +00:00
|
|
|
# Dune passes %%build_ldflags to ocamlmklib without -ldopt, resulting in
|
|
|
|
# "Unknown option" warnings from ocamlmklib and a library that has not been
|
|
|
|
# linked with the correct flags. We can't add -ldopt ourselves, since that
|
|
|
|
# breaks compilation of the cmxs files. This seems to be a weakness of dune;
|
|
|
|
# linker flags and libraries to be linked with have to be specified together,
|
|
|
|
# and nothing takes care of separating them and adding ldopt as necessary. We
|
2020-01-08 16:12:17 +00:00
|
|
|
# relink manually to address the problem.
|
|
|
|
pushd _build/default/src
|
2020-07-19 20:45:00 +00:00
|
|
|
ocamlmklib -g -ldopt "%build_ldflags" -o base_stubs *.o
|
2020-01-08 16:12:17 +00:00
|
|
|
cd ../hash_types/src
|
2020-07-19 20:45:00 +00:00
|
|
|
ocamlmklib -g -ldopt "%build_ldflags" -o base_internalhash_types_stubs *.o
|
2020-01-08 16:12:17 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2022-07-20 19:37:05 +00:00
|
|
|
%dune_install
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%dune_check
|
|
|
|
%endif
|
2020-01-08 16:12:17 +00:00
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
%files -f .ofiles
|
2020-07-19 20:41:32 +00:00
|
|
|
%doc CHANGES.md README.org ROADMAP.md
|
2020-01-08 16:12:17 +00:00
|
|
|
%license LICENSE.md
|
2022-07-20 19:37:05 +00:00
|
|
|
|
|
|
|
%files devel -f .ofiles-devel
|
2020-01-08 16:12:17 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-01-19 22:02:01 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-12 15:49:32 +00:00
|
|
|
* Mon Dec 12 2022 Jerry James <loganjerry@gmail.com> - 0.15.1-1
|
|
|
|
- Add Apache-2.0 to the License tag while converting to SPDX
|
|
|
|
|
2022-11-01 15:59:40 +00:00
|
|
|
* Mon Oct 31 2022 Jerry James <loganjerry@gmail.com> - 0.15.1-1
|
|
|
|
- Version 0.15.1
|
|
|
|
|
2022-07-22 01:06:19 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-20 19:37:05 +00:00
|
|
|
* Mon Jun 27 2022 Jerry James <loganjerry@gmail.com> - 0.15.0-5
|
|
|
|
- Optionally run tests
|
|
|
|
- Link against the math library
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
2022-06-18 14:25:51 +00:00
|
|
|
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 0.15.0-5
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
2022-02-28 16:05:36 +00:00
|
|
|
* Thu Feb 24 2022 Jerry James <loganjerry@gmail.com> - 0.15.0-4
|
|
|
|
- Version 0.15.0 rerelease
|
|
|
|
|
2022-02-04 13:23:25 +00:00
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 0.15.0-3
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
2022-01-20 21:38:27 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-30 17:05:00 +00:00
|
|
|
* Tue Nov 30 2021 Jerry James <loganjerry@gmail.com> - 0.15.0-1
|
|
|
|
- Version 0.15.0
|
|
|
|
- Add patch for OCaml 4.13 compatibility
|
|
|
|
|
2021-10-04 21:25:11 +00:00
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.1-4
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
2021-07-22 16:32:23 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-03-01 12:17:34 +00:00
|
|
|
* Mon Mar 1 12:17:33 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.1-2
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
2021-02-21 02:23:48 +00:00
|
|
|
* Sat Feb 20 2021 Jerry James <loganjerry@gmail.com> - 0.14.1-1
|
|
|
|
- Version 0.14.1
|
|
|
|
|
2021-02-02 12:38:38 +00:00
|
|
|
* Tue Feb 2 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-6
|
|
|
|
- Bump and rebuild for updated ocaml-camomile dep (RHBZ#1923853).
|
|
|
|
|
2021-01-26 21:53:03 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-01 19:33:10 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-4
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
2020-08-21 11:23:18 +00:00
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-3
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
2020-07-28 12:05:21 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-19 20:41:32 +00:00
|
|
|
* Wed Jun 17 2020 Jerry James <loganjerry@gmail.com> - 0.14.0-1
|
|
|
|
- Version 0.14.0
|
|
|
|
|
2020-05-12 17:04:48 +00:00
|
|
|
* Tue May 12 2020 Jerry James <loganjerry@gmail.com> - 0.13.2-1
|
|
|
|
- Version 0.13.2
|
|
|
|
|
2020-05-04 23:17:10 +00:00
|
|
|
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.1-5
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-21 18:49:04 +00:00
|
|
|
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.1-4
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-03 14:29:50 +00:00
|
|
|
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.1-3
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 16:40:14 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.1-2
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-02-18 04:13:04 +00:00
|
|
|
* Tue Feb 18 2020 Jerry James <loganjerry@gmail.com> - 0.13.1-1
|
|
|
|
- Version 0.13.1
|
|
|
|
- Drop upstreamed -gc patch
|
|
|
|
|
2020-01-29 19:29:32 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-22 22:29:11 +00:00
|
|
|
* Wed Jan 22 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-3
|
|
|
|
- Add -gc patch to fix FTBFS with OCaml 4.10
|
|
|
|
|
2020-01-19 20:04:13 +00:00
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-3
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
2020-01-15 22:46:14 +00:00
|
|
|
* Wed Jan 15 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-2
|
|
|
|
- Add R on ocaml-sexplib0-devel to the -devel subpackage
|
|
|
|
- Pass smp_mflags to dune build
|
|
|
|
|
2020-01-08 16:12:17 +00:00
|
|
|
* Thu Jan 2 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-1
|
|
|
|
- Initial RPM
|