Blame ocaml-odoc.spec

b32ff7d
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
b32ff7d
ExcludeArch: %{ix86}
b32ff7d
77bd7b4
Name:           ocaml-odoc
e14c733
Version:        2.2.0
06a262d
Release:        6%{?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
c147e33
URL:            https://github.com/ocaml/odoc
77bd7b4
Source0:        %{url}/archive/%{version}/odoc-%{version}.tar.gz
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
7ca752d
BuildRequires:  ocaml-cmdliner-devel >= 1.0.0
7ca752d
BuildRequires:  ocaml-cppo >= 1.1.0
7ca752d
BuildRequires:  ocaml-dune >= 2.9.1
c147e33
BuildRequires:  ocaml-findlib
7ca752d
BuildRequires:  ocaml-fmt-devel
c147e33
BuildRequires:  ocaml-fpath-devel
7ca752d
BuildRequires:  ocaml-mdx-devel
7ca752d
BuildRequires:  ocaml-odoc-parser-devel >= 0.9.0
7ca752d
BuildRequires:  ocaml-ppx-expect-devel
c147e33
BuildRequires:  ocaml-result-devel
7ca752d
BuildRequires:  ocaml-sexplib0-devel
c147e33
BuildRequires:  ocaml-tyxml-devel >= 4.3.0
7ca752d
BuildRequires:  ocaml-yojson-devel
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}
7ca752d
Requires:       ocaml-fmt-devel%{?_isa}
9cf2e7f
Requires:       ocaml-fpath-devel%{?_isa}
7ca752d
Requires:       ocaml-odoc-parser-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
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
77bd7b4
%dune_build @default @doc
c147e33
c147e33
%install
77bd7b4
%dune_install
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
e14c733
# It is no longer possible to run the tests because Fedora lacks ocaml-crunch.
e14c733
#check
e14c733
#dune_check
c147e33
77bd7b4
%files -f .ofiles
c147e33
%doc CHANGES.md README.md
e14c733
%license LICENSE.md src/html_support_files/LICENSE
c147e33
%{_mandir}/man1/odoc.1*
c147e33
77bd7b4
%files devel -f .ofiles-devel
c147e33
c147e33
%files doc
c147e33
%doc _build/default/_doc/_html/*
c147e33
%license LICENSE.md
c147e33
c147e33
%changelog
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