| |
@@ -1,40 +1,24 @@
|
| |
%undefine _package_note_flags
|
| |
+
|
| |
%ifnarch %{ocaml_native_compiler}
|
| |
%global debug_package %{nil}
|
| |
%endif
|
| |
|
| |
- %global srcname ounit
|
| |
-
|
| |
- # -doc subpackage requires ocaml-odoc which has rather a lot of
|
| |
- # dependencies. This flag allows the non-essential subpackage to be
|
| |
- # enabled.
|
| |
- %bcond_with doc
|
| |
-
|
| |
- Name: ocaml-%{srcname}
|
| |
- Version: 2.2.4
|
| |
- Release: 9%{?dist}
|
| |
+ Name: ocaml-ounit
|
| |
+ Version: 2.2.6
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Unit test framework for OCaml
|
| |
|
| |
License: MIT
|
| |
URL: https://github.com/gildor478/ounit
|
| |
- Source0: %{url}/releases/download/v%{version}/%{srcname}-v%{version}.tbz
|
| |
+ Source0: %{url}/releases/download/v%{version}/ounit-%{version}.tbz
|
| |
|
| |
# Remove stdlib-shims downstream. Not needed in Fedora.
|
| |
Patch0001: 0001-Remove-stdlib-shims.patch
|
| |
|
| |
- # https://github.com/gildor478/ounit/issues/85
|
| |
- Patch0002: ounit-v2.2.4-remove-Thread-kill.patch
|
| |
-
|
| |
- BuildRequires: ocaml >= 4.02.3
|
| |
+ BuildRequires: ocaml >= 4.04.0
|
| |
BuildRequires: ocaml-dune >= 1.11.0
|
| |
- BuildRequires: ocaml-findlib
|
| |
BuildRequires: ocaml-lwt-devel
|
| |
- BuildRequires: ocaml-mmap-devel
|
| |
- BuildRequires: ocaml-ocplib-endian-devel
|
| |
- %if %{with doc}
|
| |
- BuildRequires: ocaml-odoc
|
| |
- %endif
|
| |
- BuildRequires: ocaml-result-devel
|
| |
|
| |
# The ounit name is now just an alias for ounit2
|
| |
Provides: %{name}2 = %{version}-%{release}
|
| |
@@ -48,7 +32,7 @@
|
| |
|
| |
%package devel
|
| |
Summary: Development files for %{name}
|
| |
- Requires: %{name} = %{version}-%{release}
|
| |
+ Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
Provides: %{name}2-devel = %{version}-%{release}
|
| |
|
| |
|
| |
@@ -59,7 +43,7 @@
|
| |
|
| |
%package lwt
|
| |
Summary: Helper functions for building Lwt tests using OUnit
|
| |
- Requires: %{name} = %{version}-%{release}
|
| |
+ Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
Provides: %{name}2-lwt = %{version}-%{release}
|
| |
|
| |
|
| |
@@ -70,8 +54,8 @@
|
| |
|
| |
%package lwt-devel
|
| |
Summary: Development files for %{name}-lwt
|
| |
- Requires: %{name}-devel = %{version}-%{release}
|
| |
- Requires: %{name}-lwt = %{version}-%{release}
|
| |
+ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
| |
+ Requires: %{name}-lwt%{?_isa} = %{version}-%{release}
|
| |
Requires: ocaml-lwt-devel%{?_isa}
|
| |
Provides: %{name}2-lwt-devel = %{version}-%{release}
|
| |
|
| |
@@ -81,125 +65,55 @@
|
| |
files for developing applications that use %{name}-lwt.
|
| |
|
| |
|
| |
- %package doc
|
| |
- Summary: Documentation for %{name}
|
| |
- BuildArch: noarch
|
| |
-
|
| |
-
|
| |
- %description doc
|
| |
- Documentation for %{name}.
|
| |
-
|
| |
-
|
| |
%prep
|
| |
- %autosetup -n %{srcname}-v%{version} -p1
|
| |
+ %autosetup -n ounit-%{version} -p1
|
| |
|
| |
|
| |
%build
|
| |
- dune build %{?_smp_mflags} --profile release
|
| |
- %if %{with doc}
|
| |
- dune build %{?_smp_mflags} @doc --profile release
|
| |
- %endif
|
| |
+ %dune_build
|
| |
|
| |
|
| |
%check
|
| |
# Disabled on s390(x) because:
|
| |
# https://github.com/gildor478/ounit/issues/18
|
| |
%ifnarch s390 s390x
|
| |
- dune runtest --profile release
|
| |
+ %dune_check
|
| |
%endif
|
| |
|
| |
|
| |
%install
|
| |
- dune install --destdir=%{buildroot} --profile release
|
| |
-
|
| |
- %if %{with doc}
|
| |
- # We do not want the dune markers
|
| |
- find _build/default/_doc/_html -name .dune-keep -delete
|
| |
- %endif
|
| |
-
|
| |
- # We install the documentation with the doc macro
|
| |
- rm -fr %{buildroot}%{_prefix}/doc
|
| |
+ %dune_install -s
|
| |
|
| |
|
| |
- %files
|
| |
+ %files -f .ofiles-ounit2
|
| |
%doc CHANGES.md README.md
|
| |
%license LICENSE.txt
|
| |
- %dir %{_libdir}/ocaml/%{srcname}/
|
| |
- %dir %{_libdir}/ocaml/%{srcname}2/
|
| |
- %dir %{_libdir}/ocaml/%{srcname}2/advanced/
|
| |
- %dir %{_libdir}/ocaml/%{srcname}2/threads/
|
| |
- %{_libdir}/ocaml/%{srcname}2/threads/.private/
|
| |
- %{_libdir}/ocaml/%{srcname}/META
|
| |
- %{_libdir}/ocaml/%{srcname}2/META
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cma
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmi
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cma
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmi
|
| |
- %ifarch %{ocaml_native_compiler}
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmxs
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmxs
|
| |
- %endif
|
| |
+ %dir %{ocamldir}/ounit/
|
| |
+ %{ocamldir}/ounit/META
|
| |
|
| |
|
| |
- %files devel
|
| |
- %{_libdir}/ocaml/%{srcname}/dune-package
|
| |
- %{_libdir}/ocaml/%{srcname}/opam
|
| |
- %{_libdir}/ocaml/%{srcname}2/dune-package
|
| |
- %{_libdir}/ocaml/%{srcname}2/opam
|
| |
- %ifarch %{ocaml_native_compiler}
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.a
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmx
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmxa
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.a
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmx
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmxa
|
| |
- %endif
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmt
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.cmti
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.ml
|
| |
- %{_libdir}/ocaml/%{srcname}2/*.mli
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmt
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.cmti
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.ml
|
| |
- %{_libdir}/ocaml/%{srcname}2/*/*.mli
|
| |
-
|
| |
-
|
| |
- %files lwt
|
| |
- %dir %{_libdir}/ocaml/%{srcname}-lwt/
|
| |
- %dir %{_libdir}/ocaml/%{srcname}2-lwt/
|
| |
- %{_libdir}/ocaml/%{srcname}-lwt/META
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/META
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cma
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmi
|
| |
- %ifarch %{ocaml_native_compiler}
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmxs
|
| |
- %endif
|
| |
+ %files devel -f .ofiles-ounit2-devel
|
| |
+ %{ocamldir}/ounit/dune-package
|
| |
+ %{ocamldir}/ounit/opam
|
| |
|
| |
|
| |
- %files lwt-devel
|
| |
- %{_libdir}/ocaml/%{srcname}-lwt/dune-package
|
| |
- %{_libdir}/ocaml/%{srcname}-lwt/opam
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/dune-package
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/opam
|
| |
- %ifarch %{ocaml_native_compiler}
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.a
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmx
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmxa
|
| |
- %endif
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmt
|
| |
- %{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.ml
|
| |
+ %files lwt -f .ofiles-ounit2-lwt
|
| |
+ %dir %{ocamldir}/ounit-lwt/
|
| |
+ %{ocamldir}/ounit-lwt/META
|
| |
|
| |
|
| |
- %if %{with doc}
|
| |
- %files doc
|
| |
- %doc _build/default/_doc/_html/
|
| |
- %doc _build/default/_doc/_mlds/
|
| |
- %doc _build/default/_doc/_odoc/
|
| |
- %license LICENSE.txt
|
| |
- %endif
|
| |
+ %files lwt-devel -f .ofiles-ounit2-lwt-devel
|
| |
+ %{ocamldir}/ounit-lwt/dune-package
|
| |
+ %{ocamldir}/ounit-lwt/opam
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Mon Aug 8 2022 Jerry James <loganjerry@gmail.com> - 2.2.6-1
|
| |
+ - Version 2.2.6
|
| |
+ - Trim BRs
|
| |
+ - Give up on using odoc to generate documentation
|
| |
+ - Use new OCaml macros
|
| |
+
|
| |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-9
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
|
| |
See the message to ocaml-devel dated 9 Aug 2022 with subject "ocaml-ppxlib upgrade". Please merge this PR if it looks good to you, but don't build yet. I will take care of the builds (in the correct order!) once all of the PRs have been merged.