102 lines
2.9 KiB
RPMSpec
102 lines
2.9 KiB
RPMSpec
%define ocamlpck lwt
|
|
|
|
Name: ocaml-lwt
|
|
Version: 5.5.0
|
|
Release: 3mamba
|
|
Summary: OCaml promises and concurrent I/O
|
|
Group: System/Libraries/OCaml
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://ocsigen.org/lwt/
|
|
Source: https://github.com/ocsigen/lwt.git/%{version}/lwt-%{version}.tar.bz2
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: ocaml
|
|
BuildRequires: ocaml-bigarray-compat-devel
|
|
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
|
|
BuildRequires: ocaml-ctypes-devel >= 0.20.0-2mamba
|
|
BuildRequires: ocaml-luv-devel >= 0.5.11-2mamba
|
|
BuildRequires: ocaml-mmap-devel >= 1.2.0
|
|
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
|
|
* Sat Mar 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-3mamba
|
|
- rebuilt with ocaml-mmap 1.2.0
|
|
|
|
* Wed Feb 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-2mamba
|
|
- rebuilt with ocaml-ctypes 0.20.0-2mamba
|
|
|
|
* Sun Jan 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.0-1mamba
|
|
- package created using the webbuild interface
|