Disable debugsource packages - see comment in spec.

This commit is contained in:
Richard W.M. Jones 2017-08-09 12:41:19 +01:00
parent 739181cf16
commit 269c527620
2 changed files with 17 additions and 1 deletions

View File

@ -9,3 +9,14 @@
# For the development, -warn-error A is turned on
if $(file-exists DEV)
--- camlspotter-camlimages-13777ef409e7/OMyMakeroot.old 2017-08-09 12:38:11.026148848 +0100
+++ camlspotter-camlimages-13777ef409e7/OMyMakeroot 2017-08-09 12:38:20.812149472 +0100
@@ -133,7 +133,7 @@
OCamlMkLibC(name, files, ldflags) =
protected.COBJS=$(addsuffix .o, $(files))
dll$(name).so lib$(name).a: $(COBJS)
- $(OCAMLMKLIB) -o $(name) $(LDFLAGS) $(ldflags) $(COBJS)
+ $(OCAMLMKLIB) -g -o $(name) $(LDFLAGS) $(ldflags) $(COBJS)
return $(array dll$(name).so, lib$(name).a)
# If ocamlmklib does not work for you, you can do:

View File

@ -1,3 +1,8 @@
# XXX This indicates a bug somewhere. We are not passing the -g flag
# through when creating the libraries. However I cannot see exactly
# what is wrong.
%undefine _debugsource_packages
Name: ocaml-camlimages
Version: 4.2.4
Release: 1%{?dist}
@ -49,7 +54,7 @@ Includes documentation provided by ocamldoc
%patch1 -p1
%build
omake CFLAGS="$RPM_OPT_FLAGS"
omake CFLAGS="$RPM_OPT_FLAGS" --verbose
%install
# These rules work if the library uses 'ocamlfind install' to install itself.