commit 98622c2158cf36a0c38086755d94a53ca5fb5638
Author: Jan Palus <[email protected]>
Date:   Wed Jun 16 23:25:07 2021 +0000

    don't override CMAKE_BUILD_TYPE; rel 2

 srt-build_type.patch | 23 +++++++++++++++++++++++
 srt.spec             |  4 +++-
 2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/srt.spec b/srt.spec
index 78290e6..b3761ac 100644
--- 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
diff --git a/srt-build_type.patch b/srt-build_type.patch
new file mode 100644
index 0000000..b803995
--- /dev/null
+++ b/srt-build_type.patch
@@ -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}")
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/srt.git/commitdiff/98622c2158cf36a0c38086755d94a53ca5fb5638

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to