1
0
forked from pool/cuarzo-srm

add shlib versioning so upgrades work on SUSE

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/cuarzo-srm?expand=0&rev=2
This commit is contained in:
Jan Engelhardt 2023-11-18 11:07:07 +00:00 committed by Git OBS Bridge
parent cc8bb4cc08
commit 69124829d9
4 changed files with 38 additions and 8 deletions

View File

@ -2,6 +2,7 @@ From 6e684612c648275c532b374e917c60388513c35c Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sat, 18 Nov 2023 10:51:11 +0100
Subject: [PATCH] build: heed results from pkg-config
References: https://github.com/CuarzoSoftware/SRM/pull/7
The .pc files can have extra required flags or locations (e.g. if
libraries are installed outside the standard search paths).

View File

@ -2,6 +2,7 @@ From 093d56c4894e447609dc93d100a0b61a48f178e3 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sat, 18 Nov 2023 11:03:08 +0100
Subject: [PATCH] build: import "gl" dependency
References: https://github.com/CuarzoSoftware/SRM/pull/8
[ 3s] ../lib/SRMBuffer.c:1:10: fatal error: GL/gl.h: No such file or directory

24
0001-versioning.patch Normal file
View File

@ -0,0 +1,24 @@
From f4bdb3557fa382e13eb396f4e7a766325cf53544 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sat, 18 Nov 2023 12:04:08 +0100
Unversioned libraries suck.
---
src/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/meson.build b/src/meson.build
index e710f12..427b423 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -75,6 +75,7 @@ SRM = library(
'SRM',
sources : sources,
include_directories : include_paths,
+ soversion: 'suse0',
dependencies : [
display_info_dep,
egl_dep,
--
2.42.1

View File

@ -19,7 +19,7 @@
Name: cuarzo-srm
Version: 0.3.2.1
%define sillyver 0.3.2-1
%define lname libSRM
%define lname libSRM-suse0
Release: 0
Summary: Rendering manager for the Louvre library
License: GPL-3.0-only
@ -28,6 +28,7 @@ URL: https://github.com/CuarzoSoftware/SRM/
Source: https://github.com/CuarzoSoftware/SRM/archive/refs/tags/v%sillyver.tar.gz
Patch1: 0001-build-heed-results-from-pkg-config.patch
Patch2: 0001-build-import-gl-dependency.patch
Patch3: 0001-versioning.patch
BuildRequires: c_compiler
BuildRequires: meson
BuildRequires: pkgconfig(egl)
@ -42,9 +43,6 @@ BuildRequires: pkgconfig(libudev)
%description
A C library to aid in the development of Linux DRM/KMS applications.
SRM allows for using multiple GPUs simultaneously. It offers
functions for creating OpenGL textures which are automatically shared
among GPUs.
%package -n %lname
Summary: Rendering Manager for the Louvre library
@ -62,6 +60,12 @@ Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
A C library to aid in the development of Linux DRM/KMS applications.
SRM allows for using multiple GPUs simultaneously. It offers
functions for creating OpenGL textures which are automatically shared
among GPUs.
This package contains headers and development utilities for libSRM.
%prep
%autosetup -p1 -n SRM-%sillyver
@ -81,13 +85,13 @@ popd
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%_bindir/srm-*
%files -n %lname
%_libdir/libSRM.so
%_libdir/libSRM.so.suse0
%files devel
%license LICENSE
%_bindir/srm-*
%_includedir/SRM/
%_libdir/libSRM.so
%changelog