Rebuild for OCaml 4.01.0.

- Enable debuginfo.
This commit is contained in:
Richard W.M. Jones 2013-09-14 11:28:41 +01:00
parent f652eb1b67
commit a0732e1b82
2 changed files with 23 additions and 6 deletions

View File

@ -0,0 +1,13 @@
--- ocaml-augeas-0.5/Makefile.in.old 2012-06-11 14:02:39.000000000 +0100
+++ ocaml-augeas-0.5/Makefile.in 2013-09-14 11:29:45.133175512 +0100
@@ -33,8 +33,8 @@
OCAMLCFLAGS = -g
OCAMLCPACKAGES =
-OCAMLOPTFLAGS =
-OCAMLOPTPACKAGES =
+OCAMLOPTFLAGS = $(OCAMLCFLAGS)
+OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
OCAMLDOCFLAGS = -html -sort

View File

@ -1,16 +1,16 @@
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
Name: ocaml-augeas
Version: 0.5
Release: 5%{?dist}
Release: 6%{?dist}
Summary: OCaml bindings for Augeas configuration API
Group: Development/Libraries
License: LGPLv2+ with exceptions
URL: http://people.redhat.com/~rjones/augeas/files/
Source0: http://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz
Patch1: ocaml-augeas-0.5-use-ocamlopt-g.patch
ExcludeArch: sparc64 s390 s390x
BuildRequires: ocaml >= 3.09.0
@ -38,6 +38,7 @@ developing applications that use %{name}.
%prep
%setup -q
%patch1 -p1
%build
@ -60,7 +61,6 @@ mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
#make install
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
@ -88,6 +88,10 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
%changelog
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 0.5-6
- Rebuild for OCaml 4.01.0.
- Enable debuginfo.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild