From 39f1d11a3096ad409cab9cc0e30a66163bc919ed Mon Sep 17 00:00:00 2001 From: Andy Li Date: Jul 27 2019 10:18:02 +0000 Subject: - New upstream release. - Update build system and commands from jbuilder to dune. --- diff --git a/.gitignore b/.gitignore index cb55a61..cc96cd1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /ocaml-qcheck-0.7.tar.gz /ocaml-qcheck-0.8.tar.gz +/ocaml-qcheck-0.10.tar.gz diff --git a/ocaml-qcheck.spec b/ocaml-qcheck.spec index 0754925..9011813 100644 --- a/ocaml-qcheck.spec +++ b/ocaml-qcheck.spec @@ -1,6 +1,6 @@ Name: ocaml-qcheck -Version: 0.8 -Release: 8%{?dist} +Version: 0.10 +Release: 1%{?dist} Summary: QuickCheck inspired property-based testing for OCaml License: BSD @@ -8,7 +8,7 @@ URL: https://github.com/c-cube/qcheck Source0: https://github.com/c-cube/qcheck/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: ocaml -BuildRequires: jbuilder +BuildRequires: ocaml-dune BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-findlib BuildRequires: ocaml-ounit-devel @@ -36,47 +36,62 @@ developing applications that use %{name}. %build -jbuilder build @install +# do not build alcotest support since it is not packaged yet +dune build @install -p qcheck,qcheck-core,qcheck-ounit --verbose %install mkdir -p %{buildroot}%{_libdir}/ocaml -jbuilder install --destdir=%{buildroot} --libdir=%{buildroot}%{_libdir}/ocaml +dune install --destdir=%{buildroot} qcheck qcheck-core qcheck-ounit # These files will be installed using doc and license directives. -rm -r %{buildroot}/doc +rm -r %{buildroot}%{_prefix}/doc # Makes *.cmxs executable such that they will be stripped. find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \; %check -jbuilder runtest --no-buffer +dune runtest --no-buffer --profile release %files %doc README.adoc CHANGELOG.md %license LICENSE -%{_libdir}/ocaml/qcheck +%{_libdir}/ocaml/* +%{_libdir}/ocaml/*/* %ifarch %{ocaml_native_compiler} -%exclude %{_libdir}/ocaml/qcheck/*.a -%exclude %{_libdir}/ocaml/qcheck/*.cmxa -%exclude %{_libdir}/ocaml/qcheck/*.cmx +%exclude %{_libdir}/ocaml/*/{,*/}*.a +%exclude %{_libdir}/ocaml/*/{,*/}*.cmxa +%exclude %{_libdir}/ocaml/*/{,*/}*.cmx %endif -%exclude %{_libdir}/ocaml/qcheck/*.mli +%exclude %{_libdir}/ocaml/*/{,*/}*.ml +%exclude %{_libdir}/ocaml/*/{,*/}*.mli %files devel %doc README.adoc CHANGELOG.md %license LICENSE %ifarch %{ocaml_native_compiler} -%{_libdir}/ocaml/qcheck/*.a -%{_libdir}/ocaml/qcheck/*.cmxa -%{_libdir}/ocaml/qcheck/*.cmx +%{_libdir}/ocaml/*/{,*/}*.a +%{_libdir}/ocaml/*/{,*/}*.cmxa +%{_libdir}/ocaml/*/{,*/}*.cmx %endif -%{_libdir}/ocaml/qcheck/*.mli +%{_libdir}/ocaml/*/{,*/}*.ml +%{_libdir}/ocaml/*/{,*/}*.mli +%{_libdir}/ocaml/*/{,*/}*.cma +%{_libdir}/ocaml/*/{,*/}*.cmi +%{_libdir}/ocaml/*/{,*/}*.cmt +%{_libdir}/ocaml/*/{,*/}*.cmti +%{_libdir}/ocaml/*/dune-package +%{_libdir}/ocaml/*/META +%{_libdir}/ocaml/*/opam %changelog +* Sat Jul 27 2019 Andy Li - 0.10-1 +- New upstream release. +- Update build system and commands from jbuilder to dune. + * Thu Jul 25 2019 Fedora Release Engineering - 0.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index b4781d0..5a56204 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ocaml-qcheck-0.8.tar.gz) = fbf924f09925411109a7d8262cac625e49f985d38a23ff1330079367d63ba62c0b95e3b81e9ae7f8dd10aad415f0cb709acc06fbfd40fd6c492aa952189127a7 +SHA512 (ocaml-qcheck-0.10.tar.gz) = 250d7934012455d29d95b710f5b42bbe3ea42e6ec1b5781dba807781ac9d5a66ca39dc4535667fd9b00bfcc566e11dbdb3f7306dde1d8f0e9f90d1447cdc4d97