Compare commits

...

37 Commits
f32 ... rawhide

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
Jerry James 7a22bb8d93 Rebuild for ocaml-tyxml 4.5.0. 2021-04-23 08:43:09 -06:00
Richard W.M. Jones aab61fc64d OCaml 4.12.0 build 2021-03-01 11:32:52 +00:00
Richard W.M. Jones ababe4f5c5 Bump and rebuild for updated ocaml-camomile dep (RHBZ#1923853). 2021-02-02 11:47:33 +00:00
Fedora Release Engineering e5968893bf - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 22:02:54 +00:00
Jerry James 3dc21764eb Version 1.5.2. 2020-12-02 08:31:44 -07:00
Jerry James a5c40df6a4 Rebuild for ocaml-markup 1.0.0. 2020-10-23 09:21:07 -06:00
Jerry James e0f982d767 Rebuild for ocaml-fpath 0.7.3. 2020-09-25 14:53:03 -06:00
Richard W.M. Jones 8940201e55 OCaml 4.11.1 rebuild 2020-09-01 23:47:33 +01:00
Richard W.M. Jones d137e231aa OCaml 4.11.0 rebuild 2020-08-21 19:33:21 +01:00
Jerry James 1db73ee5d5 Version 1.5.1. Drop upstreamed odoc-1.5.0-ocaml411.patch. 2020-08-05 11:02:25 -06:00
Fedora Release Engineering 0cd71776c7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 06:40:36 +00:00
Fedora Release Engineering f6c1968802 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:14:54 +00:00
Richard W.M. Jones 127418a5c8 OCaml 4.11.0+dev2-2020-04-22 rebuild 2020-05-05 15:26:55 +01:00
Richard W.M. Jones b4fbe520d3 Add a fixed patch which only touches the required files.
Sorry, previous patch was a mess.
2020-04-22 14:18:05 +01:00
Richard W.M. Jones 67c27b5060 Misc fixes for OCaml 4.11, sent upstream. 2020-04-22 14:15:55 +01:00
Richard W.M. Jones e28b20ee5b OCaml 4.11.0 pre-release attempt 2 2020-04-22 11:26:47 +01:00
Richard W.M. Jones 86eb7a0865 Update all OCaml dependencies for RPM 4.16. 2020-04-04 13:54:42 +01:00
4 changed files with 156 additions and 93 deletions

View File

@ -1,3 +1,12 @@
# ocaml-odoc # 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,38 +1,43 @@
%undefine _package_note_flags
%ifnarch %{ocaml_native_compiler} %ifnarch %{ocaml_native_compiler}
%global debug_package %{nil} %global debug_package %{nil}
%endif %endif
%global srcname odoc Name: ocaml-odoc
Version: 2.2.0
Name: ocaml-%{srcname} Release: 4%{?dist}
Version: 1.5.0
Release: 2%{?dist}
Summary: Documentation compiler for OCaml and Reason 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 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 >= 4.02.0
BuildRequires: ocaml-alcotest-devel >= 0.8.3
BuildRequires: ocaml-astring-devel BuildRequires: ocaml-astring-devel
BuildRequires: ocaml-bisect-ppx-devel >= 1.3.0 BuildRequires: ocaml-bisect-ppx-devel > 2.5.0
BuildRequires: ocaml-cmdliner-devel BuildRequires: ocaml-bos-devel
BuildRequires: ocaml-cppo BuildRequires: ocaml-cmdliner-devel >= 1.0.0
BuildRequires: ocaml-dune BuildRequires: ocaml-cppo >= 1.1.0
BuildRequires: ocaml-dune >= 2.9.1
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
BuildRequires: ocaml-fmt-devel
BuildRequires: ocaml-fpath-devel BuildRequires: ocaml-fpath-devel
BuildRequires: ocaml-markup-devel >= 0.8.0 BuildRequires: ocaml-mdx-devel
BuildRequires: ocaml-odoc-parser-devel >= 0.9.0
BuildRequires: ocaml-ppx-expect-devel
BuildRequires: ocaml-result-devel BuildRequires: ocaml-result-devel
BuildRequires: ocaml-sexplib-devel BuildRequires: ocaml-sexplib0-devel
BuildRequires: ocaml-tyxml-devel >= 4.3.0 BuildRequires: ocaml-tyxml-devel >= 4.3.0
BuildRequires: ocaml-uuidm-devel BuildRequires: ocaml-yojson-devel
BuildRequires: tidy
%description %description
This package contains odoc, a documentation generator for OCaml. It This package contains odoc, a documentation generator for OCaml and
reads doc comments, delimited with `(** ... *)`, and outputs HTML. Text Reason. It reads doc comments, delimited with `(** ... *)`, and outputs
inside doc comments is marked up in ocamldoc syntax. HTML. Text inside doc comments is marked up in ocamldoc syntax.
Odoc's main advantage over ocamldoc is an accurate cross-referencer, Odoc's main advantage over ocamldoc is an accurate cross-referencer,
which handles the complexity of the OCaml module system. Odoc also which handles the complexity of the OCaml module system. Odoc also
@ -40,10 +45,12 @@ offers a good opportunity to improve HTML output compared to ocamldoc,
but this is very much a work in progress. but this is very much a work in progress.
%package devel %package devel
License: ISC
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: ocaml-astring-devel%{?_isa} Requires: ocaml-fmt-devel%{?_isa}
Requires: ocaml-fpath-devel%{?_isa} Requires: ocaml-fpath-devel%{?_isa}
Requires: ocaml-odoc-parser-devel%{?_isa}
Requires: ocaml-result-devel%{?_isa} Requires: ocaml-result-devel%{?_isa}
Requires: ocaml-tyxml-devel%{?_isa} Requires: ocaml-tyxml-devel%{?_isa}
@ -52,6 +59,7 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}. developing applications that use %{name}.
%package doc %package doc
License: ISC
Summary: Documentation for %{name} Summary: Documentation for %{name}
BuildArch: noarch BuildArch: noarch
@ -59,85 +67,142 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %prep
%autosetup -n %{srcname}-%{version} -p1 %autosetup -n odoc-%{version}
# The opam file has not been updated since the great renumbering.
sed -i 's/113\.33\.00/0.13.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
%build %build
dune build %{?_smp_mflags} %dune_build @default @doc
dune build %{?_smp_mflags} @doc
%install %install
dune install --destdir=%{buildroot} %dune_install
# 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
%ifarch %{ocaml_native_compiler}
# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+
%endif
# Install the man page # Install the man page
mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
_build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1 _build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1
%check # It is no longer possible to run the tests because Fedora lacks ocaml-crunch.
dune runtest #check
#dune_check
%files %files -f .ofiles
%doc CHANGES.md README.md %doc CHANGES.md README.md
%license LICENSE.md %license LICENSE.md src/html_support_files/LICENSE
%{_bindir}/odoc
%{_datadir}/odoc/
%{_mandir}/man1/odoc.1* %{_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 %files devel -f .ofiles-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 doc %files doc
%doc _build/default/_doc/_html/* %doc _build/default/_doc/_html/*
%license LICENSE.md %license LICENSE.md
%changelog %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
* Mon Mar 1 2021 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-4
- OCaml 4.12.0 build
* 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).
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Dec 2 2020 Jerry James <loganjerry@gmail.com> - 1.5.2-1
- Version 1.5.2
* Fri Oct 23 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-5
- Rebuild for ocaml-markup 1.0.0
* Fri Sep 25 2020 Jerry James <loganjerry@gmail.com> - 1.5.1-4
- Rebuild for ocaml-fpath 0.7.3
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-3
- OCaml 4.11.1 rebuild
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-2
- OCaml 4.11.0 rebuild
* 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
* 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
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-5
- OCaml 4.11.0+dev2-2020-04-22 rebuild
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-4
- OCaml 4.11.0 pre-release attempt 2
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-3
- Update all OCaml dependencies for RPM 4.16.
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2 * Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2
- OCaml 4.10.0 final. - OCaml 4.10.0 final.

View File

@ -1 +1 @@
SHA512 (odoc-1.5.0.tar.gz) = 2facdb46f656b7aa6071035777aa87f9cc02a57cb2d182af56a1d0fd1edb57d760eac658017fa8c3b4ecbe3fe902545fadc1ae9c185a2d8c29bf6a228ac9ca29 SHA512 (odoc-2.2.0.tar.gz) = 1f1b0f00bef5b4a01b25823dc71ccba4a0425ba950042636dbb2140d16df87eff185d3c6c213263878bb997708e81d60d7f34ec980bf48a7e7e745f620521c57