2014-09-25 12:43:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-ounit
|
|
|
|
#
|
2017-07-17 13:03:25 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-09-25 12:43:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-06-10 11:25:14 +02:00
|
|
|
Name: ocaml-ounit
|
2019-09-27 20:27:32 +02:00
|
|
|
Version: 2.1.2
|
2014-09-25 12:43:42 +02:00
|
|
|
Release: 0
|
2017-07-25 10:41:50 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2014-09-25 12:43:42 +02:00
|
|
|
Summary: Ocaml OUnit test framework
|
2015-01-22 08:17:08 +01:00
|
|
|
License: MIT
|
2017-07-25 15:23:28 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2019-09-27 10:39:05 +02:00
|
|
|
Url: https://github.com/gildor478/ounit
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2014-10-23 13:34:51 +02:00
|
|
|
BuildRequires: ocaml
|
2019-09-27 10:39:05 +02:00
|
|
|
BuildRequires: ocaml-dune
|
|
|
|
BuildRequires: ocaml-rpm-macros
|
|
|
|
BuildRequires: ocamlfind(bytes)
|
|
|
|
BuildRequires: ocamlfind(lwt)
|
|
|
|
BuildRequires: ocamlfind(lwt.unix)
|
|
|
|
BuildRequires: ocamlfind(stdlib-shims)
|
2019-09-27 20:27:32 +02:00
|
|
|
BuildRequires: ocamlfind(str)
|
2019-09-27 10:39:05 +02:00
|
|
|
BuildRequires: ocamlfind(threads)
|
|
|
|
BuildRequires: ocamlfind(unix)
|
|
|
|
|
2014-09-25 12:43:42 +02:00
|
|
|
%description
|
|
|
|
OUnit is a unit test framework for OCaml. It allows one to easily
|
|
|
|
create unit-tests for OCaml code. It is based on HUnit, a unit testing
|
|
|
|
framework for Haskell. It is similar to JUnit, and other xUnit testing
|
|
|
|
frameworks.
|
|
|
|
|
|
|
|
%package devel
|
2014-10-23 13:34:51 +02:00
|
|
|
Summary: Development files for %{name}
|
2017-07-25 15:23:28 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2014-10-23 13:34:51 +02:00
|
|
|
Requires: %{name} = %{version}
|
2014-09-25 12:43:42 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files needed for application based on %{name}.
|
|
|
|
|
|
|
|
%prep
|
2019-09-27 10:39:05 +02:00
|
|
|
%autosetup -p1
|
2016-05-20 15:31:40 +02:00
|
|
|
|
2016-05-20 15:23:34 +02:00
|
|
|
%build
|
2019-09-27 10:39:05 +02:00
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2014-09-25 12:43:42 +02:00
|
|
|
|
|
|
|
%install
|
2019-09-27 10:39:05 +02:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ocaml_dune_test
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files devel -f %{name}.files.devel
|
|
|
|
|
2014-09-25 12:43:42 +02:00
|
|
|
|
|
|
|
%changelog
|