diff --git a/ocaml-augeas-0.5-use-ocamlopt-g.patch b/ocaml-augeas-0.5-use-ocamlopt-g.patch new file mode 100644 index 0000000..f39110d --- /dev/null +++ b/ocaml-augeas-0.5-use-ocamlopt-g.patch @@ -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 + diff --git a/ocaml-augeas.spec b/ocaml-augeas.spec index b1e74b6..8d9e18d 100644 --- a/ocaml-augeas.spec +++ b/ocaml-augeas.spec @@ -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 - 0.5-6 +- Rebuild for OCaml 4.01.0. +- Enable debuginfo. + * Sat Aug 03 2013 Fedora Release Engineering - 0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild