diff --git a/META.camlidl.in b/META.camlidl.in new file mode 100644 index 0000000..477b59e --- /dev/null +++ b/META.camlidl.in @@ -0,0 +1,6 @@ +# Courtesy of GODI +description = "Stub generator" +version = "@VERSION@" +directory = "^" +archive(byte) = "com.cma" +archive(native) = "com.cmxa" diff --git a/ocaml-camlidl.spec b/ocaml-camlidl.spec index a9e1ad9..c881ad4 100644 --- a/ocaml-camlidl.spec +++ b/ocaml-camlidl.spec @@ -2,13 +2,15 @@ Name: ocaml-camlidl Version: 1.05 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Stub code generator and COM binding for Objective Caml License: QPL and LGPLv2 with exceptions URL: http://caml.inria.fr/pub/old_caml_site/camlidl/ Source0: http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-%{version}.tar.gz Source1: http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-%{version}.doc.pdf +# META file from Debian (RHBZ#1026991). +Source2: META.camlidl.in # Build the compiler into a native code program using ocamlopt. Patch1: camlidl-1.05-use-ocamlopt-for-compiler.patch @@ -89,6 +91,9 @@ mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ocaml/caml mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ocaml/stublibs mkdir -p $RPM_BUILD_ROOT/%{_bindir} +# Install META file (RHBZ#1026991). +sed 's/@VERSION@/%{version}/' < %{SOURCE2} > $RPM_BUILD_ROOT/%{_libdir}/ocaml/META.camlidl + make OCAMLLIB=$RPM_BUILD_ROOT/%{_libdir}/ocaml \ BINDIR=$RPM_BUILD_ROOT/%{_bindir} \ install @@ -120,6 +125,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Nov 5 2013 Richard W.M. Jones - 1.05-22 +- Add META file (RHBZ#1026991). + * Sat Sep 14 2013 Richard W.M. Jones - 1.05-21 - Rebuild for OCaml 4.01.0. - Enable debuginfo.