commit 220e031ebea1cd021fedcdcc84ec29070a79cc0a
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sat Dec 30 14:20:09 2017 +0100
Updated to version 1.0.3. Use regular releases instead of Git snapshots.
.gitignore | 1 +
libtgvoip-build-fixes.patch | 19 ++++++++++++-------
libtgvoip.spec | 15 +++++++--------
sources | 2 +-
4 files changed, 21 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e5d7b66..d3123b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/libtgvoip-bfd5cfe.tar.gz
/libtgvoip-6a0b3b2.tar.gz
+/libtgvoip-1.0.3.tar.gz
diff --git a/libtgvoip-build-fixes.patch b/libtgvoip-build-fixes.patch
index a3ecae5..7979ca8 100644
--- a/libtgvoip-build-fixes.patch
+++ b/libtgvoip-build-fixes.patch
@@ -1,29 +1,34 @@
-From f6e77fb45052100ae7eeaca658630e0a57d4b34b Mon Sep 17 00:00:00 2001
+From 58b79cc2f7ebdb9f70ae726c60a1a51772d42180 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Thu, 6 Jul 2017 17:27:01 +0200
Subject: [PATCH] Fixed build of libtgvoip under Fedora as shared library.
---
- VoIPController.cpp | 3 ++-
+ VoIPController.cpp | 5 +++-
libtgvoip.gyp | 17 +++++++++-----
webrtc_dsp/webrtc/common_audio/wav_file.cc | 20 ++++++++++++----
webrtc_dsp/webrtc/common_audio/wav_header.cc | 34 +++++++++++++++++++++++++++-
webrtc_dsp/webrtc/typedefs.h | 14 +++++++++++-
- 5 files changed, 74 insertions(+), 14 deletions(-)
+ 5 files changed, 76 insertions(+), 14 deletions(-)
diff --git a/VoIPController.cpp b/VoIPController.cpp
-index 78e9e4b..fb256e3 100644
+index ab7e2fd..cb2fabd 100644
--- a/VoIPController.cpp
+++ b/VoIPController.cpp
-@@ -102,6 +102,7 @@ bool VoIPController::didInitWin32TimeScale = false;
+@@ -103,9 +103,12 @@ bool VoIPController::didInitWin32TimeScale = false;
+ #define SHA256_LENGTH 32
+
#ifndef TGVOIP_USE_CUSTOM_CRYPTO
++extern "C" {
#include <openssl/sha.h>
#include <openssl/aes.h>
+#include <openssl/modes.h>
#include <openssl/rand.h>
++}
void tgvoip_openssl_aes_ige_encrypt(uint8_t* in, uint8_t* out, size_t length, uint8_t*
key, uint8_t* iv){
-@@ -131,7 +132,7 @@ void tgvoip_openssl_sha256(uint8_t* msg, size_t len, uint8_t*
output){
+ AES_KEY akey;
+@@ -134,7 +137,7 @@ void tgvoip_openssl_sha256(uint8_t* msg, size_t len, uint8_t*
output){
void tgvoip_openssl_aes_ctr_encrypt(uint8_t* inout, size_t length, uint8_t* key,
uint8_t* iv, uint8_t* ecount, uint32_t* num){
AES_KEY akey;
AES_set_encrypt_key(key, 32*8, &akey);
@@ -202,5 +207,5 @@ index c960d95..2252855 100644
#if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))
--
-2.13.3
+2.14.3
diff --git a/libtgvoip.spec b/libtgvoip.spec
index b6c4c24..7a46453 100644
--- a/libtgvoip.spec
+++ b/libtgvoip.spec
@@ -1,18 +1,14 @@
-%global commit0 6a0b3b23b79949828d36be2a45007602c6f493d4
-%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
-%global date 20171111
-
Summary: VoIP library for Telegram clients
Name: libtgvoip
-Version: 1.0.1
-Release: 2.%{date}git%{shortcommit0}%{?dist}
+Version: 1.0.3
+Release: 1%{?dist}
# Libtgvoip shared library - Public Domain.
# Bundled webrtc library - BSD with patented echo cancellation algorithms.
License: Public Domain and BSD
URL:
https://github.com/grishka/%{name}
-Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
+Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: %{name}-build-fixes.patch
Provides: bundled(webrtc-audio-processing) = 0.3
@@ -36,7 +32,7 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%{summary}.
%prep
-%autosetup -n %{name}-%{commit0} -p1
+%autosetup -n %{name}-%{version} -p1
%build
export VOIPVER="%{version}"
@@ -72,6 +68,9 @@ find audio -maxdepth 1 -type f -name "*.h" -exec install -m
0644 -p '{}' %{build
%{_libdir}/%{name}.so
%changelog
+* Fri Dec 29 2017 Vitaly Zaitsev <vitaly(a)easycoding.org> - 1.0.3-1
+- Updated to 1.0.3 (regular release).
+
* Sat Nov 18 2017 Vitaly Zaitsev <vitaly(a)easycoding.org> -
1.0.1-2.20171111git6a0b3b2
- Provide compactibility with 1.0.
diff --git a/sources b/sources
index aeb4c59..b71c39c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-463774e3d51c56c1c740feed966305d8 libtgvoip-6a0b3b2.tar.gz
+6dd7d3c64a7c03e70b1a0d090e6fe0bb libtgvoip-1.0.3.tar.gz