2022-02-04 19:48:19 +00:00
|
|
|
%undefine _package_note_flags
|
2022-02-09 16:36:31 +00:00
|
|
|
|
2023-03-22 03:32:37 +00:00
|
|
|
%ifnarch %{ocaml_native_compiler}
|
2020-01-14 16:17:20 +00:00
|
|
|
%global debug_package %{nil}
|
2023-03-22 03:32:37 +00:00
|
|
|
%endif
|
2020-01-14 16:17:20 +00:00
|
|
|
|
2022-07-21 01:50:37 +00:00
|
|
|
Name: ocaml-odoc
|
2023-01-09 19:36:09 +00:00
|
|
|
Version: 2.2.0
|
2023-03-22 03:32:37 +00:00
|
|
|
Release: 4%{?dist}
|
2020-01-14 16:17:20 +00:00
|
|
|
Summary: Documentation compiler for OCaml and Reason
|
|
|
|
|
2022-12-12 21:46:11 +00:00
|
|
|
# ISC: The project as a whole
|
2023-01-09 19:36:09 +00:00
|
|
|
# BSD-3-Clause: src/html_support_files/highlight.pack.js
|
2022-12-12 21:46:11 +00:00
|
|
|
License: ISC AND BSD-3-Clause
|
2020-01-14 16:17:20 +00:00
|
|
|
URL: https://github.com/ocaml/odoc
|
2022-07-21 01:50:37 +00:00
|
|
|
Source0: %{url}/archive/%{version}/odoc-%{version}.tar.gz
|
2020-01-14 16:17:20 +00:00
|
|
|
|
2022-07-21 01:50:37 +00:00
|
|
|
BuildRequires: jq
|
2020-01-14 16:17:20 +00:00
|
|
|
BuildRequires: ocaml >= 4.02.0
|
|
|
|
BuildRequires: ocaml-astring-devel
|
2022-02-09 16:36:31 +00:00
|
|
|
BuildRequires: ocaml-bisect-ppx-devel > 2.5.0
|
2022-01-17 17:18:52 +00:00
|
|
|
BuildRequires: ocaml-bos-devel
|
|
|
|
BuildRequires: ocaml-cmdliner-devel >= 1.0.0
|
|
|
|
BuildRequires: ocaml-cppo >= 1.1.0
|
|
|
|
BuildRequires: ocaml-dune >= 2.9.1
|
2020-01-14 16:17:20 +00:00
|
|
|
BuildRequires: ocaml-findlib
|
2022-01-17 17:18:52 +00:00
|
|
|
BuildRequires: ocaml-fmt-devel
|
2020-01-14 16:17:20 +00:00
|
|
|
BuildRequires: ocaml-fpath-devel
|
2022-01-17 17:18:52 +00:00
|
|
|
BuildRequires: ocaml-mdx-devel
|
|
|
|
BuildRequires: ocaml-odoc-parser-devel >= 0.9.0
|
|
|
|
BuildRequires: ocaml-ppx-expect-devel
|
2020-01-14 16:17:20 +00:00
|
|
|
BuildRequires: ocaml-result-devel
|
2022-01-17 17:18:52 +00:00
|
|
|
BuildRequires: ocaml-sexplib0-devel
|
2020-01-14 16:17:20 +00:00
|
|
|
BuildRequires: ocaml-tyxml-devel >= 4.3.0
|
2022-01-17 17:18:52 +00:00
|
|
|
BuildRequires: ocaml-yojson-devel
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
%description
|
2022-02-09 16:36:31 +00:00
|
|
|
This package contains odoc, a documentation generator for OCaml and
|
|
|
|
Reason. It reads doc comments, delimited with `(** ... *)`, and outputs
|
|
|
|
HTML. Text inside doc comments is marked up in ocamldoc syntax.
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
Odoc's main advantage over ocamldoc is an accurate cross-referencer,
|
|
|
|
which handles the complexity of the OCaml module system. Odoc also
|
|
|
|
offers a good opportunity to improve HTML output compared to ocamldoc,
|
|
|
|
but this is very much a work in progress.
|
|
|
|
|
|
|
|
%package devel
|
2022-12-12 21:46:11 +00:00
|
|
|
License: ISC
|
2020-01-14 16:17:20 +00:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2022-01-17 17:18:52 +00:00
|
|
|
Requires: ocaml-fmt-devel%{?_isa}
|
2020-01-16 20:44:27 +00:00
|
|
|
Requires: ocaml-fpath-devel%{?_isa}
|
2022-01-17 17:18:52 +00:00
|
|
|
Requires: ocaml-odoc-parser-devel%{?_isa}
|
2020-01-14 16:17:20 +00:00
|
|
|
Requires: ocaml-result-devel%{?_isa}
|
|
|
|
Requires: ocaml-tyxml-devel%{?_isa}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package doc
|
2022-12-12 21:46:11 +00:00
|
|
|
License: ISC
|
2020-01-14 16:17:20 +00:00
|
|
|
Summary: Documentation for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2022-09-20 17:44:14 +00:00
|
|
|
%autosetup -n odoc-%{version}
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
%build
|
2022-07-21 01:50:37 +00:00
|
|
|
%dune_build @default @doc
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
%install
|
2022-07-21 01:50:37 +00:00
|
|
|
%dune_install
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
# Install the man page
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
_build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1
|
|
|
|
|
2023-01-09 19:36:09 +00:00
|
|
|
# It is no longer possible to run the tests because Fedora lacks ocaml-crunch.
|
|
|
|
#check
|
|
|
|
#dune_check
|
2020-01-14 16:17:20 +00:00
|
|
|
|
2022-07-21 01:50:37 +00:00
|
|
|
%files -f .ofiles
|
2020-01-14 16:17:20 +00:00
|
|
|
%doc CHANGES.md README.md
|
2023-01-09 19:36:09 +00:00
|
|
|
%license LICENSE.md src/html_support_files/LICENSE
|
2020-01-14 16:17:20 +00:00
|
|
|
%{_mandir}/man1/odoc.1*
|
|
|
|
|
2022-07-21 01:50:37 +00:00
|
|
|
%files devel -f .ofiles-devel
|
2020-01-14 16:17:20 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc _build/default/_doc/_html/*
|
|
|
|
%license LICENSE.md
|
|
|
|
|
|
|
|
%changelog
|
2023-03-22 03:32:37 +00:00
|
|
|
* Tue Mar 21 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-4
|
|
|
|
- Re-enable debuginfo now that dune is fixed
|
|
|
|
|
2023-01-24 18:45:45 +00:00
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-3
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
|
2023-01-19 22:15:07 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2023-01-09 19:36:09 +00:00
|
|
|
* Mon Jan 9 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-1
|
|
|
|
- Version 2.2.0
|
|
|
|
- Disable tests due to missing dependency
|
|
|
|
|
2022-12-12 21:46:11 +00:00
|
|
|
* Mon Dec 12 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
|
|
|
|
- Convert License tags to SPDX
|
|
|
|
|
2022-09-20 17:44:14 +00:00
|
|
|
* Thu Sep 15 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
|
|
|
|
- Rebuild for ocaml-cmdliner 1.1.1
|
|
|
|
|
2022-08-02 23:11:43 +00:00
|
|
|
* Tue Aug 2 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-1
|
|
|
|
- Version 2.1.1
|
|
|
|
|
2022-07-22 01:22:51 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-21 01:50:37 +00:00
|
|
|
* Thu Jul 21 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-2
|
|
|
|
- Use new OCaml macros
|
|
|
|
- Add temporary workaround for a failing test
|
|
|
|
|
2022-06-19 11:43:28 +00:00
|
|
|
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 2.1.0-2
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
2022-02-09 16:36:31 +00:00
|
|
|
* Wed Feb 9 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-1
|
|
|
|
- Version 2.1.0
|
|
|
|
- License is ISC, not MIT
|
|
|
|
- Trim BuildRequires
|
|
|
|
|
2022-02-04 19:48:19 +00:00
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.0.2-3
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
2022-01-20 21:50:41 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-17 17:18:52 +00:00
|
|
|
* Mon Jan 17 2022 Jerry James <loganjerry@gmail.com> - 2.0.2-1
|
|
|
|
- Version 2.0.2
|
|
|
|
|
2021-10-05 06:01:39 +00:00
|
|
|
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-2
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
2021-08-11 16:18:53 +00:00
|
|
|
* Wed Aug 11 2021 Jerry James <loganjerry@gmail.com> - 1.5.3-1
|
|
|
|
- Version 1.5.3
|
|
|
|
|
2021-07-29 17:15:22 +00:00
|
|
|
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-8
|
|
|
|
- Rebuild for changed ocamlx(Dynlink)
|
|
|
|
|
2021-07-22 16:43:45 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-22 17:26:53 +00:00
|
|
|
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-6
|
|
|
|
- Rebuild for ocaml-markup 1.0.1
|
|
|
|
|
2021-04-23 14:43:09 +00:00
|
|
|
* Fri Apr 23 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-5
|
|
|
|
- Rebuild for ocaml-tyxml 4.5.0
|
|
|
|
|
2021-03-01 11:32:52 +00:00
|
|
|
* Mon Mar 1 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-4
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
2021-02-02 11:47:33 +00:00
|
|
|
* Tue Feb 2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-3
|
|
|
|
- Bump and rebuild for updated ocaml-camomile dep (RHBZ#1923853).
|
|
|
|
|
2021-01-26 22:02:54 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-02 15:31:44 +00:00
|
|
|
* Wed Dec 2 2020 Jerry James <loganjerry@gmail.com> - 1.5.2-1
|
|
|
|
- Version 1.5.2
|
|
|
|
|
2020-10-23 15:21:07 +00:00
|
|
|
* Fri Oct 23 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-5
|
|
|
|
- Rebuild for ocaml-markup 1.0.0
|
|
|
|
|
2020-09-25 20:53:03 +00:00
|
|
|
* Fri Sep 25 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-4
|
|
|
|
- Rebuild for ocaml-fpath 0.7.3
|
|
|
|
|
2020-09-01 22:47:33 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-3
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
2020-08-21 18:33:21 +00:00
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-2
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
2020-08-05 17:02:25 +00:00
|
|
|
* Wed Aug 5 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-1
|
|
|
|
- Version 1.5.1
|
|
|
|
- Drop upstreamed odoc-1.5.0-ocaml411.patch
|
|
|
|
|
2020-08-01 06:40:36 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 12:14:54 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-05 14:26:55 +00:00
|
|
|
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-5
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-22 10:26:47 +00:00
|
|
|
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-4
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-04 12:54:42 +00:00
|
|
|
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-3
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 19:54:44 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-02-07 22:30:49 +00:00
|
|
|
* Fri Feb 7 2020 Jerry James <loganjerry@gmail.com> - 1.5.0-1
|
|
|
|
- Version 1.5.0
|
|
|
|
- Drop all patches
|
|
|
|
|
2020-02-01 15:16:44 +00:00
|
|
|
* Sat Feb 1 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-3
|
|
|
|
- Add 3 patches for OCaml 4.10 compatibility
|
|
|
|
|
2020-01-29 19:41:32 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-16 20:44:27 +00:00
|
|
|
* Thu Jan 16 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-2
|
|
|
|
- Remove some BRs needed only for transitive dependencies
|
|
|
|
- Add ocaml-astring-devel and ocaml-fpath-devel Rs to -devel
|
|
|
|
- Build in parallel
|
|
|
|
|
2020-01-14 16:17:20 +00:00
|
|
|
* Fri Jan 10 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-1
|
|
|
|
- Initial RPM
|