Compare commits

...

20 Commits

Author SHA1 Message Date
Jerry James 3400f290ba Re-enable debuginfo now that dune is fixed 2023-03-21 21:32:37 -06:00
Richard W.M. Jones e85b3d4430 Disable debuginfo generation
RPM build errors:
error: Empty %files file /builddir/build/BUILD/odoc-2.2.0/debugsourcefiles.list
    Empty %files file /builddir/build/BUILD/odoc-2.2.0/debugsourcefiles.list
Child return code was: 1
2023-01-24 18:55:43 +00:00
Richard W.M. Jones 17ea33955e Rebuild OCaml packages for F38 2023-01-24 18:45:45 +00:00
Fedora Release Engineering ad14febc8b Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:15:07 +00:00
Jerry James e14c733a51 Version 2.2.0. Disable tests due to missing dependency. 2023-01-09 12:36:09 -07:00
Jerry James c8ab4c09d6 Convert License tags to SPDX. 2022-12-12 14:46:11 -07:00
Jerry James 78644af477 Rebuild for ocaml-cmdliner 1.1.1. 2022-09-20 11:44:14 -06:00
Jerry James 6cf8f626ba Version 2.1.1. 2022-08-02 17:11:43 -06:00
Fedora Release Engineering e8df8a95b7 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 01:22:51 +00:00
Jerry James 77bd7b49c5 Use new OCaml macros.
Add temporary workaround for a failing test.
2022-07-20 19:50:37 -06:00
Richard W.M. Jones b46d556ee4 OCaml 4.14.0 rebuild 2022-06-19 12:43:28 +01:00
Jerry James ee2f770464 Version 2.1.0.
- License is ISC, not MIT.
- Trim BuildRequires.
2022-02-09 09:36:31 -07:00
Richard W.M. Jones 67e7c69d4e OCaml 4.13.1 rebuild to remove package notes 2022-02-04 19:48:19 +00:00
Fedora Release Engineering 02c360b9d6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 21:50:41 +00:00
Jerry James 7ca752d671 Version 2.0.2. 2022-01-17 10:18:52 -07:00
Richard W.M. Jones 2fb49af919 OCaml 4.13.1 build 2021-10-05 07:01:39 +01:00
Jerry James e66368bcbb Version 1.5.3. 2021-08-11 10:18:53 -06:00
Jerry James fa66812925 Rebuild for changed ocamlx(Dynlink). 2021-07-29 11:15:22 -06:00
Fedora Release Engineering 0e3c87c2c2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 16:43:45 +00:00
Jerry James 525ec04351 Rebuild for ocaml-markup 1.0.1. 2021-06-22 11:26:53 -06:00
4 changed files with 109 additions and 87 deletions

View File

