2022-02-04 19:36:24 +00:00
|
|
|
%undefine _package_note_flags
|
2022-07-08 15:12:02 +00:00
|
|
|
|
2022-01-07 18:27:42 +00:00
|
|
|
%ifnarch %{ocaml_native_compiler}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
2022-07-08 15:12:02 +00:00
|
|
|
Name: ocaml-mdx
|
2023-01-09 19:23:39 +00:00
|
|
|
Version: 2.2.0
|
|
|
|
Release: 1%{?dist}
|
2022-01-07 18:27:42 +00:00
|
|
|
Summary: Executable code blocks inside markdown files
|
|
|
|
|
|
|
|
License: ISC
|
|
|
|
URL: https://realworldocaml.github.io/mdx/
|
2022-07-08 15:12:02 +00:00
|
|
|
Source0: https://github.com/realworldocaml/mdx/releases/download/%{version}/mdx-%{version}.tbz
|
2022-01-07 18:27:42 +00:00
|
|
|
|
|
|
|
BuildRequires: ocaml >= 4.08.0
|
|
|
|
BuildRequires: ocaml-alcotest-devel
|
|
|
|
BuildRequires: ocaml-astring-devel
|
2022-09-20 17:33:29 +00:00
|
|
|
BuildRequires: ocaml-cmdliner-devel >= 1.1.0
|
2022-02-03 23:56:42 +00:00
|
|
|
BuildRequires: ocaml-cppo >= 1.1.0
|
2022-01-07 18:27:42 +00:00
|
|
|
BuildRequires: ocaml-csexp-devel >= 1.3.2
|
2023-01-09 19:23:39 +00:00
|
|
|
BuildRequires: ocaml-dune >= 3.5
|
2022-01-07 18:27:42 +00:00
|
|
|
BuildRequires: ocaml-fmt-devel >= 0.8.7
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-logs-devel >= 0.7.0
|
|
|
|
BuildRequires: ocaml-lwt-devel
|
2022-02-03 23:56:42 +00:00
|
|
|
BuildRequires: ocaml-odoc-parser-devel >= 1.0.0
|
2022-01-07 18:27:42 +00:00
|
|
|
BuildRequires: ocaml-re-devel >= 1.7.2
|
|
|
|
BuildRequires: ocaml-version-devel >= 2.3.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
mdx enables execution of code blocks inside markdown files. There are
|
|
|
|
(currently) two sub-commands, corresponding to two modes of operation:
|
|
|
|
preprocessing (`ocaml-mdx pp`) and tests (`ocaml-mdx test`).
|
|
|
|
|
|
|
|
The preprocessor mode enables mixing documentation and code, and the
|
|
|
|
practice of "literate programming" using markdown and OCaml.
|
|
|
|
|
|
|
|
The test mode enables ensuring that shell scripts and OCaml fragments in
|
|
|
|
the documentation always stay up-to-date.
|
|
|
|
|
|
|
|
The blocks in markdown files can be parameterized by `mdx`-specific
|
|
|
|
labels, that will change the way `mdx` interprets the block. The syntax
|
|
|
|
is: `<!-- $MDX labels -->`, where `labels` is a list of valid labels
|
|
|
|
separated by a comma. This line must immediately precede the block it
|
|
|
|
is attached to.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: ocaml-astring-devel%{?_isa}
|
|
|
|
Requires: ocaml-csexp-devel%{?_isa}
|
|
|
|
Requires: ocaml-fmt-devel%{?_isa}
|
|
|
|
Requires: ocaml-logs-devel%{?_isa}
|
|
|
|
Requires: ocaml-odoc-parser-devel%{?_isa}
|
|
|
|
Requires: ocaml-re-devel%{?_isa}
|
|
|
|
Requires: ocaml-version-devel%{?_isa}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature
|
|
|
|
files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2022-07-08 15:12:02 +00:00
|
|
|
%autosetup -n mdx-%{version} -p1
|
2022-01-07 18:27:42 +00:00
|
|
|
|
|
|
|
%build
|
2022-07-08 15:12:02 +00:00
|
|
|
%dune_build
|
2022-01-07 18:27:42 +00:00
|
|
|
|
|
|
|
%install
|
2022-07-08 15:12:02 +00:00
|
|
|
%dune_install
|
2022-01-07 18:27:42 +00:00
|
|
|
|
|
|
|
%check
|
2022-07-08 15:12:02 +00:00
|
|
|
%dune_check
|
2022-01-07 18:27:42 +00:00
|
|
|
|
2022-07-08 15:12:02 +00:00
|
|
|
%files -f .ofiles
|
2022-01-07 18:27:42 +00:00
|
|
|
%doc CHANGES.md README.md
|
|
|
|
%license LICENSE.md
|
|
|
|
|
2022-07-08 15:12:02 +00:00
|
|
|
%files devel -f .ofiles-devel
|
2022-01-07 18:27:42 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-01-09 19:23:39 +00:00
|
|
|
* Mon Jan 9 2023 Jerry James <loganjerry@gmail.com> - 2.2.0-1
|
|
|
|
- Version 2.2.0
|
|
|
|
- Drop cmdliner patch
|
|
|
|
|
2022-09-20 17:33:29 +00:00
|
|
|
* Tue Sep 20 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-7
|
|
|
|
- Add patch to adapt tests to cmdliner 1.1.0
|
|
|
|
|
2022-08-02 23:10:58 +00:00
|
|
|
* Tue Aug 2 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-6
|
|
|
|
- Rebuild for ocaml-odoc-parser 2.0.0
|
|
|
|
|
2022-07-22 01:18:37 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-08 15:12:02 +00:00
|
|
|
* Fri Jul 8 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-4
|
|
|
|
- Rebuild for ocaml-version 3.5.0
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
2022-06-19 11:34:33 +00:00
|
|
|
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 2.1.0-3
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
2022-02-04 19:36:24 +00:00
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 2.1.0-2
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
2022-02-03 23:56:42 +00:00
|
|
|
* Thu Feb 3 2022 Jerry James <loganjerry@gmail.com> - 2.1.0-1
|
|
|
|
- Version 2.1.0
|
|
|
|
|
2022-01-20 21:47:32 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-07 18:27:42 +00:00
|
|
|
* Fri Dec 31 2021 Jerry James <loganjerry@gmail.com> - 2.0.0-1
|
|
|
|
- Initial RPM
|