On Tue, 2007-11-27 at 10:43 +0100, Michal Marek wrote:
On Sunday 25 November 2007 19:05:51 Ben Martin wrote:
This seems to work for F7,F8 and opensuse 10.3.
I already had at the top of the specfile; %define name foo
Not needed.
I had that in there already because the %{name} is used many times in the header of the package and I don't tend to like s/foo/bar/g when I use my spec.in.template to start packaging a new tarball. Not strictly needed of course.
Directly adding the debuginfo macro expansion after my own package metadata at the top of the spec... %package debuginfo Summary: Debug information for package %{name} ...
You can just insert %debug_package, which does everything for you.
I did at first try this method, hoping it would just work. I'm still all for getting it to work properly rather than embedding the contents of the debug macro into the specfile. I just moved my %{name} definition and gave it another shot using %debug_package after a blank line after my %description. Having %__debug_install_post in place doesn't seem to change the outcome when just using %debug_package. On Fedora 8: error: Installed (but unpackaged) file(s) found: /usr/lib/debug/.build-id/21/fa83c1714247ffac3294880f6aa9c1f9a20636 /usr/lib/debug/.build-id/21/fa83c1714247ffac3294880f6aa9c1f9a20636.debug /usr/lib/debug/usr/lib/libfuselagefs.so.0.0.0.debug /usr/lib/debug/usr/lib/libfuselagefs.so.0.debug /usr/lib/debug/usr/lib/libfuselagefs.so.debug /usr/src/debug/fuselagefs-0.0.1/src/fuselagefs.cpp /usr/src/debug/fuselagefs-0.0.1/src/fuselagefs.hh On opensuse 10.3: error: Installed (but unpackaged) file(s) found: /usr/lib/debug/usr/lib/libfuselagefs.so.0.0.0.debug With the nastier brute force method I was using it would package on both platforms. package = ~/fuselagefs