commit libqmatrixclient for openSUSE:Factory

2020-04-02 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2020-04-02 17:43:07

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.3248 (New)


Package is "libqmatrixclient"

Thu Apr  2 17:43:07 2020 rev:8 rq:790680 version:0.5.3.2

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2020-03-31 17:17:54.523729085 +0200
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.3248/libqmatrixclient.changes  
2020-04-02 17:43:09.061386531 +0200
@@ -1,0 +2,8 @@
+Wed Apr  1 18:19:53 UTC 2020 - ec...@opensuse.org
+
+- Update to 0.5.3.2
+  This is the same as 0.5.3.1, except the API version 
+  (aka soversion) bumped to 0.5.3 to ensure correct upgrade via 
+  Quaternion dependencies.
+
+---

Old:

  libqmatrixclient-0.5.3.1.tar.gz

New:

  libqmatrixclient-0.5.3.2.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.VYVg7o/_old  2020-04-02 17:43:09.617386961 +0200
+++ /var/tmp/diff_new_pack.VYVg7o/_new  2020-04-02 17:43:09.617386961 +0200
@@ -18,11 +18,11 @@
 
 #
 %define soname libQMatrixClient
-%define soversion 0_5_1
+%define soversion 0_5_3
 %define sname libQuotient
 
 Name:   libqmatrixclient
-Version:0.5.3.1
+Version:0.5.3.2
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only

++ libqmatrixclient-0.5.3.1.tar.gz -> libqmatrixclient-0.5.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libQuotient-0.5.3.1/CMakeLists.txt 
new/libQuotient-0.5.3.2/CMakeLists.txt
--- old/libQuotient-0.5.3.1/CMakeLists.txt  2020-03-31 07:46:55.0 
+0200
+++ new/libQuotient-0.5.3.2/CMakeLists.txt  2020-04-01 18:49:48.0 
+0200
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.1)
 
-set(API_VERSION "0.5.1") # Normally it should just include major.minor
-project(qmatrixclient VERSION "0.5.3.1" LANGUAGES CXX)
+set(API_VERSION "0.5.3") # Normally it should just include major.minor
+project(qmatrixclient VERSION "0.5.3.2" LANGUAGES CXX)
 
 option(QMATRIXCLIENT_INSTALL_EXAMPLE "install qmc-example application" ON)
 




commit libqmatrixclient for openSUSE:Factory

2020-03-31 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2020-03-31 17:17:51

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.3160 (New)


Package is "libqmatrixclient"

Tue Mar 31 17:17:51 2020 rev:7 rq:790121 version:0.5.3.1

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2020-03-30 23:03:52.388192573 +0200
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.3160/libqmatrixclient.changes  
2020-03-31 17:17:54.523729085 +0200
@@ -1,0 +2,12 @@
+Tue Mar 31 11:29:21 UTC 2020 - ec...@opensuse.org
+
+- Update to 0.5.3.1
+  One more "sustaining" release that fixes a long-standing problem
+  with job objects lifetime lasting beyond their connection
+  lifetime, leading to crashes on connection removal (#397/#398).
+  This problem became very apparent with introduction of SSO in 
+  Quaternion, where connection objects are removed as soon as the 
+  login dialog is cancelled; this release is aimed solely at fixing
+  that.
+
+---

Old:

  libqmatrixclient-0.5.3.tar.gz

New:

  libqmatrixclient-0.5.3.1.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.XojZhb/_old  2020-03-31 17:17:55.599729768 +0200
+++ /var/tmp/diff_new_pack.XojZhb/_new  2020-03-31 17:17:55.599729768 +0200
@@ -22,7 +22,7 @@
 %define sname libQuotient
 
 Name:   libqmatrixclient
-Version:0.5.3
+Version:0.5.3.1
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only

++ libqmatrixclient-0.5.3.tar.gz -> libqmatrixclient-0.5.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libQuotient-0.5.3/CMakeLists.txt 
new/libQuotient-0.5.3.1/CMakeLists.txt
--- old/libQuotient-0.5.3/CMakeLists.txt2020-03-27 18:07:13.0 
+0100
+++ new/libQuotient-0.5.3.1/CMakeLists.txt  2020-03-31 07:46:55.0 
+0200
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.1)
 
 set(API_VERSION "0.5.1") # Normally it should just include major.minor
