Correction to (2): It needs to have %if %with_debug_symbols
around the debug package stuff, so it can build without
debug symbols, and I moved the include of options.inc
to the bottom of foss-paths.inc so it will hopefully find
the define of %with_debug_symbols:
goanna% hg diff -r 1959 -r 1961 specs/FOSSa52dec.spec
diff -r 07234f493a71 -r 95574abbda4a specs/FOSSa52dec.spec
--- a/specs/FOSSa52dec.spec Fri Feb 19 09:57:00 2010 +0100
+++ b/specs/FOSSa52dec.spec Fri Feb 19 22:05:21 2010 +1100
@@ -36,6 +36,12 @@
# feature flag to enable OSS (so we can change it later wo changing the spec)
%define enable_oss %{?_with_oss:1}%{?!_with_oss:0}
+%if %with_debug_symbols
+%package debug
+Summary: %{summary} - debug symbol files
+SUNW_BaseDir: %{_basedir}
+%endif
+
%include foss-common32.inc
%use base32 = base-a52dec.spec
%if %has64
@@ -83,7 +89,30 @@
%{_mandir}/man1/a52dec.1
%{_mandir}/man1/extract_a52.1
+%if %with_debug_symbols
+%files debug
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/a52dec.debug
+%{_bindir}/extract_a52.debug
+%if %has64
+%dir %attr (0755, root, bin) %{_bindir}/%_arch64
+%{_bindir}/%_arch64/a52dec.debug
+%{_bindir}/%_arch64/extract_a52.debug
+%endif
+
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/liba52.so.0.0.0.debug
+%if %has64
+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
+%{_libdir}/%_arch64/liba52.so.0.0.0.debug
+%endif
+%endif
+
%changelog
+* Fri Feb 19 2010 - markwright at internode.on.net
+- add debug symbols package
+
* Sun Dec 6 2009 - bentaylor.solx86 at gmail.com
- convert to spec
goanna%
Thanks, Mark