Trying to be prepare some packages for contrib I stumbeled upon the problem
of
stripping the package of its debug information. Now I learned that install-
strip is not the way to go, as it will make it impossible to debug the
application, and I should use %debug_packges, as that will create a "-debug"
package with the stripped information.

Having added a line "%debug_package" to the spec-file now gives me a strip
package without using install-strip. It won't give me a "-debug"-package so,
caused by the following problem printed by osc-out.

After adding it the BS will add %debug_package automatically to your
package. If you add %debug_package yourself the package will fail to
build in Contrib because of a duplicate -debug* package (or that was
the behavior last time I checked).

Correct - please do not use %debug_package for packages going to
Contrib.

Then I think you need to add "-g" to the build flags. The vorbisgain
makefile doesn't seems to add it and I'm not sure if the BS will add
it automatically when you add <debuginfo> (if doesn't, probably it should?).

If you use $RPM_OPT_FLAGS, the package is built with -g.

I've checked out theMarix:vorbisgain package. After replacing 'make
install-strip' with just 'make install' it builds fine.

If still in doubt, feel free to submit to Contrib - we can help you
with the remaining issues.