Set --profile release to disable warn-error.

Various jbuilder command line fixes.
This commit is contained in:
Richard W.M. Jones 2019-04-30 08:56:11 +01:00
parent ae6ce8654b
commit 03e3d26c4d
1 changed files with 8 additions and 9 deletions

View File

@ -32,24 +32,21 @@ developing applications that use %{name}.
%build
jbuilder build @install
jbuilder build @install --profile release
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
jbuilder install --destdir="$DESTDIR" --libdir="$OCAMLFIND_DESTDIR" --verbose
# These files will be installed using the doc and license directives
rm $DESTDIR/doc/benchmark/{CHANGES.md,LICENSE.md,README.md}
jbuilder install --destdir="%{buildroot}" --libdir="%{_libdir}/ocaml" --verbose
# Makes *.cmxs executable such that they will be stripped.
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
# Remove /usr/doc, we will install it using %%doc directives.
rm -r %{buildroot}$DESTDIR/usr/doc
%check
jbuilder runtest
jbuilder runtest --profile release
%files
@ -78,6 +75,8 @@ jbuilder runtest
%changelog
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.5-4
- OCaml 4.08.0 (beta 3) rebuild.
- Set --profile release to disable warn-error.
- Various jbuilder command line fixes.
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild