Check note type for brand.

Reported by:	kib
If a library has SONAME use it for provides.
Handle shlibs without SONAME.
Do not require libraries that are provided.

If a package provides some library never ever require it to avoid
unnecessary dependencies.
Merge branch 'shlibs-rework'