Use perl to rewrite Array -> Idlarray.
In particular don't rewrite Bigarray.Array1 etc.
This commit is contained in:
parent
54e62c67cb
commit
4668653f96
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: ocaml-camlidl
|
Name: ocaml-camlidl
|
||||||
Version: 1.05
|
Version: 1.05
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
Summary: Stub code generator and COM binding for Objective Caml
|
Summary: Stub code generator and COM binding for Objective Caml
|
||||||
License: QPL and LGPLv2 with exceptions
|
License: QPL and LGPLv2 with exceptions
|
||||||
|
|
||||||
@ -17,6 +17,7 @@ ExcludeArch: sparc64 s390 s390x
|
|||||||
|
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
|
BuildRequires: perl
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,14 +67,11 @@ sed -e 's|^OCAMLLIB=.*|OCAMLLIB=%{_libdir}/ocaml|' \
|
|||||||
# reason).
|
# reason).
|
||||||
mv compiler/array.ml compiler/idlarray.ml
|
mv compiler/array.ml compiler/idlarray.ml
|
||||||
mv compiler/array.mli compiler/idlarray.mli
|
mv compiler/array.mli compiler/idlarray.mli
|
||||||
for f in compiler/*.ml; do
|
|
||||||
mv $f $f.orig
|
perl -pi.bak -e 's/array/idlarray/g' \
|
||||||
sed -e 's|Array|Idlarray|g' < $f.orig > $f
|
compiler/Makefile compiler/.depend
|
||||||
done
|
perl -pi.bak -e 's/Array(?!\d)/Idlarray/g' \
|
||||||
mv compiler/Makefile compiler/Makefile.orig
|
compiler/*.ml
|
||||||
sed -e 's|array.cmo|idlarray.cmo|g' < compiler/Makefile.orig > compiler/Makefile
|
|
||||||
mv compiler/.depend compiler/.depend.orig
|
|
||||||
sed -e 's|array|idlarray|g' < compiler/.depend.orig > compiler/.depend
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
@ -122,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1.05-20
|
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1.05-21
|
||||||
- Rebuild for OCaml 4.01.0.
|
- Rebuild for OCaml 4.01.0.
|
||||||
- Enable debuginfo.
|
- Enable debuginfo.
|
||||||
- Modernize the spec file.
|
- Modernize the spec file.
|
||||||
|
Loading…
Reference in New Issue
Block a user