Updated to version 0.6.0.

This commit is contained in:
Vitaly Zaitsev 2021-11-19 16:58:37 +01:00
parent 81f3882118
commit cd8ab9080a
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
4 changed files with 17 additions and 45 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@
/mtxclient-0.4.0.tar.gz
/mtxclient-0.4.1.tar.gz
/mtxclient-0.5.1.tar.gz
/mtxclient-0.6.0.tar.gz

View File

@ -1,32 +0,0 @@
From b452a984b0fc522c21bb8df7d320bf13960974d0 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Thu, 16 Sep 2021 15:51:33 +0200
Subject: [PATCH] Fix compilaton with Olm 3.2.5
---
lib/crypto/client.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/crypto/client.cpp b/lib/crypto/client.cpp
index 95cfb35..5017fbb 100644
--- a/lib/crypto/client.cpp
+++ b/lib/crypto/client.cpp
@@ -37,15 +37,15 @@ static const std::array olmErrorStrings{
};
-OlmErrorCode
+mtx::crypto::OlmErrorCode
olm_exception::ec_from_string(std::string_view error)
{
for (size_t i = 0; i < olmErrorStrings.size(); i++) {
if (olmErrorStrings[i] == error)
- return static_cast<OlmErrorCode>(i);
+ return static_cast<mtx::crypto::OlmErrorCode>(i);
}
- return OlmErrorCode::UNKNOWN_ERROR;
+ return mtx::crypto::OlmErrorCode::UNKNOWN_ERROR;
}
void

View File

@ -6,27 +6,25 @@
%endif
Name: mtxclient
Version: 0.5.1
Release: 5%{?dist}
Version: 0.6.0
Release: 1%{?dist}
License: MIT
Summary: Client API library for Matrix, built on top of Boost.Asio
URL: https://github.com/Nheko-Reborn/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/Nheko-Reborn/mtxclient/commit/b452a984b0fc522c21bb8df7d320bf13960974d0
Patch100: %{name}-libolm-build-fix.patch
BuildRequires: cmake(mpark_variant)
BuildRequires: cmake(nlohmann_json) >= 3.1.2
BuildRequires: cmake(Olm) >= 3.1.0
BuildRequires: cmake(spdlog) >= 0.16
BuildRequires: cmake(nlohmann_json) >= 3.2.0
BuildRequires: cmake(Olm) >= 3.2.6
BuildRequires: cmake(spdlog) >= 1.0.0
BuildRequires: pkgconfig(coeurl)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libevent)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
BuildRequires: boost-devel >= 1.70
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
@ -55,12 +53,14 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DHUNTER_ENABLED:BOOL=OFF \
-DUSE_BUNDLED_BOOST:BOOL=OFF \
-DUSE_BUNDLED_SPDLOG:BOOL=OFF \
-DUSE_BUNDLED_OLM:BOOL=OFF \
-DUSE_BUNDLED_COEURL:BOOL=OFF \
-DUSE_BUNDLED_GTEST:BOOL=OFF \
-DUSE_BUNDLED_JSON:BOOL=OFF \
-DUSE_BUNDLED_LIBCURL:BOOL=OFF \
-DUSE_BUNDLED_LIBEVENT:BOOL=OFF \
-DUSE_BUNDLED_OLM:BOOL=OFF \
-DUSE_BUNDLED_OPENSSL:BOOL=OFF \
-DUSE_BUNDLED_SPDLOG:BOOL=OFF \
-DASAN:BOOL=OFF \
-DCOVERAGE:BOOL=OFF \
-DIWYU:BOOL=OFF \
@ -85,6 +85,9 @@ ln -s libmatrix_client.so.%{version} %{buildroot}%{_libdir}/libmatrix_client.so.
%{_libdir}/*.so
%changelog
* Fri Nov 19 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 0.6.0-1
- Updated to version 0.6.0.
* Mon Sep 27 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 0.5.1-5
- Fixed build against libolm 3.2.6.

View File

@ -1 +1 @@
SHA512 (mtxclient-0.5.1.tar.gz) = f0a5e823bd7f3cccdf5f919c04c36a1a5ab4d2627a6f8f3fac78e4b300eda3b9e1f5060fb31e6e47267bbafc3a03f6c2a2d16c2323e63ce4889f551860e7703f
SHA512 (mtxclient-0.6.0.tar.gz) = 8ee9cd6cfab64625029ed18b5de72523a8d7dc1ac67ff8d9f32d730f15e473248ec11447a480ce9f76629d1bd5722785f229857489a63e71e92aae0990a3d20f