-project(qmatrixclient VERSION "0.5.3" LANGUAGES CXX)
+project(qmatrixclient VERSION "0.5.3.1" LANGUAGES CXX)
 
 option(QMATRIXCLIENT_INSTALL_EXAMPLE "install qmc-example application" ON)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libQuotient-0.5.3/lib/connection.cpp 
new/libQuotient-0.5.3.1/lib/connection.cpp
--- old/libQuotient-0.5.3/lib/connection.cpp2020-03-27 18:07:13.0 
+0100
+++ new/libQuotient-0.5.3.1/lib/connection.cpp  2020-03-31 07:46:55.0 
+0200
@@ -175,52 +175,60 @@
 maybeBaseUrl.setScheme("https"); // Instead of the Qt-default "http"
 if (!match.hasMatch() || !maybeBaseUrl.isValid())
 {
-emit resolveError(
-tr("%1 is not a valid homeserver address")
-.arg(maybeBaseUrl.toString()));
+emit resolveError(tr("%1 is not a valid homeserver address")
+  .arg(maybeBaseUrl.toString()));
 return;
 }
 
-setHomeserver(maybeBaseUrl);
-
 auto domain = maybeBaseUrl.host();
 qCDebug(MAIN) << "Finding the server" << domain;
 
+d->data->setBaseUrl(maybeBaseUrl); // Just enough to check .well-known file
 auto getWellKnownJob = callApi();
