]> git.pld-linux.org Git - packages/srt.git/commitdiff
don't override CMAKE_BUILD_TYPE; rel 2 auto/th/srt-1.4.3-2
authorJan Palus <atler@pld-linux.org>
Wed, 16 Jun 2021 23:25:07 +0000 (23:25 +0000)
committerJan Palus <atler@pld-linux.org>
Wed, 16 Jun 2021 23:25:07 +0000 (23:25 +0000)
srt-build_type.patch [new file with mode: 0644]
srt.spec

diff --git a/srt-build_type.patch b/srt-build_type.patch
new file mode 100644 (file)
index 0000000..b803995
--- /dev/null
@@ -0,0 +1,23 @@
+--- srt-1.4.3/CMakeLists.txt.orig      2021-04-27 08:44:11.000000000 +0000
++++ srt-1.4.3/CMakeLists.txt   2021-06-16 23:23:24.120623326 +0000
+@@ -64,13 +64,13 @@
+ # Set CMAKE_BUILD_TYPE properly, now that you know
+ # that ENABLE_DEBUG is set as it should.
+-if (ENABLE_DEBUG EQUAL 2)
+-      set (CMAKE_BUILD_TYPE "RelWithDebInfo")
+-elseif (ENABLE_DEBUG) # 1, ON, YES, TRUE, Y, or any other non-zero number
+-      set (CMAKE_BUILD_TYPE "Debug")
+-else()
+-      set (CMAKE_BUILD_TYPE "Release")
+-endif()
++#if (ENABLE_DEBUG EQUAL 2)
++#     set (CMAKE_BUILD_TYPE "RelWithDebInfo")
++#elseif (ENABLE_DEBUG) # 1, ON, YES, TRUE, Y, or any other non-zero number
++#     set (CMAKE_BUILD_TYPE "Debug")
++#else()
++#     set (CMAKE_BUILD_TYPE "Release")
++#endif()
+ message(STATUS "BUILD TYPE: ${CMAKE_BUILD_TYPE}")
index 78290e636e000f894b0771f2011536a01252cbeb..b3761acab51de7e9b3e755794f1708791a213f9d 100644 (file)
--- a/srt.spec
+++ b/srt.spec
@@ -6,12 +6,13 @@ Summary:      Secure Reliable Transport library
 Summary(pl.UTF-8):     Biblioteka Secure Reliable Transport
 Name:          srt
 Version:       1.4.3
-Release:       1
+Release:       2
 License:       MPL v2.0
 Group:         Libraries
 #Source0Download: https://github.com/Haivision/srt/releases
 Source0:       https://github.com/Haivision/srt/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 3ed903e5a32b9ee9ec011028fb34f331
+Patch0:                %{name}-build_type.patch
 URL:           https://www.srtalliance.org/
 BuildRequires: cmake >= 2.8.12
 BuildRequires: libstdc++-devel >= 6:4.7
@@ -57,6 +58,7 @@ Statyczna biblioteka SRT.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
This page took 0.136753 seconds and 4 git commands to generate.