Blame ocaml-odoc.spec

b32ff7d
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
b32ff7d
ExcludeArch: %{ix86}
b32ff7d
77bd7b4
Name:           ocaml-odoc
30473e0
Version:        2.4.1
d489915
Release:        3%{?dist}
c147e33
Summary:        Documentation compiler for OCaml and Reason
c147e33
c8ab4c0
# ISC: The project as a whole
e14c733
# BSD-3-Clause: src/html_support_files/highlight.pack.js
c8ab4c0
License:        ISC AND BSD-3-Clause
d489915
URL:            https://ocaml.github.io/odoc/
d489915
VCS:            https://github.com/ocaml/odoc
d489915
Source0:        %{vcs}/releases/download/%{version}/odoc-%{version}.tbz
c147e33
77bd7b4
BuildRequires:  jq
c147e33
BuildRequires:  ocaml >= 4.02.0
c147e33
BuildRequires:  ocaml-astring-devel
ee2f770
BuildRequires:  ocaml-bisect-ppx-devel > 2.5.0
7ca752d
BuildRequires:  ocaml-bos-devel
16ee7aa
BuildRequires:  ocaml-camlp-streams-devel
7ca752d
BuildRequires:  ocaml-cmdliner-devel >= 1.0.0
7ca752d
BuildRequires:  ocaml-cppo >= 1.1.0
30473e0
BuildRequires:  ocaml-crunch-devel > 1.1.0
16ee7aa
BuildRequires:  ocaml-dune >= 3.7.0
c147e33
BuildRequires:  ocaml-findlib
7ca752d
BuildRequires:  ocaml-fmt-devel
c147e33
BuildRequires:  ocaml-fpath-devel
7ca752d
BuildRequires:  ocaml-mdx-devel
7ca752d
BuildRequires:  ocaml-ppx-expect-devel
c147e33
BuildRequires:  ocaml-result-devel
7ca752d
BuildRequires:  ocaml-sexplib0-devel
e82b0c5
BuildRequires:  ocaml-tyxml-devel >= 4.4.0
16ee7aa
BuildRequires:  ocaml-yojson-devel >= 1.6.0
16ee7aa
16ee7aa
Requires:       ocaml-odoc-parser%{?_isa} = %{version}-%{release}
c147e33
c147e33
%description
ee2f770
This package contains odoc, a documentation generator for OCaml and
ee2f770
Reason.  It reads doc comments, delimited with `(** ... *)`, and outputs
ee2f770
HTML.  Text inside doc comments is marked up in ocamldoc syntax.
c147e33
c147e33
Odoc's main advantage over ocamldoc is an accurate cross-referencer,
c147e33
which handles the complexity of the OCaml module system.  Odoc also
c147e33
offers a good opportunity to improve HTML output compared to ocamldoc,
c147e33
but this is very much a work in progress.
c147e33
c147e33
%package        devel
c8ab4c0
License:        ISC
c147e33
Summary:        Development files for %{name}
c147e33
Requires:       %{name}%{?_isa} = %{version}-%{release}
16ee7aa
Requires:       %{name}-parser-devel%{?_isa} = %{version}-%{release}
16ee7aa
Requires:       ocaml-astring-devel%{?_isa}
7ca752d
Requires:       ocaml-fmt-devel%{?_isa}
9cf2e7f
Requires:       ocaml-fpath-devel%{?_isa}
c147e33
Requires:       ocaml-result-devel%{?_isa}
c147e33
Requires:       ocaml-tyxml-devel%{?_isa}
c147e33
c147e33
%description    devel
c147e33
The %{name}-devel package contains libraries and signature files for
c147e33
developing applications that use %{name}.
c147e33
16ee7aa
%package        parser
16ee7aa
License:        ISC
16ee7aa
Summary:        Parser for OCaml documentation comments
16ee7aa
16ee7aa
%description    parser
16ee7aa
Odoc-parser is a parser for odoc markup, which is an extension of the
16ee7aa
original markup language parsed by ocamldoc.
16ee7aa
16ee7aa
OCaml code can contain specially formatted comments that are used to
16ee7aa
document the interfaces of modules.  These comments are delimited by
16ee7aa
`(**` and `*)`.  This parser is intended to be used to parse the
16ee7aa
contents of these comments.
16ee7aa
16ee7aa
%package        parser-devel
16ee7aa
Summary:        Development files for %{name}-parser
16ee7aa
Requires:       %{name}-parser%{?_isa} = %{version}-%{release}
16ee7aa
Requires:       ocaml-astring-devel%{?_isa}
16ee7aa
Requires:       ocaml-camlp-streams-devel%{?_isa}
16ee7aa
Requires:       ocaml-result-devel%{?_isa}
16ee7aa
16ee7aa
%description    parser-devel
16ee7aa
The %{name}-parser-devel package contains libraries and signature
16ee7aa
files for developing applications that use %{name}-parser.
16ee7aa
c147e33
%package        doc
c8ab4c0
License:        ISC
c147e33
Summary:        Documentation for %{name}
c147e33
BuildArch:      noarch
c147e33
c147e33
%description    doc
c147e33
Documentation for %{name}.
c147e33
c147e33
%prep
78644af
%autosetup -n odoc-%{version}
c147e33
c147e33
%build
e82b0c5
%dune_build @install @doc
c147e33
c147e33
%install
16ee7aa
%dune_install -s
c147e33
c147e33
# Install the man page
c147e33
mkdir -p %{buildroot}%{_mandir}/man1
c147e33
_build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1
c147e33
e82b0c5
# We don't want the benchmark package
e82b0c5
rm -fr %{buildroot}%{ocamldir}/odoc-bench
e82b0c5
d69e315
%check
d69e315
%dune_check
c147e33
16ee7aa
%files -f .ofiles-odoc
c147e33
%doc CHANGES.md README.md
16ee7aa
%license LICENSE
c147e33
%{_mandir}/man1/odoc.1*
c147e33
16ee7aa
%files devel -f .ofiles-odoc-devel
16ee7aa
16ee7aa
%files parser -f .ofiles-odoc-parser
16ee7aa
%license LICENSE
16ee7aa
16ee7aa
%files parser-devel -f .ofiles-odoc-parser-devel
c147e33
c147e33
%files doc
c147e33
%doc _build/default/_doc/_html/*
16ee7aa
%license LICENSE
c147e33
c147e33
%changelog
d489915
* Fri Feb 23 2024 Jerry James <loganjerry@gmail.com> - 2.4.1-3
d489915
- Rebuild for ocaml-mdx 2.4.0
d489915
bfa7912
* Fri Feb  2 2024 Jerry James <loganjerry@gmail.com> - 2.4.1-2
bfa7912
- Rebuild for changed ocamlx hashes
bfa7912
30473e0
* Thu Jan 25 2024 Jerry James <loganjerry@gmail.com> - 2.4.1-1
30473e0
- Version 2.4.1
30473e0
190096a
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
190096a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
190096a
e5d01f2
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
e5d01f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e5d01f2
528ec43
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 2.4.0-2
528ec43
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
528ec43
e82b0c5
* Wed Dec 13 2023 Jerry James <loganjerry@gmail.com> - 2.4.0-1
e82b0c5
- Version 2.4.0
e82b0c5
cbf1bc8
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 2.3.1-2
cbf1bc8
- OCaml 5.1.1 rebuild for Fedora 40
cbf1bc8
d69e315
* Tue Nov 21 2023 Jerry James <loganjerry@gmail.com> - 2.3.1-1
d69e315
- Version 2.3.1
d69e315
- Build with tests now that crunch is available
d69e315
5646859
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 2.3.0-2
5646859
- OCaml 5.1 rebuild for Fedora 40
5646859
16ee7aa
* Wed Oct  4 2023 Jerry James <loganjerry@gmail.com> - 2.3.0-1
16ee7aa
- Version 2.3.0
16ee7aa
- odoc-parser has been merged back in
16ee7aa
1ff748c
* Tue Aug  8 2023 Jerry James <loganjerry@gmail.com> - 2.2.1-1
1ff748c
- Version 2.2.1
1ff748c
e477f11
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
e477f11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
e477f11
06a262d
* Wed Jul 12 2023 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-6
06a262d
- OCaml 5.0 rebuild for Fedora 39
06a262d
c44ef8c
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-5
c44ef8c
- OCaml 5.0.0 rebuild
c44ef8c
3400f29
* Tue Mar 21 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-4
3400f29
- Re-enable debuginfo now that dune is fixed
3400f29
17ea339
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-3
17ea339
- Rebuild OCaml packages for F38
17ea339
ad14feb
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
ad14feb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ad14feb
e14c733
* Mon Jan  9 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-1
e14c733
- Version 2.2.0
e14c733
- Disable tests due to missing dependency
e14c733
c8ab4c0
* Mon Dec 12 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
c8ab4c0
- Convert License tags to SPDX
c8ab4c0
78644af
* Thu Sep 15 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
78644af
- Rebuild for ocaml-cmdliner 1.1.1
78644af
6cf8f62
* Tue Aug  2 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-1
6cf8f62
- Version 2.1.1
6cf8f62
e8df8a9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
e8df8a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e8df8a9
77bd7b4
* Thu Jul 21 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-2
77bd7b4
- Use new OCaml macros
77bd7b4
- Add temporary workaround for a failing test
77bd7b4
b46d556
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 2.1.0-2
b46d556
- OCaml 4.14.0 rebuild
b46d556
ee2f770
* Wed Feb  9 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-1
ee2f770
- Version 2.1.0
ee2f770
- License is ISC, not MIT
ee2f770
- Trim BuildRequires
ee2f770
67e7c69
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.0.2-3
67e7c69
- OCaml 4.13.1 rebuild to remove package notes
67e7c69
02c360b
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
02c360b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
02c360b
7ca752d
* Mon Jan 17 2022 Jerry James <loganjerry@gmail.com> - 2.0.2-1
7ca752d
- Version 2.0.2
7ca752d
2fb49af
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-2
2fb49af
- OCaml 4.13.1 build
2fb49af
e66368b
* Wed Aug 11 2021 Jerry James <loganjerry@gmail.com> - 1.5.3-1
e66368b
- Version 1.5.3
e66368b
fa66812
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-8
fa66812
- Rebuild for changed ocamlx(Dynlink)
fa66812
0e3c87c
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-7
0e3c87c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0e3c87c
525ec04
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-6
525ec04
- Rebuild for ocaml-markup 1.0.1
525ec04
7a22bb8
* Fri Apr 23 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-5
7a22bb8
- Rebuild for ocaml-tyxml 4.5.0
7a22bb8
aab61fc
* Mon Mar  1 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-4
aab61fc
- OCaml 4.12.0 build
aab61fc
ababe4f
* Tue Feb  2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-3
ababe4f
- Bump and rebuild for updated ocaml-camomile dep (RHBZ#1923853).
ababe4f
e596889
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
e596889
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e596889
3dc2176
* Wed Dec  2 2020 Jerry James <loganjerry@gmail.com> - 1.5.2-1
3dc2176
- Version 1.5.2
3dc2176
a5c40df
* Fri Oct 23 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-5
a5c40df
- Rebuild for ocaml-markup 1.0.0
a5c40df
e0f982d
* Fri Sep 25 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-4
e0f982d
- Rebuild for ocaml-fpath 0.7.3
e0f982d
8940201
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-3
8940201
- OCaml 4.11.1 rebuild
8940201
d137e23
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-2
d137e23
- OCaml 4.11.0 rebuild
d137e23
1db73ee
* Wed Aug  5 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-1
1db73ee
- Version 1.5.1
1db73ee
- Drop upstreamed odoc-1.5.0-ocaml411.patch
1db73ee
0cd7177
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
0cd7177
- Second attempt - Rebuilt for
0cd7177
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0cd7177
f6c1968
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
f6c1968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f6c1968
127418a
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-5
127418a
- OCaml 4.11.0+dev2-2020-04-22 rebuild
127418a
e28b20e
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-4
e28b20e
- OCaml 4.11.0 pre-release attempt 2
e28b20e
86eb7a0
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-3
86eb7a0
- Update all OCaml dependencies for RPM 4.16.
86eb7a0
894ace4
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2
894ace4
- OCaml 4.10.0 final.
894ace4
267f0f5
* Fri Feb  7 2020 Jerry James <loganjerry@gmail.com> - 1.5.0-1
267f0f5
- Version 1.5.0
267f0f5
- Drop all patches
267f0f5
18240f7
* Sat Feb  1 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-3
18240f7
- Add 3 patches for OCaml 4.10 compatibility
18240f7
6c70770
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
6c70770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6c70770
9cf2e7f
* Thu Jan 16 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-2
9cf2e7f
- Remove some BRs needed only for transitive dependencies
9cf2e7f
- Add ocaml-astring-devel and ocaml-fpath-devel Rs to -devel
9cf2e7f
- Build in parallel
9cf2e7f
c147e33
* Fri Jan 10 2020 Jerry James <loganjerry@gmail.com> - 1.4.2-1
c147e33
- Initial RPM