2024-01-06 07:56:59 +01:00
|
|
|
%define ocamlpck ounit2
|
2024-01-06 07:56:59 +01:00
|
|
|
|
|
|
|
Name: ocaml-ounit
|
2024-01-06 07:56:59 +01:00
|
|
|
Version: 2.2.6
|
2024-01-06 07:56:59 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Ocaml Unit testing framework
|
|
|
|
Group: System/Libraries/OCaml
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:56:59 +01:00
|
|
|
URL: https://github.com/gildor478/ounit
|
|
|
|
Source: https://github.com/gildor478/ounit.git/v%{version}/ounit-%{version}.tar.bz2
|
2024-01-06 07:56:59 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 07:56:59 +01:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-lwt-devel
|
|
|
|
BuildRequires: ocaml-result
|
|
|
|
BuildRequires: ocaml-seq-devel
|
2024-01-06 07:56:59 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-camlp4-devel
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
Requires: ocaml-runtime
|
|
|
|
|
|
|
|
%description
|
|
|
|
Ocaml Unit testing framework.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries/OCaml
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and signature files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 07:56:59 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:56:59 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n ounit-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 07:56:59 +01:00
|
|
|
dune build --release --verbose
|
2024-01-06 07:56:59 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 07:56:59 +01:00
|
|
|
DESTDIR="%{buildroot}" dune install --prefix '%{_prefix}' --libdir '%{_lib}/ocaml' --release --verbose
|
2024-01-06 07:56:59 +01:00
|
|
|
|
2024-01-06 07:56:59 +01:00
|
|
|
rm -rf %{buildroot}/usr/doc
|
2024-01-06 07:56:59 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:56:59 +01:00
|
|
|
%dir %{_libdir}/ocaml/ounit
|
|
|
|
%{_libdir}/ocaml/ounit/*
|
|
|
|
%dir %{_libdir}/ocaml/ounit-lwt
|
|
|
|
%{_libdir}/ocaml/ounit-lwt/*
|
2024-01-06 07:56:59 +01:00
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
2024-01-06 07:56:59 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmx
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.mli
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}_lwt/*.mli
|
2024-01-06 07:56:59 +01:00
|
|
|
%doc LICENSE.txt
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:56:59 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.mli
|
|
|
|
%doc CHANGES.md README.md
|
2024-01-06 07:56:59 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:56:59 +01:00
|
|
|
* Sat Feb 12 2022 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:56:59 +01:00
|
|
|
* Sun Feb 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.5-1mamba
|
|
|
|
- update to 2.2.5
|
|
|
|
|
2024-01-06 07:56:59 +01:00
|
|
|
* Thu May 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
|
|
|
|
- package created using the webbuild interface
|