From 527d872a167c7ec7864e7c48a83cb6af6bde6dbe24009ea7edf27f74dd420273 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 11 Dec 2018 17:05:23 +0000 Subject: [PATCH] Address that rpmlint report on SONAME some people observed OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=4 --- libcamera.spec | 2 ++ vers.diff | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libcamera.spec b/libcamera.spec index e3f5506..2548a1d 100644 --- a/libcamera.spec +++ b/libcamera.spec @@ -71,6 +71,8 @@ This subpackage contains the header files. %install %meson_install +# Together with patch1, this makes for the "-release" feature from libtool +mv "%buildroot/%_libdir/libcamera-suse.so" "%buildroot/%_libdir/libcamera.so" %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig diff --git a/vers.diff b/vers.diff index 9f042f0..d02863a 100644 --- a/vers.diff +++ b/vers.diff @@ -3,16 +3,19 @@ Date: 2018-12-06 12:28:42.992186963 +0100 Unversioned libraries suck! --- - lib/meson.build | 1 + - 1 file changed, 1 insertion(+) + lib/meson.build | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) Index: libcamera-0~14.b99da21/lib/meson.build =================================================================== --- libcamera-0~14.b99da21.orig/lib/meson.build +++ libcamera-0~14.b99da21/lib/meson.build -@@ -3,4 +3,5 @@ sources = ['main.cpp'] - libcamera = shared_library('camera', +@@ -1,6 +1,7 @@ + sources = ['main.cpp'] + +-libcamera = shared_library('camera', ++libcamera = shared_library('camera-suse', sources, install : true, -+ soversion : 'suse0', ++ soversion : '0', include_directories : inc)