Am Dienstag, 18. Januar 2011, 10:45:03 schrieb Richard Guenther:
On Mon, 17 Jan 2011, Cristian Morales Vega wrote:
2011/1/17 Christian Trippe
: /usr/lib/libgetdatabzip2-0.7.1.so /usr/lib/libgetdatabzip2.so /usr/lib/libgetdatagzip-0.7.1.so /usr/lib/libgetdatagzip.so /usr/lib/libgetdatalzma-0.7.1.so /usr/lib/libgetdatalzma.so
AFAIU these are unversioned, so packaging them separatly does not make much
sense. However rpmlint still complains: It seems the libraries change the soname with every release. But that doesn't means users couldn't want to install two versions at the same time. Using the SLPP is still the correct thing to do, the name of the package comes from https://build.opensuse.org/package/view_file?file=LibraryPolicyCheck.py& package=rpmlint&project=openSUSE:Factory:
def libname_from_soname (soname): libname = string.split(soname, '.so.')
if len(libname) == 2: if libname[0][-1:].isdigit(): libname = string.join(libname, '-')
else: libname = string.join(libname, '')
else: libname = soname[:-3]
libname = libname.replace('.', '_') return libname
So "libgetdatabzip2-0.7.1.so" should be in the "libgetdatabzip2-0_7_1" package.
Indeed. If the libraries are tightly bound to a single user (program) then they should reside in /usr/lib/$program/ instead and be packaged in the same package as the binary referring to them.
They are not bound to a specific program. So i went with what Cristian suggested. However now I get: libgetdatagzip-0_7_1.x86_64: W: shlib-unversioned-lib libgetdatagzip-0.7.1.so libgetdatalzma-0_7_1.x86_64: W: shlib-unversioned-lib libgetdatalzma-0.7.1.so libgetdatabzip2-0_7_1.x86_64: W: shlib-unversioned-lib libgetdatabzip2-0.7.1.so Your package matches the Shared Library Policy Naming Scheme but contains an unversioned library. Therefore it is very unlikely that your package can be installed in parallel to another version of this library package. Consider moving unversioned parts into a runtime package. libgetdatagzip-0_7_1.x86_64: W: shlib-policy-missing-lib libgetdatalzma-0_7_1.x86_64: W: shlib-policy-missing-lib libgetdatabzip2-0_7_1.x86_64: W: shlib-policy-missing-lib Your package starts with 'lib' as part of it's name, but does not provide any libraries. It must not be called a lib-package then. Give it a more sensible name. Especially the second error sounds strange to me, as there is of course a library in each package. Thanks for the help. Christian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org