[ocaml-lablgl] Rebuild for OCaml 4.01.0.

Richard W.M. Jones rjones at fedoraproject.org
Sat Sep 14 08:08:37 UTC 2013


commit bcfdcd8a13fc534e1cbedf1043e8edfe92758fb0
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Sep 14 09:03:18 2013 +0100

    Rebuild for OCaml 4.01.0.
    
    - Enable debuginfo.
    - Modernize the spec file.

 ocaml-lablgl.spec |   32 ++++++++++++--------------------
 1 files changed, 12 insertions(+), 20 deletions(-)
---
diff --git a/ocaml-lablgl.spec b/ocaml-lablgl.spec
index 936f225..cab3a11 100644
--- a/ocaml-lablgl.spec
+++ b/ocaml-lablgl.spec
@@ -1,16 +1,12 @@
-%define debug_package %{nil}
-
 Name:           ocaml-lablgl
 Version:        20120306
-Release:        6%{?dist}
-
+Release:        7%{?dist}
 Summary:        LablGL is an OpenGL interface for Objective Caml
-
-Group:          System Environment/Libraries
 License:        BSD
+
 URL:            http://forge.ocamlcore.org/projects/lablgl/
 Source0:        http://forge.ocamlcore.org/frs/download.php/816/lablgl-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 ExcludeArch:    sparc64 s390 s390x
 
 BuildRequires:  freeglut-devel 
@@ -26,10 +22,6 @@ BuildRequires:  mesa-libGLU-devel
 BuildRequires:	ocaml-labltk-devel
 BuildRequires:  ocaml-camlp4-devel
 
-%define _use_internal_dependency_generator 0
-%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
-%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
-
 %description
 LablGL is is an Objective Caml interface to OpenGL. Support is
 included for use inside LablTk, and LablGTK also includes specific
@@ -40,7 +32,6 @@ extension, or with open-source Mesa.
 
 %package        devel
 Summary:        Development files for %{name}
-Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 Requires:       ocaml-labltk-devel
 
@@ -54,7 +45,7 @@ developing applications that use %{name}.
 
 cat > Makefile.config <<EOF
 CAMLC = ocamlc.opt
-CAMLOPT = ocamlopt.opt
+CAMLOPT = ocamlopt.opt -g
 BINDIR = %{_bindir}
 XINCLUDES = -I%{_prefix}/X11R6/include
 XLIBS = -lXext -lXmu -lX11
@@ -72,6 +63,8 @@ EOF
 
 
 %build
+# Parallel builds don't work.
+unset MAKEFLAGS
 make all opt
 
 
@@ -117,12 +110,7 @@ done
 popd
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc README
 %dir %{_libdir}/ocaml/lablGL
 %{_libdir}/ocaml/lablGL/*.cma
@@ -133,7 +121,6 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files devel
-%defattr(-,root,root,-)
 %doc CHANGES COPYRIGHT README LablGlut/examples Togl/examples
 %{_libdir}/ocaml/lablGL/META
 %{_libdir}/ocaml/lablGL/*.a
@@ -144,6 +131,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Sep 14 2013 Richard W.M. Jones <rjones at redhat.com> - 20120306-7
+- Rebuild for OCaml 4.01.0.
+- Enable debuginfo.
+- Modernize the spec file.
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20120306-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -260,7 +252,7 @@ rm -rf $RPM_BUILD_ROOT
 * Sun May 22 2005 Jeremy Katz <katzj at redhat.com> - 1.01-5
 - rebuild on all arches
 
-* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
+* Fri Apr  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
 - rebuilt
 
 * Fri Apr  1 2005 Gerard Milmeister <gemi at bluewin.ch> - 1.01-3


More information about the scm-commits mailing list