commit e0821fb1b34d60c256a9a0732a5f1d1e78378f0a
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sat Dec 31 11:17:10 2022 +0100
Introduced build conditionals to match telegram-desktop package.
tg_owt.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tg_owt.spec b/tg_owt.spec
index f575ac4..df46b3e 100644
--- a/tg_owt.spec
+++ b/tg_owt.spec
@@ -1,4 +1,6 @@
%global debug_package %{nil}
+%global legacy_ffmpeg 1
+%global legacy_openssl 1
%global commit0 1eab2d736a2fecce01686689b72e39ad8c314ebb
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
@@ -71,7 +73,7 @@ BuildRequires: yasm
# Upstream refuses to fix this issue:
#
https://github.com/telegramdesktop/tdesktop/issues/24855
#
https://github.com/telegramdesktop/tdesktop/issues/23899
-%if 0%{?fedora} && 0%{?fedora} >= 36
+%if %{legacy_ffmpeg}
BuildRequires: compat-ffmpeg4-devel
%else
BuildRequires: pkgconfig(libavcodec)
@@ -83,7 +85,7 @@ BuildRequires: pkgconfig(libswscale)
# Video calls doesn't work when built against openssl 3.0:
#
https://github.com/telegramdesktop/tdesktop/issues/24698
-%if 0%{?fedora} && 0%{?fedora} >= 36
+%if %{legacy_openssl}
BuildRequires: openssl1.1-devel
%else
BuildRequires: pkgconfig(openssl)
@@ -131,7 +133,7 @@ Requires: pkgconfig(xrandr)
Requires: pkgconfig(xrender)
Requires: pkgconfig(xtst)
-%if 0%{?fedora} && 0%{?fedora} >= 36
+%if %{legacy_ffmpeg}
Requires: compat-ffmpeg4-devel
%else
Requires: pkgconfig(libavcodec)
@@ -141,7 +143,7 @@ Requires: pkgconfig(libswresample)
Requires: pkgconfig(libswscale)
%endif
-%if 0%{?fedora} && 0%{?fedora} >= 36
+%if %{legacy_openssl}
Requires: openssl1.1-devel
%else
Requires: pkgconfig(openssl)