2023-07-11 10:36:24 +00:00
|
|
|
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
# NOTE: there is no devel subpackage because the main package *IS* a devel
|
|
|
|
# package.
|
|
|
|
|
2016-11-04 22:03:57 +00:00
|
|
|
%ifnarch %{ocaml_native_compiler}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: ocaml-ocamlbuild
|
2023-07-10 20:17:55 +00:00
|
|
|
Version: 0.14.2
|
2023-07-11 18:50:46 +00:00
|
|
|
Release: 2%{?dist}
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
Summary: Build tool for OCaml libraries and programs
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
URL: https://github.com/ocaml/ocamlbuild
|
2023-07-10 20:17:55 +00:00
|
|
|
Source0: %{url}/archive/%{version}/ocamlbuild-%{version}.tar.gz
|
2016-11-04 22:03:57 +00:00
|
|
|
|
2021-01-07 06:16:46 +00:00
|
|
|
BuildRequires: make
|
2016-11-04 22:03:57 +00:00
|
|
|
BuildRequires: ocaml >= 4.04.0
|
2023-07-10 20:17:55 +00:00
|
|
|
BuildRequires: ncurses
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: python3-pygments
|
2016-11-04 22:03:57 +00:00
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
# Ocamlbuild can invoke tput; see src/display.ml
|
|
|
|
Requires: ncurses
|
2016-11-04 22:03:57 +00:00
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
# This can be removed when F42 reaches EOL
|
|
|
|
Obsoletes: %{name}-devel < 0.14.0-37
|
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
%description
|
|
|
|
OCamlbuild is a build tool for building OCaml libraries and programs.
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
2023-07-10 20:17:55 +00:00
|
|
|
License: CC0
|
|
|
|
BuildArch: noarch
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the manual for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-07-10 20:17:55 +00:00
|
|
|
%autosetup -n ocamlbuild-%{version}
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make configure \
|
|
|
|
OCAMLBUILD_PREFIX=%{_prefix} \
|
|
|
|
OCAMLBUILD_BINDIR=%{_bindir} \
|
|
|
|
OCAMLBUILD_LIBDIR=%{_libdir}/ocaml \
|
2021-07-19 21:48:51 +00:00
|
|
|
OCAMLBUILD_MANDIR=%{_mandir} \
|
2016-11-04 22:03:57 +00:00
|
|
|
%ifarch %{ocaml_native_compiler}
|
2021-07-19 21:48:51 +00:00
|
|
|
OCAML_NATIVE=true \
|
|
|
|
OCAML_NATIVE_TOOLS=true
|
2016-11-04 22:03:57 +00:00
|
|
|
%else
|
2021-07-19 21:48:51 +00:00
|
|
|
OCAML_NATIVE=false \
|
|
|
|
OCAML_NATIVE_TOOLS=false
|
2016-11-04 22:03:57 +00:00
|
|
|
%endif
|
|
|
|
|
2017-07-31 08:39:34 +00:00
|
|
|
# Parallel builds fail.
|
|
|
|
make \
|
2017-09-16 09:35:46 +00:00
|
|
|
%ifarch %{ocaml_native_compiler}
|
2017-07-31 08:32:16 +00:00
|
|
|
OCAMLC="ocamlc.opt -g" \
|
|
|
|
OCAMLOPT="ocamlopt.opt -g"
|
2017-09-16 09:35:46 +00:00
|
|
|
%else
|
|
|
|
OCAMLC="ocamlc -g" \
|
|
|
|
OCAMLOPT="ocamlopt -g"
|
|
|
|
%endif
|
2016-11-04 22:03:57 +00:00
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
# Build the manual
|
|
|
|
asciidoc manual/manual.adoc
|
|
|
|
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
%install
|
2023-07-10 20:17:55 +00:00
|
|
|
%make_install CHECK_IF_PREINSTALLED=false
|
2016-11-04 22:03:57 +00:00
|
|
|
|
2017-09-20 11:33:26 +00:00
|
|
|
# The install copies ocamlbuild & ocamlbuild.{byte or native}.
|
|
|
|
# Symlink them instead.
|
|
|
|
pushd $RPM_BUILD_ROOT/usr/bin
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
ln -sf ocamlbuild.native ocamlbuild
|
|
|
|
%else
|
|
|
|
ln -sf ocamlbuild.byte ocamlbuild
|
|
|
|
%endif
|
|
|
|
popd
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
%ocaml_files -n
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
%files -f .ofiles
|
2016-11-04 22:03:57 +00:00
|
|
|
%doc Changes Readme.md VERSION
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
2023-07-10 20:17:55 +00:00
|
|
|
%license manual/LICENSE
|
|
|
|
%doc manual/manual.html
|
2016-11-04 22:03:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-11 18:50:46 +00:00
|
|
|
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 0.14.2-2
|
|
|
|
- OCaml 5.0 rebuild for Fedora 39
|
|
|
|
|
2023-07-10 20:17:55 +00:00
|
|
|
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 0.14.2-1
|
|
|
|
- Version 0.14.2
|
|
|
|
- Convert License tag to SPDX
|
|
|
|
- Change license for the doc subpackage to CC0
|
|
|
|
- Make the doc subpackage noarch
|
|
|
|
- Fold the devel subpackage into the main package
|
|
|
|
- Ship the manual as HTML instead of asciidoc source
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
2023-01-24 08:23:52 +00:00
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-36
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
|
2023-01-19 22:14:01 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 01:21:30 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-34
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-18 13:06:32 +00:00
|
|
|
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-33
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
2022-02-04 11:57:04 +00:00
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-32
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2022-02-04 09:55:24 +00:00
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-31
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
2022-01-20 21:49:37 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-30
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-10-04 16:25:43 +00:00
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-29
|
|
|
|
- Bump and rebuild for OCaml 4.13.1
|
|
|
|
|
2021-10-04 16:14:54 +00:00
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-28
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
2021-07-22 16:42:46 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-27
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-19 21:48:51 +00:00
|
|
|
* Mon Jul 19 2021 Jerry James <loganjerry@gmail.com> - 0.14.0-26
|
|
|
|
- Specify OCAMLBUILD_MANDIR to fix man page installation
|
|
|
|
|
2021-03-15 12:38:40 +00:00
|
|
|
* Mon Mar 15 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-26
|
|
|
|
- Bump and rebuild for ELN broken deps.
|
|
|
|
|
2021-02-28 22:16:46 +00:00
|
|
|
* Sun Feb 28 22:16:45 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-25
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
|
|
|
* Sun Feb 28 22:08:24 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-24
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
2021-01-26 22:01:58 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-31 09:35:36 +00:00
|
|
|
* Thu Dec 31 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-22
|
|
|
|
- Fix license field (RHBZ#1911667).
|
|
|
|
|
2020-09-01 18:46:31 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-21
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
2020-08-21 09:38:38 +00:00
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-20
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
2020-08-01 06:39:55 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-19
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 12:14:03 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-04 20:23:26 +00:00
|
|
|
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-17
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-21 15:11:56 +00:00
|
|
|
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-16
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-17 19:22:41 +00:00
|
|
|
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-15
|
|
|
|
- OCaml 4.11.0 pre-release
|
|
|
|
|
2020-04-02 10:52:45 +00:00
|
|
|
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-14
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 10:21:08 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-13
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-01-29 19:40:23 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-18 22:06:34 +00:00
|
|
|
* Sat Jan 18 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-11
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
2020-01-09 12:27:52 +00:00
|
|
|
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-10
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2020-01-08 09:43:58 +00:00
|
|
|
* Wed Jan 08 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-9
|
|
|
|
- Bump and rebuild.
|
|
|
|
|
2020-01-07 21:16:10 +00:00
|
|
|
* Tue Jan 07 2020 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-8
|
|
|
|
- OCaml 4.09.0 for riscv64
|
|
|
|
|
2019-12-05 18:11:02 +00:00
|
|
|
* Thu Dec 05 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-7
|
|
|
|
- Bump and rebuild for fixed ocaml(runtime) dependency.
|
|
|
|
|
2019-12-05 17:46:24 +00:00
|
|
|
* Thu Dec 05 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-6
|
|
|
|
- OCaml 4.09.0 (final) rebuild.
|
|
|
|
|
2019-08-16 09:18:59 +00:00
|
|
|
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-5
|
|
|
|
- OCaml 4.08.1 (final) rebuild.
|
|
|
|
|
2019-07-31 09:10:00 +00:00
|
|
|
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-4
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
2019-07-25 22:56:52 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-27 14:53:44 +00:00
|
|
|
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-2
|
|
|
|
- OCaml 4.08.0 (final) rebuild.
|
|
|
|
|
2019-04-29 14:58:37 +00:00
|
|
|
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-1
|
|
|
|
- New upstream version 0.14.0.
|
2019-04-29 14:48:34 +00:00
|
|
|
- OCaml 4.08.0 (beta 3) rebuild.
|
2019-04-29 14:58:37 +00:00
|
|
|
- Remove the source tarball which was accidentally added to git.
|
2019-04-29 14:48:34 +00:00
|
|
|
|
2019-02-01 16:53:51 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 14:45:56 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-11 10:57:36 +00:00
|
|
|
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.12.0-5
|
|
|
|
- OCaml 4.07.0 (final) rebuild.
|
|
|
|
|
2018-06-19 18:27:16 +00:00
|
|
|
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 0.12.0-4
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
2018-04-26 14:43:58 +00:00
|
|
|
* Thu Apr 26 2018 Richard W.M. Jones <rjones@redhat.com> - 0.12.0-3
|
|
|
|
- OCaml 4.07.0-beta2 rebuild.
|
|
|
|
|
2018-02-08 08:54:19 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-12 10:48:19 +00:00
|
|
|
* Tue Dec 12 2017 Richard W.M. Jones <rjones@redhat.com> - 0.12.0-1
|
|
|
|
- New upstream version 0.12.0.
|
|
|
|
|
2017-11-07 19:12:42 +00:00
|
|
|
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-11
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2017-11-07 19:10:58 +00:00
|
|
|
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-10
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
2017-08-07 11:54:24 +00:00
|
|
|
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-9
|
|
|
|
- Bump and rebuild.
|
|
|
|
|
2017-08-07 11:36:12 +00:00
|
|
|
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-8
|
|
|
|
- Bump and rebuild.
|
|
|
|
|
2017-08-07 10:36:08 +00:00
|
|
|
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-7
|
|
|
|
- OCaml 4.05.0 rebuild.
|
|
|
|
|
2017-08-03 04:17:44 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-31 08:32:16 +00:00
|
|
|
* Mon Jul 31 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-5
|
|
|
|
- Enable debug symbols (-g).
|
|
|
|
|
2017-07-27 01:29:45 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-26 14:12:00 +00:00
|
|
|
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-3
|
|
|
|
- OCaml 4.04.2 rebuild.
|
|
|
|
|
2017-05-11 14:49:02 +00:00
|
|
|
* Thu May 11 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-2
|
|
|
|
- OCaml 4.04.1 rebuild.
|
|
|
|
|
2017-05-10 13:46:36 +00:00
|
|
|
* Wed May 10 2017 Richard W.M. Jones <rjones@redhat.com> - 0.11.0-1
|
|
|
|
- New upstream version 0.11.0.
|
|
|
|
|
2017-02-11 00:33:44 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-04 22:03:57 +00:00
|
|
|
* Fri Nov 04 2016 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-5
|
|
|
|
- New package, ocamlbuild used to be part of ocaml.
|