--- /dev/null
+--- 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}")
+
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
%prep
%setup -q
+%patch0 -p1
%build
install -d build