2024-01-06 07:55:38 +01:00
|
|
|
%define ocamlpck lwt
|
|
|
|
|
|
|
|
Name: ocaml-lwt
|
|
|
|
Version: 5.5.0
|
2024-01-06 07:55:38 +01:00
|
|
|
Release: 4mamba
|
2024-01-06 07:55:38 +01:00
|
|
|
Summary: OCaml promises and concurrent I/O
|
|
|
|
Group: System/Libraries/OCaml
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:55:38 +01:00
|
|
|
URL: https://ocsigen.org/lwt/
|
2024-01-06 07:55:38 +01:00
|
|
|
Source: https://github.com/ocsigen/lwt.git/%{version}/lwt-%{version}.tar.bz2
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ocaml
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-bigarray-compat-devel
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-compiler-libs
|
|
|
|
BuildRequires: ocaml-compiler-libs-repackaged
|
|
|
|
BuildRequires: ocaml-ctypes-devel
|
|
|
|
BuildRequires: ocaml-integers
|
|
|
|
BuildRequires: ocaml-luv-devel
|
|
|
|
BuildRequires: ocaml-mmap-devel
|
|
|
|
BuildRequires: ocaml-ocplib-endian-devel
|
|
|
|
BuildRequires: ocaml-ppxlib-devel
|
|
|
|
BuildRequires: ocaml-react-devel
|
|
|
|
BuildRequires: ocaml-result
|
|
|
|
BuildRequires: ocaml-runtime
|
|
|
|
BuildRequires: ocaml-seq-devel
|
|
|
|
BuildRequires: ocaml-sexplib0-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-camlp4-devel
|
|
|
|
BuildRequires: ocaml-findlib
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-ctypes-devel >= 0.20.0-2mamba
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-luv-devel >= 0.5.11-3mamba
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-mmap-devel >= 1.2.0
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: ocaml-react-devel >= 1.2.2
|
2024-01-06 07:55:38 +01:00
|
|
|
BuildRequires: dune
|
|
|
|
|
|
|
|
%description
|
|
|
|
OCaml promises and concurrent I/O.
|
|
|
|
|
|
|
|
%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}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n lwt-%{version}
|
|
|
|
|
|
|
|
sed -i '/test_mcast "mcast-join-loop"/d' 'test/unix/test_mcast.ml'
|
|
|
|
|
|
|
|
# Don't buil lwt_domain
|
|
|
|
rm -rf 'lwt_domain.opam'
|
|
|
|
rm -rf {'src','test'}'/domain/'
|
|
|
|
|
|
|
|
%build
|
|
|
|
LWT_DISCOVER_ARGUMENTS='--use-libev true' dune build --release --verbose
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
DESTDIR=%{buildroot} dune install --prefix "/usr" --libdir "%{_lib}/ocaml"
|
|
|
|
|
|
|
|
rm -rf %{buildroot}/usr/doc
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}*
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmx
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}*/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so*
|
|
|
|
%doc LICENSE.md
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}*/*.mli
|
|
|
|
%doc CHANGES README.md
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:55:38 +01:00
|
|
|
* Sat May 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-4mamba
|
|
|
|
- rebuilt with ocaml-react 1.2.2
|
|
|
|
|
2024-01-06 07:55:38 +01:00
|
|
|
* Sat Mar 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-3mamba
|
|
|
|
- rebuilt with ocaml-mmap 1.2.0
|
|
|
|
|
2024-01-06 07:55:38 +01:00
|
|
|
* Wed Feb 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-2mamba
|
|
|
|
- rebuilt with ocaml-ctypes 0.20.0-2mamba
|
|
|
|
|
2024-01-06 07:55:38 +01:00
|
|
|
* Sun Jan 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-1mamba
|
|
|
|
- package created using the webbuild interface
|