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)