[ocaml-lacaml] New upstream version 5.5.2.

Richard W.M. Jones rjones at fedoraproject.org
Sat Jun 9 14:05:55 UTC 2012


commit a8e0443a32c976397f6ae1fdaa5b2c879a2c1cf9
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Jan 11 14:30:00 2012 +0000

    New upstream version 5.5.2.
    
    - Rebuild for OCaml 3.12.1.

 lacaml-ocaml-4.patch |   11 +++++++++++
 ocaml-lacaml.spec    |   11 ++++++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/lacaml-ocaml-4.patch b/lacaml-ocaml-4.patch
new file mode 100644
index 0000000..ca78bc7
--- /dev/null
+++ b/lacaml-ocaml-4.patch
@@ -0,0 +1,11 @@
+--- lacaml-release-5.5.2.old/lib/Makefile	2011-08-09 05:01:50.000000000 +0100
++++ lacaml-release-5.5.2/lib/Makefile	2012-06-09 15:01:19.051641317 +0100
+@@ -75,7 +75,7 @@
+ 	impl.ml \
+ 	$(STUBS)
+ 
+-OCAMLFLAGS := -w A -warn-error A -for-pack Lacaml
++OCAMLFLAGS := -w A -for-pack Lacaml -I +compiler-libs
+ LIB_PACK_NAME := lacaml
+ #CFLAGS	:= -fPIC -DPIC -Wall -Werror -Wno-unused -Wno-long-long
+ CFLAGS := -O2 -fPIC -DPIC
diff --git a/ocaml-lacaml.spec b/ocaml-lacaml.spec
index f88b1eb..7274802 100644
--- a/ocaml-lacaml.spec
+++ b/ocaml-lacaml.spec
@@ -3,7 +3,7 @@
 
 Name:           ocaml-lacaml
 Version:        5.5.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        BLAS/LAPACK-interface for OCaml
 
 Group:          Development/Libraries
@@ -16,9 +16,12 @@ ExcludeArch:    sparc64 s390 s390x
 BuildRequires:  ocaml
 BuildRequires:  ocaml-camlp4-devel
 BuildRequires:  ocaml-findlib-devel
+BuildRequires:  ocaml-compiler-libs
 BuildRequires:  lapack-devel
 BuildRequires:  blas-devel
 
+Patch0:         lacaml-ocaml-4.patch
+
 %define _use_internal_dependency_generator 0
 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
 %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh -i Common -i Install_printers -i Io -i Utils
@@ -46,6 +49,8 @@ developing applications that use %{name}.
 %prep
 %setup -q -n lacaml-release-%{version}
 
+%patch0 -p1
+
 
 %build
 make
@@ -98,6 +103,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jun 09 2012 Richard W.M. Jones <rjones at redhat.com> - 5.5.2-2
+- Rebuild for OCaml 4.00.0.
+- Patch Makefile to disable warn-error and to include +compiler-libs.
+
 * Wed Jan 11 2012 Richard W.M. Jones <rjones at redhat.com> - 5.5.2-1
 - New upstream version 5.5.2.
 - Rebuild for OCaml 3.12.1.


More information about the scm-commits mailing list