@ -1,3 +1,12 @@
# ocaml-odoc
The ocaml-odoc package
This package contains [odoc](https://github.com/ocaml/odoc), a documentation
generator for [OCaml](https://ocaml.org/) and
[Reason](https://reasonml.github.io/). It reads doc comments, delimited with
`(** ... *)`, and outputs HTML. Text inside doc comments is marked up in
[ocamldoc syntax](https://ocaml.org/manual/ocamldoc.html).
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.

View File

@ -1,11 +0,0 @@
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
# The dictionary is missing some technical terms
addFilter(r'W: spelling-error .* (ocamldoc|referencer)')
# OCaml does this to us. We have no control over it.
addFilter(r'ocaml-odoc\.[^:]+: E: missing-call-to-chdir-with-chroot')
# Documentation is in the doc subpackage
addFilter(r'ocaml-odoc-devel\.[^:]+: W: no-documentation')

View File

@ -1,37 +1,43 @@
%undefine _package_note_flags
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif
%global srcname odoc
Name: ocaml-%{srcname}
Version: 1.5.2
Release: 5%{?dist}
Name: ocaml-odoc
Version: 2.2.0
Release: 4%{?dist}
Summary: Documentation compiler for OCaml and Reason
License: MIT
# ISC: The project as a whole
# BSD-3-Clause: src/html_support_files/highlight.pack.js
License: ISC AND BSD-3-Clause
URL: https://github.com/ocaml/odoc
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Source0: %{url}/archive/%{version}/odoc-%{version}.tar.gz
BuildRequires: jq
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-alcotest-devel >= 0.8.3
BuildRequires: ocaml-astring-devel
BuildRequires: ocaml-bisect-ppx-devel >= 1.3.0
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-cppo
BuildRequires: ocaml-dune
BuildRequires: ocaml-bisect-ppx-devel > 2.5.0
BuildRequires: ocaml-bos-devel
BuildRequires: ocaml-cmdliner-devel >= 1.0.0
BuildRequires: ocaml-cppo >= 1.1.0
BuildRequires: ocaml-dune >= 2.9.1
BuildRequires: ocaml-findlib
BuildRequires: ocaml-fmt-devel
BuildRequires: ocaml-fpath-devel
BuildRequires: ocaml-markup-devel >= 1.0.0
BuildRequires: ocaml-mdx-devel
BuildRequires: ocaml-odoc-parser-devel >= 0.9.0
BuildRequires: ocaml-ppx-expect-devel
BuildRequires: ocaml-result-devel
BuildRequires: ocaml-sexplib-devel >= 0.14.0
BuildRequires: ocaml-sexplib0-devel
BuildRequires: ocaml-tyxml-devel >= 4.3.0
BuildRequires: tidy
BuildRequires: ocaml-yojson-devel
%description
This package contains odoc, a documentation generator for OCaml. It
reads doc comments, delimited with `(** ... *)`, and outputs HTML. Text
inside doc comments is marked up in ocamldoc syntax.
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.
Odoc's main advantage over ocamldoc is an accurate cross-referencer,
which handles the complexity of the OCaml module system. Odoc also
@ -39,10 +45,12 @@ offers a good opportunity to improve HTML output compared to ocamldoc,
but this is very much a work in progress.
%package devel
License: ISC
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: ocaml-astring-devel%{?_isa}
Requires: ocaml-fmt-devel%{?_isa}
Requires: ocaml-fpath-devel%{?_isa}
Requires: ocaml-odoc-parser-devel%{?_isa}
Requires: ocaml-result-devel%{?_isa}
Requires: ocaml-tyxml-devel%{?_isa}
@ -51,6 +59,7 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%package doc
License: ISC
Summary: Documentation for %{name}
BuildArch: noarch
@ -58,80 +67,95 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%autosetup -n %{srcname}-%{version} -p1
# The opam file has not been updated since the great renumbering.
sed -i 's/113\.33\.00/0.14.0/' odoc.opam
# Replace version markers
for fil in src/html/tree.ml $(find test -name index.html -o -name mld.html); do
sed -i.orig 's,%%%%VERSION%%%%,%{version},' $fil
touch -r $fil.orig $fil
rm $fil.orig
done
%autosetup -n odoc-%{version}
%build
dune build %{?_smp_mflags}
dune build %{?_smp_mflags} @doc
%dune_build @default @doc
%install
dune install --destdir=%{buildroot}
# We do not want the test files
rm -fr %{buildroot}%{_libdir}/ocaml/dune_odoc_test
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc
%dune_install
# Install the man page
mkdir -p %{buildroot}%{_mandir}/man1
_build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1
%check
dune runtest
# It is no longer possible to run the tests because Fedora lacks ocaml-crunch.
#check
#dune_check
%files
%files -f .ofiles
%doc CHANGES.md README.md
%license LICENSE.md
%{_bindir}/odoc
%{_datadir}/odoc/
%license LICENSE.md src/html_support_files/LICENSE
%{_mandir}/man1/odoc.1*
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/compat/
%dir %{_libdir}/ocaml/%{srcname}/html/
%dir %{_libdir}/ocaml/%{srcname}/loader/
%dir %{_libdir}/ocaml/%{srcname}/model/
%dir %{_libdir}/ocaml/%{srcname}/odoc/
%dir %{_libdir}/ocaml/%{srcname}/parser/
%dir %{_libdir}/ocaml/%{srcname}/xref/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*/*.cma
%{_libdir}/ocaml/%{srcname}/*/*.cmi
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/%{srcname}/*/*.cmxs
%endif
%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/%{srcname}/*/*.a
%{_libdir}/ocaml/%{srcname}/*/*.cmx
%{_libdir}/ocaml/%{srcname}/*/*.cmxa
%endif
%{_libdir}/ocaml/%{srcname}/*/*.cmt
%{_libdir}/ocaml/%{srcname}/*/*.cmti
%{_libdir}/ocaml/%{srcname}/*/*.ml
%{_libdir}/ocaml/%{srcname}/*/*.mli
%files devel -f .ofiles-devel
%files doc
%doc _build/default/_doc/_html/*
%license LICENSE.md
%changelog
* Tue Mar 21 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-4
- Re-enable debuginfo now that dune is fixed
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-3
- Rebuild OCaml packages for F38
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Jan 9 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-1
- Version 2.2.0
- Disable tests due to missing dependency
* Mon Dec 12 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
- Convert License tags to SPDX
* Thu Sep 15 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-2
- Rebuild for ocaml-cmdliner 1.1.1
* Tue Aug 2 2022 Jerry James <loganjerry@gmail.com> - 2.1.1-1
- Version 2.1.1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jul 21 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-2
- Use new OCaml macros
- Add temporary workaround for a failing test
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 2.1.0-2
- OCaml 4.14.0 rebuild
* Wed Feb 9 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-1
- Version 2.1.0
- License is ISC, not MIT
- Trim BuildRequires
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.0.2-3
- OCaml 4.13.1 rebuild to remove package notes
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Jan 17 2022 Jerry James <loganjerry@gmail.com> - 2.0.2-1
- Version 2.0.2
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-2
- OCaml 4.13.1 build
* Wed Aug 11 2021 Jerry James <loganjerry@gmail.com> - 1.5.3-1
- Version 1.5.3
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-8
- Rebuild for changed ocamlx(Dynlink)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-6
- Rebuild for ocaml-markup 1.0.1
* Fri Apr 23 2021 Jerry James <loganjerry@gmail.com> - 1.5.2-5
- Rebuild for ocaml-tyxml 4.5.0

View File

@ -1 +1 @@
SHA512 (odoc-1.5.2.tar.gz) = 062479b8188ff2b52541795c0b3ab75fc8747e5d918c12a27490e0eebeccf56af7c3187014828944acf7f7ec394fcae48897219e7318265bf0be2a44a196c723
SHA512 (odoc-2.2.0.tar.gz) = 1f1b0f00bef5b4a01b25823dc71ccba4a0425ba950042636dbb2140d16df87eff185d3c6c213263878bb997708e81d60d7f34ec980bf48a7e7e745f620521c57