File: 001-soversion-from-rules.patch

package info (click to toggle)
bcmatroska2 5.3.101-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,012 kB
  • sloc: ansic: 70,674; asm: 3,191; cpp: 3,011; makefile: 562; pascal: 457; xml: 227; sh: 189; php: 182
file content (35 lines) | stat: -rw-r--r-- 1,284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Date: Mon, 10 Feb 2025 09:06:01 +0100
Subject: soversion-from-rules

---
 CMakeLists.txt              | 2 +-
 libmatroska2/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1532a6..8b9246f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,7 @@
 cmake_minimum_required(VERSION 3.1)
 
 project(BCMatroska2
-	VERSION 0.23
+	VERSION ${DEB_VERSION_UPSTREAM}
 	LANGUAGES C
 )
 
diff --git a/libmatroska2/CMakeLists.txt b/libmatroska2/CMakeLists.txt
index 6115040..6547bd0 100644
--- a/libmatroska2/CMakeLists.txt
+++ b/libmatroska2/CMakeLists.txt
@@ -32,7 +32,7 @@ if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_
 endif()
 
 add_library(bcmatroska2 $<TARGET_OBJECTS:bcmatroska2-corec-objects> $<TARGET_OBJECTS:bcmatroska2-ebml-objects> ${MATROSKA2_SOURCE_FILES})
-set_target_properties(bcmatroska2 PROPERTIES VERSION 0.0.0 SOVERSION 0)
+set_target_properties(bcmatroska2 PROPERTIES VERSION ${DEB_VERSION_UPSTREAM} SOVERSION ${DEB_SOVERSION})
 set_target_properties(bcmatroska2 PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
 if(APPLE)
 	target_link_libraries(bcmatroska2 PRIVATE "-framework Foundation")