diff --git a/ocaml-xmlm.spec b/ocaml-xmlm.spec index d79e48f..29a3668 100644 --- a/ocaml-xmlm.spec +++ b/ocaml-xmlm.spec @@ -5,12 +5,14 @@ Name: ocaml-xmlm Version: 1.2.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A streaming XML codec License: BSD URL: http://erratique.ch/software/xmlm Source0: http://erratique.ch/software/xmlm/releases/xmlm-%{version}.tbz +# Ensure source files are included in generated debuginfo subpackage +Patch0: xmlm-1.2.0-debug.patch # Example XML files for testing Source1: test-valid.xml Source2: test-invalid.xml @@ -39,6 +41,7 @@ developing applications that use %{name}. %prep %setup -q -n %{libname}-%{version} +%patch0 -p1 -b .debug %build @@ -102,6 +105,9 @@ grep expected invalid-err.log >/dev/null %changelog +* Fri Feb 14 2014 Michel Salim - 1.2.0-3 +- Include source files in -debuginfo + * Sat Feb 8 2014 Michel Salim - 1.2.0-2 - Incorporate review feedback diff --git a/xmlm-1.2.0-debug.patch b/xmlm-1.2.0-debug.patch new file mode 100644 index 0000000..fce88b2 --- /dev/null +++ b/xmlm-1.2.0-debug.patch @@ -0,0 +1,10 @@ +diff -up xmlm-1.2.0/_tags~ xmlm-1.2.0/_tags +--- xmlm-1.2.0/_tags~ 2013-09-06 19:29:13.000000000 +0300 ++++ xmlm-1.2.0/_tags 2014-02-13 18:57:53.562105217 +0200 +@@ -1,3 +1,4 @@ + <**/*.ml> : annot, bin_annot + : include +- : include +\ No newline at end of file ++ : include ++true : debug