2017-11-21 06:29:12 +00:00
|
|
|
Name: ocaml-qcheck
|
2018-02-05 03:54:44 +00:00
|
|
|
Version: 0.8
|
2018-06-20 20:42:08 +00:00
|
|
|
Release: 4%{?dist}
|
2017-11-21 06:29:12 +00:00
|
|
|
Summary: QuickCheck inspired property-based testing for OCaml
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/c-cube/qcheck
|
|
|
|
Source0: https://github.com/c-cube/qcheck/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ocaml
|
2018-02-05 03:54:44 +00:00
|
|
|
BuildRequires: jbuilder
|
2017-11-21 06:29:12 +00:00
|
|
|
BuildRequires: ocaml-ocamlbuild
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-ounit-devel
|
2018-02-05 03:54:44 +00:00
|
|
|
BuildRequires: opam-installer
|
2017-11-21 06:29:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module allows to check invariants (properties of some types) over
|
|
|
|
randomly generated instances of the type. It provides combinators for
|
|
|
|
generating instances and printing them.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n qcheck-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2018-02-05 04:01:54 +00:00
|
|
|
jbuilder build @install
|
2017-11-21 06:29:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2018-02-05 03:54:44 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/ocaml
|
|
|
|
jbuilder install --destdir=%{buildroot} --libdir=%{buildroot}%{_libdir}/ocaml
|
|
|
|
|
|
|
|
# These files will be installed using doc and license directives.
|
|
|
|
rm -r %{buildroot}/doc
|
2017-11-21 06:29:12 +00:00
|
|
|
|
2018-02-05 03:54:44 +00:00
|
|
|
# Makes *.cmxs executable such that they will be stripped.
|
|
|
|
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
|
2017-11-21 06:29:12 +00:00
|
|
|
|
|
|
|
%check
|
2018-02-05 04:01:54 +00:00
|
|
|
jbuilder runtest --no-buffer
|
2017-11-21 06:29:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.adoc CHANGELOG.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/ocaml/qcheck
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%exclude %{_libdir}/ocaml/qcheck/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/qcheck/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/qcheck/*.cmx
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/qcheck/*.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
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/qcheck/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-06-20 20:42:08 +00:00
|
|
|
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8-4
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
2018-05-14 02:22:05 +00:00
|
|
|
* Mon May 14 2018 Andy Li <andy@onthewings.net> - 0.8-3
|
|
|
|
- Rebuilt against ounit.
|
|
|
|
|
2018-02-08 08:57:20 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-05 03:54:44 +00:00
|
|
|
* Mon Feb 05 2018 Andy Li <andy@onthewings.net> - 0.8-1
|
|
|
|
- New upstream release. (RHBZ#1541681)
|
|
|
|
- Enable debug package.
|
|
|
|
|
2017-12-02 11:07:59 +00:00
|
|
|
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 0.7-2
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
2017-11-21 06:29:12 +00:00
|
|
|
* Mon Nov 20 2017 Andy Li <andy@onthewings.net> - 0.7-1
|
|
|
|
- Initial RPM release.
|