commit 18a43c6bcd039eea668f07dc217e8201d2938271
Author: Alex Fails <afails(a)localhost.localdomain>
Date: Fri Mar 12 17:17:49 2021 +0300
Revert
"https://lists.rpmfusion.org/archives/list/rpmfusion-developers@lists.rpmfusion.org/thread/5A7MRE3BG66PQXSP263FUZ7XS5PMDNUV/"
This reverts commit 1629a0363f946ba74ba150273c81b72ee97c82c1.
.gitignore | 8 +++
dead.package | 1 -
sources | 3 +
tg_owt.spec | 182 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 193 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..599f7fe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+/tg_owt-e8fcae7.tar.gz
+/tg_owt-12f4a27.tar.gz
+/tg_owt-10b988a.tar.gz
+/libvpx-5b63f0f.tar.gz
+/libyuv-ad89006.tar.gz
+/tg_owt-6eaebec.tar.gz
+/tg_owt-be23804.tar.gz
+/tg_owt-a198773.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..598d073
--- /dev/null
+++ b/sources
@@ -0,0 +1,3 @@
+SHA512 (libvpx-5b63f0f.tar.gz) =
6980b073efae2757a0e2068bd90778baf88a057b1df74380737958e319cd0e6a2fe6ef9462289fb8959a8482a01de4c599f5c52c7dfe78a6142f6c6246af3d19
+SHA512 (libyuv-ad89006.tar.gz) =
fbb1b7ab7801c371dfc5b9991fbcd49cec17f8af0ebf210eaa33b8c19b5a7333c0dfc831253628278eb7656b019424f4c33ecf8d8e5629d308f79f3bcbf415ba
+SHA512 (tg_owt-a198773.tar.gz) =
1b7ca215459e8344b2012b9d9e4ebd42113628114f129a2bd2961e2384188402da2f8d17f59ee85f7b83c7760a60a3ba02235105d5227dff7bbc4db6d660ec93
diff --git a/tg_owt.spec b/tg_owt.spec
new file mode 100644
index 0000000..dc350dd
--- /dev/null
+++ b/tg_owt.spec
@@ -0,0 +1,182 @@
+%undefine __cmake_in_source_build
+
+%global commit0 a19877363082da634a3c851a4698376504d2eaee
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global date 20210203
+
+# Git revision of libvpx...
+%global commit1 5b63f0f821e94f8072eb483014cfc33b05978bb9
+%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
+
+# Git revision of libyuv...
+%global commit2 ad890067f661dc747a975bc55ba3767fe30d4452
+%global shortcommit2 %(c=%{commit2}; echo ${c:0:7})
+
+Name: tg_owt
+Version: 0
+Release: 7.%{date}git%{shortcommit0}%{?dist}
+
+# Main project - BSD
+# abseil-cpp - ASL 2.0
+# libsrtp - BSD
+# libwebm - BSD
+# libyuv - BSD
+# openh264 - BSD
+# pffft - BSD
+# rnnoise - BSD
+# usrsctp - BSD
+License: BSD and ASL 2.0
+Summary: WebRTC library for the Telegram messenger
+URL:
https://github.com/desktop-app/%{name}
+
+Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
+Source1:
https://chromium.googlesource.com/webm/libvpx/+archive/%{commit1}.tar.gz#...
+Source2:
https://chromium.googlesource.com/libyuv/libyuv/+archive/%{commit2}.tar.g...
+
+BuildRequires: pkgconfig(alsa)
+BuildRequires: pkgconfig(libavcodec)
+BuildRequires: pkgconfig(libavformat)
+BuildRequires: pkgconfig(libavresample)
+BuildRequires: pkgconfig(libavutil)
+BuildRequires: pkgconfig(libjpeg)
+BuildRequires: pkgconfig(libpulse)
+BuildRequires: pkgconfig(libswscale)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(opus)
+BuildRequires: pkgconfig(protobuf)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xtst)
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: ninja-build
+BuildRequires: yasm
+
+Provides: bundled(abseil-cpp) = 0~gitfba8a31
+Provides: bundled(base64) = 0~git
+Provides: bundled(fft) = 0~git
+Provides: bundled(g711) = 0~git
+Provides: bundled(g722) = 0~git
+Provides: bundled(libevent) = 1.4.15
+Provides: bundled(libsrtp) = 2.2.0~git94ac00d
+Provides: bundled(libvpx) = 1.8.2~git%{shortcommit1}
+Provides: bundled(libwebm) = 0~git
+Provides: bundled(libyuv) = 0~git%{shortcommit2}
+Provides: bundled(ooura) = 0~git
+Provides: bundled(openh264) = 1.10.0~git6f26bce
+Provides: bundled(pffft) = 0~git483453d
+Provides: bundled(portaudio) = 0~git
+Provides: bundled(rnnoise) = 0~git91ef40
+Provides: bundled(sigslot) = 0~git
+Provides: bundled(spl_sqrt_floor) = 0~git
+Provides: bundled(usrsctp) = 1.0.0~gitbee946a
+
+# Disabling all low-memory architectures.
+ExclusiveArch: x86_64
+
+%description
+Special fork of the OpenWebRTC library for the Telegram messenger.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: pkgconfig(alsa)
+Requires: pkgconfig(libavcodec)
+Requires: pkgconfig(libavformat)
+Requires: pkgconfig(libavresample)
+Requires: pkgconfig(libavutil)
+Requires: pkgconfig(libjpeg)
+Requires: pkgconfig(libpulse)
+Requires: pkgconfig(libswscale)
+Requires: pkgconfig(openssl)
+Requires: pkgconfig(opus)
+Requires: pkgconfig(x11)
+Requires: pkgconfig(xtst)
+
+%description devel
+%{summary}.
+
+%prep
+%autosetup -n %{name}-%{commit0} -p1
+tar -xf %{SOURCE1} -C src/third_party/libvpx/source/libvpx
+tar -xf %{SOURCE2} -C src/third_party/libyuv
+
+mkdir legal
+cp -f -p src/third_party/abseil-cpp/LICENSE legal/LICENSE.abseil-cpp
+cp -f -p src/third_party/abseil-cpp/README.chromium legal/README.abseil-cpp
+cp -f -p src/third_party/libsrtp/LICENSE legal/LICENSE.libsrtp
+cp -f -p src/third_party/libsrtp/README.chromium legal/README.libsrtp
+cp -f -p src/third_party/libvpx/source/libvpx/LICENSE legal/LICENSE.libvpx
+cp -f -p src/third_party/libvpx/source/libvpx/PATENTS legal/PATENTS.libvpx
+cp -f -p src/third_party/libvpx/README.chromium legal/README.libvpx
+cp -f -p src/third_party/libyuv/LICENSE legal/LICENSE.libyuv
+cp -f -p src/third_party/libyuv/PATENTS legal/PATENTS.libyuv
+cp -f -p src/third_party/libyuv/README.chromium legal/README.libyuv
+cp -f -p src/third_party/openh264/src/LICENSE legal/LICENSE.openh264
+cp -f -p src/third_party/openh264/README.chromium legal/README.openh264
+cp -f -p src/third_party/pffft/LICENSE legal/LICENSE.pffft
+cp -f -p src/third_party/pffft/README.chromium legal/README.pffft
+cp -f -p src/third_party/rnnoise/COPYING legal/LICENSE.rnnoise
+cp -f -p src/third_party/rnnoise/README.chromium legal/README.rnnoise
+cp -f -p src/third_party/usrsctp/LICENSE legal/LICENSE.usrsctp
+cp -f -p src/third_party/usrsctp/README.chromium legal/README.usrsctp
+cp -f -p src/third_party/libvpx/source/libvpx/third_party/libwebm/LICENSE.TXT
legal/LICENSE.libwebm
+cp -f -p src/third_party/libvpx/source/libvpx/third_party/libwebm/PATENTS.TXT
legal/PATENTS.libwebm
+cp -f -p src/third_party/libvpx/source/libvpx/third_party/libwebm/README.libvpx
legal/README.libwebm
+cp -f -p src/base/third_party/libevent/LICENSE legal/LICENSE.libevent
+cp -f -p src/base/third_party/libevent/README.chromium legal/README.libevent
+cp -f -p src/common_audio/third_party/ooura/LICENSE legal/LICENSE.ooura
+cp -f -p src/common_audio/third_party/ooura/README.chromium legal/README.ooura
+cp -f -p src/common_audio/third_party/spl_sqrt_floor/LICENSE
legal/LICENSE.spl_sqrt_floor
+cp -f -p src/common_audio/third_party/spl_sqrt_floor/README.chromium
legal/README.spl_sqrt_floor
+cp -f -p src/modules/third_party/fft/LICENSE legal/LICENSE.fft
+cp -f -p src/modules/third_party/fft/README.chromium legal/README.fft
+cp -f -p src/modules/third_party/g711/LICENSE legal/LICENSE.g711
+cp -f -p src/modules/third_party/g711/README.chromium legal/README.g711
+cp -f -p src/modules/third_party/g722/LICENSE legal/LICENSE.g722
+cp -f -p src/modules/third_party/g722/README.chromium legal/README.g722
+cp -f -p src/modules/third_party/portaudio/LICENSE legal/LICENSE.portaudio
+cp -f -p src/modules/third_party/portaudio/README.chromium legal/README.portaudio
+cp -f -p src/rtc_base/third_party/base64/LICENSE legal/LICENSE.base64
+cp -f -p src/rtc_base/third_party/base64/README.chromium legal/README.base64
+cp -f -p src/rtc_base/third_party/sigslot/LICENSE legal/LICENSE.sigslot
+cp -f -p src/rtc_base/third_party/sigslot/README.chromium legal/README.sigslot
+
+%build
+# CMAKE_BUILD_TYPE should always be Release due to some hardcoded checks.
+%cmake -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
+ -DTG_OWT_USE_PROTOBUF:BOOL=ON \
+ -DTG_OWT_PACKAGED_BUILD:BOOL=ON
+%cmake_build
+
+%install
+%cmake_install
+
+%files
+%doc src/AUTHORS src/OWNERS legal/README.*
+%license LICENSE src/PATENTS legal/LICENSE.* legal/PATENTS.*
+%{_libdir}/lib%{name}.so.0*
+
+%files devel
+%{_includedir}/%{name}
+%{_libdir}/cmake/%{name}
+%{_libdir}/lib%{name}.so
+
+%changelog
+* Wed Feb 24 2021 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-7.20210203gita198773
+- Updated to latest Git snapshot.
+
+* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0-6.20210124gitbe23804
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Mon Feb 01 2021 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-5.20210124gitbe23804
+- Updated to latest Git snapshot.
+
+* Wed Dec 23 2020 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-4.20201218git6eaebec
+- Updated to latest Git snapshot.
+
+* Fri Nov 20 2020 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-3.20201112git10b988a
+- Updated to latest Git snapshot.