- New upstream release.
- Update build system and commands from jbuilder to dune.
This commit is contained in:
parent
4e31f0f8bc
commit
39f1d11a30
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/ocaml-qcheck-0.7.tar.gz
|
||||
/ocaml-qcheck-0.8.tar.gz
|
||||
/ocaml-qcheck-0.10.tar.gz
|
||||
|
@ -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 <andy@onthewings.net> - 0.10-1
|
||||
- New upstream release.
|
||||
- Update build system and commands from jbuilder to dune.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (ocaml-qcheck-0.8.tar.gz) = fbf924f09925411109a7d8262cac625e49f985d38a23ff1330079367d63ba62c0b95e3b81e9ae7f8dd10aad415f0cb709acc06fbfd40fd6c492aa952189127a7
|
||||
SHA512 (ocaml-qcheck-0.10.tar.gz) = 250d7934012455d29d95b710f5b42bbe3ea42e6ec1b5781dba807781ac9d5a66ca39dc4535667fd9b00bfcc566e11dbdb3f7306dde1d8f0e9f90d1447cdc4d97
|
||||
|
Loading…
Reference in New Issue
Block a user