-connect(getWellKnownJob, ::finished, [this, getWellKnownJob, 
maybeBaseUrl] {
-if (getWellKnownJob->status() == BaseJob::NotFoundError) {
-qCDebug(MAIN) << "No .well-known file, IGNORE";
-} else if (getWellKnownJob->status() != BaseJob::Success) {
-qCDebug(MAIN) << "Fetching .well-known file failed, FAIL_PROMPT";
-emit resolveError(tr("Fetching .well-known file failed"));
-return;
-} else if (getWellKnownJob->data().homeserver.baseUrl.isEmpty()) {
-qCDebug(MAIN) << "base_url not provided, FAIL_PROMPT";
-emit resolveError(tr("base_url not provided"));
-return;
-} else if 
(!QUrl(getWellKnownJob->data().homeserver.baseUrl).isValid()) {
-qCDebug(MAIN) << "base_url invalid, FAIL_ERROR";
-emit resolveError(tr("base_url invalid"));
-return;
-} else {
-QUrl baseUrl(getWellKnownJob->data().homeserver.baseUrl);
-
-qCDebug(MAIN) << ".well-known for" << maybeBaseUrl.host() << "is" 
<< baseUrl.authority();
-setHomeserver(baseUrl);
-}
-
-auto getVersionsJob = callApi();
-
-connect(getVersionsJob, ::finished, [this, getVersionsJob] {
-  

commit libqmatrixclient for openSUSE:Factory

2020-03-30 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2020-03-30 23:03:50

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.3160 (New)


Package is "libqmatrixclient"

Mon Mar 30 23:03:50 2020 rev:6 rq:789675 version:0.5.3

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2020-01-29 13:23:09.602316447 +0100
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.3160/libqmatrixclient.changes  
2020-03-30 23:03:52.388192573 +0200
@@ -1,0 +2,34 @@
+Mon Mar 30 05:44:43 UTC 2020 - ec...@opensuse.org
+
+- Update to 0.5.3
+  - (#301/#383) Room::aliases() and Room::setAliases() are fixed, 
+using the new alias management introduced in MSC2432
+  - (#321) More careful linkification of Matrix ids
+  - (#326) Support for the server notices room tag (MSC1452)
+  - (#330) Support of resolving the homeserver using .well-known
+(MSC433)
+  - (#341/#373/#376) Support of message editing and annotation
+(MSC1849)
+  - (#344) Compatibility with user deactivation error codes
+(MSC2181)
+  - (#345) Fix cache becoming inconsistent with actual room state
+due to unread counts not properly tracked
+  - (#347) Fix for a corner case in internal user avatar management
+that may lead to a crash in rare cases
+  - (#354) Provide a means to get the full list of rooms to client
+applications (aimed at fixing quotient-im/Quaternion#637 in the
+next Quaternion 0.0.9.4 rebuild)
+  - (#358) Only send access token where the spec it should be sent
+  - (#359) Fix room highlighting for names with a hashtag
+  - (#361) Initialise read marker if there's none on the room yet
+  - (#365) Remove prev_content from special keys preserved against
+redaction (MSC1954) - thanks to nepugia for reporting
+  - (#387) Compatibility with Qt 5.14
+  - (#386/#388) SSO support
+  - (#390) Notify the client application about alias updates
+- The name of the library in this branch is still libQMatrixClient.
+  Version 0.6 will be named libQuotient, as announced previously.
+- Drop 0001-Compatibility-with-Qt-5.14.patch because no more
+  necessary.
+
+---

Old:

  0001-Compatibility-with-Qt-5.14.patch
  libqmatrixclient-0.5.2.tar.gz

New:

  libqmatrixclient-0.5.3.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.8sEEeU/_old  2020-03-30 23:03:53.644193288 +0200
+++ /var/tmp/diff_new_pack.8sEEeU/_new  2020-03-30 23:03:53.648193290 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libqmatrixclient
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 %define sname libQuotient
 
 Name:   libqmatrixclient
-Version:0.5.2
+Version:0.5.3
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only
@@ -31,8 +31,6 @@
 Source0:
https://github.com/quotient-im/libQuotient/archive/%{version}/%{name}-%{version}.tar.gz
 # Old SourceUrl for documentation.
 #Source0:
https://github.com/QMatrixClient/libqmatrixclient/archive/%%{version}/%%{name}-%%{version}.tar.gz
-# PATCH-FIX-UPSTREAM
-Patch0: 0001-Compatibility-with-Qt-5.14.patch
 BuildRequires:  cmake
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(Qt5Core) >= 5.6
@@ -68,7 +66,6 @@
 
 %prep
 %setup -q -n %{sname}-%{version}
-%patch0 -p1
 
 %build
 %if 0%{?suse_version} < 1500

++ libqmatrixclient-0.5.2.tar.gz -> libqmatrixclient-0.5.3.tar.gz ++
 1998 lines of diff (skipped)




commit libqmatrixclient for openSUSE:Factory

2020-01-29 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2020-01-29 13:21:54

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.26092 (New)


Package is "libqmatrixclient"

Wed Jan 29 13:21:54 2020 rev:5 rq:768264 version:0.5.2

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2019-06-12 13:10:49.373035394 +0200
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.26092/libqmatrixclient.changes 
2020-01-29 13:23:09.602316447 +0100
@@ -1,0 +2,10 @@
+Wed Jan 29 09:01:29 UTC 2020 - ec...@opensuse.org
+
+- Update to 0.5.2
+  This is the last version of libqmatrixclient.
+  Only for quaternion and other packages wich need that.
+  Problem is that libqmatrixclient was renamed, but quaternion from
+  same developer use still old libnames.
+- Add 0001-Compatibility-with-Qt-5.14.patch from upstream.
+
+---
@@ -11,0 +22 @@
+- Run spec-cleaner.

Old:

  libqmatrixclient-0.5.1.2.tar.gz

New:

  0001-Compatibility-with-Qt-5.14.patch
  libqmatrixclient-0.5.2.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.STUNii/_old  2020-01-29 13:23:10.266316786 +0100
+++ /var/tmp/diff_new_pack.STUNii/_new  2020-01-29 13:23:10.270316788 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libqmatrixclient
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,33 +12,38 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 #
 %define soname libQMatrixClient
 %define soversion 0_5_1
+%define sname libQuotient
 
 Name:   libqmatrixclient
-Version:0.5.1.2
+Version:0.5.2
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only
 Group:  Development/Libraries/C and C++
-Url:https://github.com/QMatrixClient/libqmatrixclient
-Source0:
https://github.com/QMatrixClient/libqmatrixclient/archive/%{version}/%{name}-%{version}.tar.gz
+URL:https://github.com/quotient-im/libQuotient/
+Source0:
https://github.com/quotient-im/libQuotient/archive/%{version}/%{name}-%{version}.tar.gz
+# Old SourceUrl for documentation.
+#Source0:
https://github.com/QMatrixClient/libqmatrixclient/archive/%%{version}/%%{name}-%%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
+Patch0: 0001-Compatibility-with-Qt-5.14.patch
 BuildRequires:  cmake
-%if 0%{?suse_version} < 1500
-BuildRequires:  gcc7-c++
-%else
-BuildRequires:  gcc-c++
-%endif
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(Qt5Core) >= 5.6
 BuildRequires:  pkgconfig(Qt5Gui)
 BuildRequires:  pkgconfig(Qt5Multimedia)
 BuildRequires:  pkgconfig(Qt5Network)
+%if 0%{?suse_version} < 1500
+BuildRequires:  gcc7-c++
+%else
+BuildRequires:  gcc-c++
+%endif
 
 %description
 Library for Qt-based Matrix chat clients. It is required by
@@ -62,14 +67,17 @@
 developing applications that use %{name}.
 
 %prep
-%setup -q
+%setup -q -n %{sname}-%{version}
+%patch0 -p1
 
 %build
 %if 0%{?suse_version} < 1500
 export CC="gcc-7"
 export CXX="g++-7"
 %endif
-%cmake
+%cmake \
+   -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/%{name} \
+   -DBUILD_SHARED_LIBS=ON
 
 %install
 %cmake_install
@@ -91,23 +99,7 @@
 %{_libdir}/pkgconfig/QMatrixClient.pc
 %{_libdir}/libQMatrixClient.so
 %{_libdir}/cmake/QMatrixClient/
-%dir %{_includedir}/csapi
-%dir %{_includedir}/csapi/definitions
-%dir %{_includedir}/csapi/definitions/wellknown
-%dir %{_includedir}/application-service
-%dir %{_includedir}/application-service/definitions
-%dir %{_includedir}/identity
-%dir %{_includedir}/identity/definitions
-%dir %{_includedir}/jobs
-%dir %{_includedir}/events
-%{_includedir}/*.h
-%{_includedir}/application-service/definitions/*.h
-%{_includedir}/csapi/*.h
-%{_includedir}/csapi/definitions/*h
-%{_includedir}/csapi/definitions/wellknown/*h
-%{_includedir}/events/*.h
-%{_includedir}/identity/definitions/*.h
-%{_includedir}/jobs/*.h
+%{_includedir}/%{name}
 %{_bindir}/qmc-example
 
 %changelog

++ 0001-Compatibility-with-Qt-5.14.patch ++
>From 0db8cd8772155f8f6f412c754b15552c5f244a0b Mon Sep 17 00:00:00 2001
From: Kitsune Ral 
Date: Sat, 2 Nov 2019 16:20:57 +0900
Subject: [PATCH] 

commit libqmatrixclient for openSUSE:Factory

2019-06-12 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2019-06-12 13:10:47

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.4811 (New)


Package is "libqmatrixclient"

Wed Jun 12 13:10:47 2019 rev:4 rq:699392 version:0.5.1.2

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2019-01-15 09:17:46.374157400 +0100
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.4811/libqmatrixclient.changes  
2019-06-12 13:10:49.373035394 +0200
@@ -1,0 +2,73 @@
+Thu Apr 18 14:10:46 UTC 2019 - ec...@opensuse.org
+
+- Update to 0.5.1.2
+  - (#316) Expired tokens no more bring IncorrectRequestError 
+instead of ContentAccessError; consequently, 
+Connection::logout() ignores ContentAccessErrors so expired 
+tokens don't leave the library in a "can't go-in, can't go out" 
+state.
+  - Jobs abandoned due to Connection being deleted no more cause 
+crashes.
+
+---
+Sat Apr  6 12:25:50 UTC 2019 - ec...@opensuse.org
+
+- Update to 0.5.1.1
+  This release fixes a bug that makes 0.5.1 not being "new enough" 
+  for Quaternion 0.0.9.4, and another bug that made user showing up 
+  multiple times in the user list of Quaternion after renaming. 
+  Otherwise it's the same as version 0.5.1.
+
+---
+Fri Apr  5 07:46:12 UTC 2019 - ec...@opensuse.org
+
+- Update to 0.5.1
+  - Fix (#303): linkification doesn't break on peculiar links.
+  - Fix (#310 and 27c2989): quirks in rendering room display names 
+have been ironed out.
+  - Fix: Tighter validations of URLs coming with file events 
+(too relaxed validations were causing the library to 
+assert-crash on, e.g., encrypted attachments).
+  - Enhancement (#305): rooms created as direct chats are now 
+automatically marked as m.direct for invited as well as 
+inviting users.
+  - Enhancement (#306): Room::canSwitchVersions() returns false on 
+rooms already upgraded (you still can disregard and call 
+Room::switchVersion() but you better think twice 
+- see matrix-org/matrix-doc#1937).
+  - Enhancement: Room::postFile() now first starts file upload and 
+then places a pending event (neatly packed with file transfer 
+information), rather than the other way around. Unless you do 
+weird things with the library's API, you shouldn't notice.
+  - Enhancement: LRO/RLO Unicode markers are now stripped from 
+display names, to curtail abuse of those.
+  - Feature: Connection::domain() to save client authors from 
+taking the domain from user MXID.
+
+---
+Wed Apr  3 09:01:26 UTC 2019 - ec...@opensuse.org
+
+- Update to 0.5.0.2
+  * Another bugfix release in 0.5.x branch, fixing issues with 
+sending read receipts and redactions in v3 rooms (#300).
+
+- Changes from 0.5.0.1
+  * This version fixes too stringent checks in debug builds that 
+led to assertion crashes upon encounter with upgraded rooms.
+
+- Changes from 0.5
+  As usual for 0.x versions, 0.5 breaks API compatibility with 
+  previous versions; 0.4-compatible clients may or may not need 
+  changes in order to compile with version 0.5. As usual, see diffs
+  in header files to track the changes and update the client code 
+  accordingly; these release notes highlight most prominent API 
+  changes.
+
+  Micro-versions in 0.5.y will maintain the API and ABI. 
+  Version 0.6 will break either API or ABI or both.
+
+  Over 200 commits. So see for changelog
+
+  https://github.com/QMatrixClient/libqmatrixclient/commits/0.5.0
+
+---

Old:

  v0.4.2.1.tar.gz

New:

  libqmatrixclient-0.5.1.2.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.kYMzOV/_old  2019-06-12 13:10:49.897034844 +0200
+++ /var/tmp/diff_new_pack.kYMzOV/_new  2019-06-12 13:10:49.901034840 +0200
@@ -12,22 +12,22 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 #
 %define soname libQMatrixClient
-%define soversion 0_4
+%define soversion 0_5_1
 
 Name:   libqmatrixclient
-Version:0.4.2.1
+Version:0.5.1.2
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only
 Group:  Development/Libraries/C and C++
 Url: 

commit libqmatrixclient for openSUSE:Factory

2019-01-15 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2019-01-15 09:17:26

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.28833 (New)


Package is "libqmatrixclient"

Tue Jan 15 09:17:26 2019 rev:3 rq:665301 version:0.4.2.1

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2018-12-18 14:59:54.394114358 +0100
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.28833/libqmatrixclient.changes 
2019-01-15 09:17:46.374157400 +0100
@@ -1,0 +2,9 @@
+Sun Jan 13 12:42:05 UTC 2019 - Michael Vetter 
+
+
+- Update to 0.4.2.1:
+  * No more treat fake state events (that don't have
+state_key, even if they have state-related type, e.g., m.room.topic)
+as state events, turning them into unknown events instead.
+
+---

Old:

  v0.4.1.tar.gz

New:

  v0.4.2.1.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.gZlN3N/_old  2019-01-15 09:17:46.818156986 +0100
+++ /var/tmp/diff_new_pack.gZlN3N/_new  2019-01-15 09:17:46.850156956 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libqmatrixclient
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 %define soversion 0_4
 
 Name:   libqmatrixclient
-Version:0.4.1
+Version:0.4.2.1
 Release:0
 Summary:Library for Qt Matrix Clients
 License:LGPL-2.1-only

++ v0.4.1.tar.gz -> v0.4.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libqmatrixclient-0.4.1/CMakeLists.txt 
new/libqmatrixclient-0.4.2.1/CMakeLists.txt
--- old/libqmatrixclient-0.4.1/CMakeLists.txt   2018-12-06 13:01:06.0 
+0100
+++ new/libqmatrixclient-0.4.2.1/CMakeLists.txt 2019-01-13 10:54:44.0 
+0100
@@ -140,7 +140,7 @@
 ${libqmatrixclient_cswellknown_SRCS}
 ${libqmatrixclient_asdef_SRCS} ${libqmatrixclient_isdef_SRCS})
 set(API_VERSION "0.4")
-set_property(TARGET QMatrixClient PROPERTY VERSION "${API_VERSION}.0")
+set_property(TARGET QMatrixClient PROPERTY VERSION "${API_VERSION}.2.1")
 set_property(TARGET QMatrixClient PROPERTY SOVERSION ${API_VERSION} )
 set_property(TARGET QMatrixClient PROPERTY
  INTERFACE_QMatrixClient_MAJOR_VERSION ${API_VERSION})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libqmatrixclient-0.4.1/examples/qmc-example.cpp 
new/libqmatrixclient-0.4.2.1/examples/qmc-example.cpp
--- old/libqmatrixclient-0.4.1/examples/qmc-example.cpp 2018-12-06 
13:01:06.0 +0100
+++ new/libqmatrixclient-0.4.2.1/examples/qmc-example.cpp   2019-01-13 
10:54:44.0 +0100
@@ -5,6 +5,7 @@
 #include "csapi/room_send.h"
 #include "csapi/joining.h"
 #include "csapi/leaving.h"
+#include "events/simplestateevents.h"
 
 #include 
 #include 
@@ -27,6 +28,7 @@
 void onNewRoom(Room* r);
 void startTests();
 void sendMessage();
+void setTopic();
 void addAndRemoveTag();
 void sendAndRedact();
 void checkRedactionOutcome(const QString& evtIdToRedact,
@@ -143,6 +145,7 @@
 {
 cout << "Starting tests" << endl;
 sendMessage();
+setTopic();
 addAndRemoveTag();
 sendAndRedact();
 markDirectChat();
@@ -168,6 +171,49 @@
 // Independently, check when it shows up in the timeline.
 }
 
+void QMCTest::setTopic()
+{
+running.push_back("State setting test");
+running.push_back("Fake state event immunity test");
+auto initialTopic = targetRoom->topic();
+
+const auto newTopic = c->generateTxnId();
+targetRoom->setTopic(newTopic); // Sets the state by proper means
+const auto fakeTopic = c->generateTxnId();
+targetRoom->postJson(RoomTopicEvent::matrixTypeId(), // Fake state event
+ RoomTopicEvent(fakeTopic).contentJson());
+
+{
+auto* context = new QObject;
+connect(targetRoom, ::topicChanged, context,
+[this,newTopic,fakeTopic,initialTopic,context] {
+if (targetRoom->topic() == newTopic)
+{
+QMC_CHECK("State setting test", true);
+// Don't reset the topic yet if the negative test still 
runs
+if (!running.contains("Fake state event immunity test"))
+   

commit libqmatrixclient for openSUSE:Factory

2018-12-18 Thread root
Hello community,

here is the log from the commit of package libqmatrixclient for 
openSUSE:Factory checked in at 2018-12-18 14:58:17

Comparing /work/SRC/openSUSE:Factory/libqmatrixclient (Old)
 and  /work/SRC/openSUSE:Factory/.libqmatrixclient.new.28833 (New)


Package is "libqmatrixclient"

Tue Dec 18 14:58:17 2018 rev:2 rq:658761 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/libqmatrixclient/libqmatrixclient.changes
2018-11-12 09:42:52.505061118 +0100
+++ 
/work/SRC/openSUSE:Factory/.libqmatrixclient.new.28833/libqmatrixclient.changes 
2018-12-18 14:59:54.394114358 +0100
@@ -1,0 +2,10 @@
+Sun Dec 16 03:06:40 UTC 2018 - Michael Vetter 
+
+- Update to 0.4.1
+  * Fix pending events (aka local echo) not being cleaned up 
+properly
+  * Fix rooms not being correctly sorted according to their
+position under tag if using Connection::roomsByTags()
+  * Fix incorrect SOVERSION
+
+---

Old:

  v0.4.0.tar.gz

New:

  v0.4.1.tar.gz



Other differences:
--
++ libqmatrixclient.spec ++
--- /var/tmp/diff_new_pack.j2Dhyf/_old  2018-12-18 14:59:55.222113113 +0100
+++ /var/tmp/diff_new_pack.j2Dhyf/_new  2018-12-18 14:59:55.226113106 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libqmatrixclient
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,16 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+
+
 #
 %define soname libQMatrixClient
-%define soversion 0
+%define soversion 0_4
 
 Name:   libqmatrixclient
-Version:0.4.0
+Version:0.4.1
 Release:0
 Summary:Library for Qt Matrix Clients
-License:LGPL-2.1
+License:LGPL-2.1-only
 Group:  Development/Libraries/C and C++
 Url:https://github.com/QMatrixClient/libqmatrixclient
 Source0:
https://github.com/QMatrixClient/libqmatrixclient/archive/v%{version}.tar.gz
@@ -33,8 +36,8 @@
 %endif
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(Qt5Core) >= 5.6
-BuildRequires:  pkgconfig(Qt5Network)
 BuildRequires:  pkgconfig(Qt5Gui)
+BuildRequires:  pkgconfig(Qt5Network)
 
 %description
 Library for Qt-based Matrix chat clients. It is required by

++ v0.4.0.tar.gz -> v0.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libqmatrixclient-0.4.0/CMakeLists.txt 
new/libqmatrixclient-0.4.1/CMakeLists.txt
--- old/libqmatrixclient-0.4.0/CMakeLists.txt   2018-10-12 08:14:05.0 
+0200
+++ new/libqmatrixclient-0.4.1/CMakeLists.txt   2018-12-06 13:01:06.0 
+0100
@@ -141,7 +141,7 @@
 ${libqmatrixclient_asdef_SRCS} ${libqmatrixclient_isdef_SRCS})
 set(API_VERSION "0.4")
 set_property(TARGET QMatrixClient PROPERTY VERSION "${API_VERSION}.0")
-set_property(TARGET QMatrixClient PROPERTY SOVERSION 0 )
+set_property(TARGET QMatrixClient PROPERTY SOVERSION ${API_VERSION} )
 set_property(TARGET QMatrixClient PROPERTY
  INTERFACE_QMatrixClient_MAJOR_VERSION ${API_VERSION})
 set_property(TARGET QMatrixClient APPEND PROPERTY
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libqmatrixclient-0.4.0/CONTRIBUTING.md 
new/libqmatrixclient-0.4.1/CONTRIBUTING.md
--- old/libqmatrixclient-0.4.0/CONTRIBUTING.md  2018-10-12 08:14:05.0 
+0200
+++ new/libqmatrixclient-0.4.1/CONTRIBUTING.md  2018-12-06 13:01:06.0 
+0100
@@ -237,6 +237,14 @@
 
 Having said that, there's always a trade-off between various attributes; in 
particular, readability and maintainability of the code is more important than 
squeezing every bit out of that clumsy algorithm. Beware of premature 
optimization and have profiling data around before going into some hardcore 
optimization.
 
+Speaking of profiling logs (see README.md on how to turn them on) - in order
+to reduce small timespan logging spam, there's a default limit of at least
+200 microseconds to log most operations with the PROFILER
+(aka libqmatrixclient.profile.debug) logging category. You can override this
+limit by passing the new value (in microseconds) in PROFILER_LOG_USECS to
+the compiler. In the future, this parameter will be made changeable at runtime
+_if_ needed.
+
 ## How to check proposed changes before submitting them
 
 Checking the