ocaml-ounit/ocaml-ounit.spec
cherry530 bad2a55ab3 Add BuildRequires make
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit ef9fbe77429d10e4c2ab09105dd440fc7bd7c7db)
2023-03-29 17:04:53 +08:00

64 lines
1.6 KiB
RPMSpec

Name: ocaml-ounit
Version: 2.0.8
Release: 7
Summary: OUnit is a unit test framework for OCaml
License: MIT
URL: http://ounit.forge.ocamlcore.org/
Source0: https://github.com/gildor478/ounit/archive/2.0.8/ounit-%{version}.tar.gz
BuildRequires: ocaml >= 3.10.0 ocaml-findlib-devel ocaml-ocamldoc ocaml-ocamlbuild
BuildRequires: make
%description
OUnit is a unit test framework for OCaml. It allows one to easily create unit-tests for OCaml code.
It is loosely based on HUnit, a unit testing framework for Haskell. It is similar to JUnit, and other
XUnit testing frameworks.
%package devel
Summary: Development support for ocaml-ounit
Requires: %{name} = %{version}-%{release}
%description devel
Development headers and libraries for ocaml-ounit.
%prep
%autosetup -n ounit-%{version} -p1
sh ./configure --destdir $RPM_BUILD_ROOT
%build
%make_build all
%make_build doc
%check
make test
%install
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install
rm -rf $RPM_BUILD_ROOT/usr/local/share/doc
%files
%doc LICENSE.txt
%{_libdir}/ocaml/oUnit
%exclude %{_libdir}/ocaml/oUnit/{*.a,*.cmxa,*.mli}
%files devel
%doc LICENSE.txt README.txt _build/src/api-ounit.docdir/*
%{_libdir}/ocaml/oUnit/{*.a,*.cmxa,*.mli}
%changelog
* Tue Dec 20 2022 xu_ping <xuping33@h-partners.com> - 2.0.8-7
- Add buildrequires make
* Mon Nov 21 2022 xu_ping <xuping33@h-partners.com> - 2.0.8-6
- Modify invalid source
* Tue Feb 25 2020 duyeyu <duyeyu@huawei.com> - 2.0.8-5
- Package init