update to 2.2.5 [release 2.2.5-1mamba;Sun Feb 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 07:56:59 +01:00
parent 9d2164d6cc
commit 5d59b40be5
2 changed files with 32 additions and 36 deletions

View File

@ -1,3 +1,4 @@
# ocaml-ounit # ocaml-ounit
Ocaml Unit testing framework. Ocaml Unit testing framework.

View File

@ -1,30 +1,31 @@
## this macro only works for packages with name matching the regexp "ocaml-.*" %define ocamlpck ounit2
%define ocamlpck oUnit
Name: ocaml-ounit Name: ocaml-ounit
Version: 2.0.0 Version: 2.2.5
Release: 1mamba Release: 1mamba
Summary: Ocaml Unit testing framework Summary: Ocaml Unit testing framework
Group: System/Libraries/OCaml Group: System/Libraries/OCaml
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ounit.forge.ocamlcore.org/ URL: https://github.com/gildor478/ounit
Source: http://forge.ocamlcore.org/frs/download.php/1258/ounit-%{version}.tar.gz Source: https://github.com/gildor478/ounit.git/v%{version}/ounit-%{version}.tar.bz2
License: MIT License: MIT
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ocaml
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-result
BuildRequires: ocaml-seq-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-camlp4-devel BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
Requires: ocaml-runtime Requires: ocaml-runtime
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Ocaml Unit testing framework. Ocaml Unit testing framework.
## remove the following two blocks if there's no devel files
%package devel %package devel
Group: Development/Libraries/OCaml Group: Development/Libraries/OCaml
Summary: Development files for %{name} Summary: Development files for %{name}
@ -33,55 +34,49 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package contains libraries and signature files for developing applications that use %{name}. This package contains libraries and signature files for developing applications that use %{name}.
%debug_package
%prep %prep
%setup -q -n ounit-%{version} %setup -q -n ounit-%{version}
%build %build
./configure \ dune build --release --verbose
--prefix %{_prefix} \
--localstatedir %{_localstatedir} \
--sharedstatedir %{_sharedstatedir} \
--sysconfdir %{_sysconfdir} \
--enable-tests \
--enable-docs \
--destdir=%{buildroot}
%make all -j1
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) DESTDIR="%{buildroot}" dune install --prefix '%{_prefix}' --libdir '%{_lib}/ocaml' --release --verbose
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
install -d $OCAMLFIND_DESTDIR/%{ocamlpck} rm -rf %{buildroot}/usr/doc
install -d $OCAMLFIND_DESTDIR/stublibs
%makeinstall
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ocaml/ounit
%{_libdir}/ocaml/ounit/*
%dir %{_libdir}/ocaml/ounit-lwt
%{_libdir}/ocaml/ounit-lwt/*
%dir %{_libdir}/ocaml/%{ocamlpck} %dir %{_libdir}/ocaml/%{ocamlpck}
%{_libdir}/ocaml/%{ocamlpck}/META %{_libdir}/ocaml/%{ocamlpck}*/*
%{_libdir}/ocaml/%{ocamlpck}/*.cma %exclude %{_libdir}/ocaml/%{ocamlpck}*/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmi %exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.cmxs %exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.ml %exclude %{_libdir}/ocaml/%{ocamlpck}*/*.mli
%exclude %{_libdir}/ocaml/%{ocamlpck}_lwt/*.mli
%doc LICENSE.txt %doc LICENSE.txt
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/ocaml/%{ocamlpck}/*.a %{_libdir}/ocaml/%{ocamlpck}*/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}*/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.mli %{_libdir}/ocaml/%{ocamlpck}*/*.mli
%dir %{_docdir}/ounit %doc CHANGES.md README.md
%{_docdir}/ounit/*
#%doc CHANGES README
#%doc doc/html/
%changelog %changelog
* Sun Feb 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.5-1mamba
- update to 2.2.5
* Thu May 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba * Thu May 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created using the webbuild interface - package created using the webbuild interface