Fix build with ocaml-re 1.7.3.

This commit is contained in:
Ben Rosser 2018-08-22 11:25:22 -04:00
parent f06dee8e83
commit 96e9f6fa1c
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@
Name: ocaml-dose3
Version: 5.0.1
Release: 10.20180821git%{shortcommit0}%{?dist}
Release: 11.20180821git%{shortcommit0}%{?dist}
Summary: Framework for managing distribution packages and dependencies
%global libname %(echo %{name} | sed -e 's/^ocaml-//')
@ -96,6 +96,9 @@ sed "s/*.cmx /*.cmxignore /g" -i Makefile
sed "s,*.cmxs,*.cmxs _build/doselibs/*.cmx,g" -i Makefile
sed "s,cmxa cmxs,cmx cmxa cmxs,g" -i Makefile.config.in
# Fix an issue with re 1.7.3+
sed "s/module Str = Re_str/module Str = Re.Str/g" -i rpm/version.ml
%build
%configure --with-zip --with-oUnit --with-rpm4 --with-xml
@ -167,6 +170,9 @@ ln -s %{_bindir}/distcheck %{buildroot}%{_bindir}/eclipsecheck
%{_mandir}/man8/*.8*
%changelog
* Wed Aug 22 2018 Ben Rosser <rosser.bjr@gmail.com> - 5.0.1-11.20180821git2c1b8df
- Fix build with ocaml-re 1.7.3.
* Tue Aug 21 2018 Ben Rosser <rosser.bjr@gmail.com> - 5.0.1-10.20180821git2c1b8df
- Update to newer SCM (git) checkout.
- Modify Makefile in prep section in order to install cmx files.