Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package discord-rpc for openSUSE:Factory 
checked in at 2022-06-28 16:58:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/discord-rpc (Old)
 and      /work/SRC/openSUSE:Factory/.discord-rpc.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "discord-rpc"

Tue Jun 28 16:58:23 2022 rev:2 rq:985131 version:3.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/discord-rpc/discord-rpc.changes  2020-10-05 
19:41:13.913675380 +0200
+++ /work/SRC/openSUSE:Factory/.discord-rpc.new.1548/discord-rpc.changes        
2022-06-28 16:58:24.539478501 +0200
@@ -1,0 +2,6 @@
+Tue Jun 21 15:00:41 UTC 2022 - Jan Engelhardt <jeng...@inai.de>
+
+- Add 0001-Add-some-library-versioning.patch to further SLPP
+  compliance.
+
+-------------------------------------------------------------------

New:
----
  0001-Add-some-library-versioning.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ discord-rpc.spec ++++++
--- /var/tmp/diff_new_pack.MHFmCg/_old  2022-06-28 16:58:25.167479008 +0200
+++ /var/tmp/diff_new_pack.MHFmCg/_new  2022-06-28 16:58:25.171479012 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package discord-rpc
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,20 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           discord-rpc
 Version:        3.4.0
+%define shver  3_4_0
 Release:        0
 Summary:        Discord rich presence library
 License:        MIT
 Group:          Development/Libraries/C and C++
-Url:            https://github.com/discordapp/discord-rpc
+URL:            https://github.com/discordapp/discord-rpc
 Source:         
https://github.com/discordapp/%{name}/archive/v%{version}.tar.gz
+Patch1:         0001-Add-some-library-versioning.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  rapidjson-devel
@@ -32,23 +34,25 @@
 This is a library for interfacing your game with a locally running Discord
 desktop client.
 
-%package -n libdiscord-rpc
+%package -n libdiscord-rpc%{shver}
 Summary:        Discord RPC library
 Group:          System/Libraries
 Recommends:     discord
 
-%description -n libdiscord-rpc
-Discord RPC shared library
+%description -n libdiscord-rpc%{shver}
+This is a library for interfacing your game with a locally running Discord
+desktop client.
 
 %package devel
 Summary:        Development files for libdiscord-rpc
-Requires:       libdiscord-rpc = %{version}
+Requires:       libdiscord-rpc%{shver} = %{version}-%{release}
 
 %description devel
-Header files for the discord-rpc library
+Header files for the discord-rpc library.
 
 %prep
-%setup -q
+%autosetup -p1
+perl -i -lpe 's{\@PACKAGE_VERSION\@}{%version}g' src/CMakeLists.txt
 
 %build
 %cmake
@@ -63,8 +67,9 @@
 %doc README.md
 %{_includedir}/discord_register.h
 %{_includedir}/discord_rpc.h
-
-%files -n libdiscord-rpc
 %{_libdir}/libdiscord-rpc.so
 
+%files -n libdiscord-rpc%{shver}
+%{_libdir}/libdiscord-rpc.so.%{version}
+
 %changelog

++++++ 0001-Add-some-library-versioning.patch ++++++
>From b512cd3cfdc47a9684ea3cf1208a0c7ac921d0dc Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jeng...@inai.de>
Date: Mon, 20 Jun 2022 14:14:34 +0200
Subject: [PATCH] Add some library versioning
Upstream: https://github.com/discord/discord-rpc/pull/367/

discord-rpc silently changed ABI between v3.0.0 and v3.4.0.
This requires DT_SONAME changes. Implement something that fulfills
the tagging requirements for distributions.

(SLPP ??4.1 option 2;
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy#When_there_is_no_versioning)
---
 CMakeLists.txt     |    1 +
 src/CMakeLists.txt |    1 +
 2 files changed, 2 insertions(+)

Index: discord-rpc-3.4.0/CMakeLists.txt
===================================================================
--- discord-rpc-3.4.0.orig/CMakeLists.txt
+++ discord-rpc-3.4.0/CMakeLists.txt
@@ -1,5 +1,6 @@
 cmake_minimum_required (VERSION 3.2.0)
 project (DiscordRPC)
+set(DRPC_VERSION 3.4.0)
 
 include(GNUInstallDirs)
 
Index: discord-rpc-3.4.0/src/CMakeLists.txt
===================================================================
--- discord-rpc-3.4.0.orig/src/CMakeLists.txt
+++ discord-rpc-3.4.0/src/CMakeLists.txt
@@ -71,6 +71,7 @@ if(UNIX)
     endif(APPLE)
 
     add_library(discord-rpc ${BASE_RPC_SRC})
+    set_target_properties(discord-rpc PROPERTIES SOVERSION ${DRPC_VERSION})
     target_link_libraries(discord-rpc PUBLIC pthread)
     target_compile_options(discord-rpc PRIVATE
         -g

Reply via email to