Include source files in -debuginfo

This commit is contained in:
Michel Alexandre Salim 2014-02-14 09:24:38 +07:00
parent aa4be47c15
commit 6f1b4a5202
2 changed files with 17 additions and 1 deletions

View File

@ -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 <salimma@fedoraproject.org> - 1.2.0-3
- Include source files in -debuginfo
* Sat Feb 8 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.0-2
- Incorporate review feedback

10
xmlm-1.2.0-debug.patch Normal file
View File

@ -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
<src> : include
-<test> : include
\ No newline at end of file
+<test> : include
+true : debug