New upstream version 5.3.0
This commit is contained in:
parent
05cf78c547
commit
0306d61b4e
|
@ -1,6 +1,6 @@
|
||||||
Name: ocaml-lwt
|
Name: ocaml-lwt
|
||||||
Version: 5.2.0
|
Version: 5.3.0
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: OCaml lightweight thread library
|
Summary: OCaml lightweight thread library
|
||||||
|
|
||||||
# The openssl linking exception is granted.
|
# The openssl linking exception is granted.
|
||||||
|
@ -26,9 +26,8 @@ BuildRequires: ocaml-ocplib-endian-devel
|
||||||
BuildRequires: ocaml-react-devel
|
BuildRequires: ocaml-react-devel
|
||||||
|
|
||||||
# lwt_ppx dependencies.
|
# lwt_ppx dependencies.
|
||||||
BuildRequires: ocaml-ppx-tools-versioned-devel >= 5.2.3
|
BuildRequires: ocaml-ppx-tools-versioned-devel >= 5.3.0
|
||||||
|
|
||||||
#BuildRequires: chrpath
|
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libev-devel
|
BuildRequires: libev-devel
|
||||||
|
|
||||||
|
@ -40,9 +39,9 @@ is part of the Ocsigen project.
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
# This is probably a packaging or dependency bug, but if we don't
|
Requires: ocaml-mmap-devel
|
||||||
# have it then any package that builds using LWT fails with:
|
Requires: ocaml-ocplib-endian-devel%{?_isa}
|
||||||
# ocamlfind: Package `seq' not found - required by `lwt'
|
Requires: ocaml-result-devel%{?_isa}
|
||||||
Requires: ocaml-seq-devel%{?_isa}
|
Requires: ocaml-seq-devel%{?_isa}
|
||||||
Requires: libev-devel%{?_isa}
|
Requires: libev-devel%{?_isa}
|
||||||
|
|
||||||
|
@ -88,14 +87,6 @@ developing applications that use %{name}-ppx.
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n lwt-%{version}
|
%autosetup -n lwt-%{version}
|
||||||
|
|
||||||
# Enable libev and pthread.
|
|
||||||
sed 's/-use-libev false/-use-libev true -use-pthread true/g' -i Makefile
|
|
||||||
|
|
||||||
# Remove '-dev' from the jbuilder command line.
|
|
||||||
# This stops 'ambiguous documentation comment' from being a fatal error.
|
|
||||||
sed 's/build --dev/build/g' -i Makefile
|
|
||||||
sed 's/runtest --dev/runtest/g' -i Makefile
|
|
||||||
|
|
||||||
# It looks like one test fails.
|
# It looks like one test fails.
|
||||||
# Actually, it looks like all the "mcast" tests fail in koji.
|
# Actually, it looks like all the "mcast" tests fail in koji.
|
||||||
# They should probably be disabled via a patch, but this works for now.
|
# They should probably be disabled via a patch, but this works for now.
|
||||||
|
@ -104,12 +95,10 @@ sed 's,test_mcast "mcast-join-noloop" true false;,(*test_mcast "mcast-join-noloo
|
||||||
sed 's,test_mcast "mcast-nojoin-loop" false true;,(*test_mcast "mcast-nojoin-loop" false true;*),' -i test/unix/test_mcast.ml
|
sed 's,test_mcast "mcast-nojoin-loop" false true;,(*test_mcast "mcast-nojoin-loop" false true;*),' -i test/unix/test_mcast.ml
|
||||||
sed 's,test_mcast "mcast-nojoin-noloop" false false;,(*test_mcast "mcast-nojoin-noloop" false false;*),' -i test/unix/test_mcast.ml
|
sed 's,test_mcast "mcast-nojoin-noloop" false false;,(*test_mcast "mcast-nojoin-noloop" false false;*),' -i test/unix/test_mcast.ml
|
||||||
|
|
||||||
# Some lwt.unix tests fail because we can't seem to look up the
|
|
||||||
# user/group name from inside koji. I guess that makes sense?
|
|
||||||
# Those tests have guards not to run on win32; we can hack them to not run here either.
|
|
||||||
sed 's,Sys.win32 && not is_wsl,Sys.unix,g' -i test/unix/test_lwt_unix.cppo.ml
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Enable libev and pthread.
|
||||||
|
dune exec src/unix/config/discover.exe -- --save \
|
||||||
|
--use-libev true --use-pthread true
|
||||||
dune build --profile=release --verbose
|
dune build --profile=release --verbose
|
||||||
|
|
||||||
# Relink the stublib with RPM_LD_FLAGS
|
# Relink the stublib with RPM_LD_FLAGS
|
||||||
|
@ -121,9 +110,7 @@ cd -
|
||||||
%install
|
%install
|
||||||
dune install --profile=release --destdir %{buildroot}
|
dune install --profile=release --destdir %{buildroot}
|
||||||
|
|
||||||
#chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
# Remove spurious dune-installed documentation.
|
||||||
|
|
||||||
# Remove spurious jbuilder-installed documentation.
|
|
||||||
rm -rf %{buildroot}/%{_prefix}/doc
|
rm -rf %{buildroot}/%{_prefix}/doc
|
||||||
|
|
||||||
%ifarch %{ocaml_native_compiler}
|
%ifarch %{ocaml_native_compiler}
|
||||||
|
@ -227,6 +214,9 @@ dune runtest --profile=release
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 15 2020 Jerry James <loganjerry@gmail.com> - 5.3.0-1
|
||||||
|
- New upstream version 5.3.0
|
||||||
|
|
||||||
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 5.2.0-3
|
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 5.2.0-3
|
||||||
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
||||||
|
|
||||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
||||||
SHA512 (lwt-5.2.0.tar.gz) = 361019d128bd2924cfa3251a5d8929b0ba85fc519c4c987ab0e3e2023dfc06cf376146941546abd2c03b6999bce0abf0de342507c1ac9674c2915b3b6f280707
|
SHA512 (lwt-5.3.0.tar.gz) = 9922c19944595b0c07da8e1bbdecb2cc7c5a7edcdc2224215efb819d9c735da8986388a2446bd0762e28533f5d9d386970f07a4f1b0d14255c6743f3a1d16cb6
|
||||||
|
|
Loading…
Reference in New Issue