From: Jan Palus Date: Wed, 16 Jun 2021 23:25:07 +0000 (+0000) Subject: don't override CMAKE_BUILD_TYPE; rel 2 X-Git-Tag: auto/th/srt-1.4.3-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=98622c2158cf36a0c38086755d94a53ca5fb5638;p=packages%2Fsrt.git don't override CMAKE_BUILD_TYPE; rel 2 --- 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}") + 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