2018-10-17 10:31:54 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libqmatrixclient
|
|
|
|
|
#
|
2020-03-30 08:35:02 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-10-17 10:31:54 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2020-01-29 10:05:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-16 11:04:32 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-10-17 10:31:54 +00:00
|
|
|
#
|
|
|
|
|
%define soname libQMatrixClient
|
2020-04-01 18:36:33 +00:00
|
|
|
%define soversion 0_5_3
|
2020-01-29 10:05:40 +00:00
|
|
|
%define sname libQuotient
|
2018-10-17 10:31:54 +00:00
|
|
|
|
|
|
|
|
Name: libqmatrixclient
|
2020-04-01 18:36:33 +00:00
|
|
|
Version: 0.5.3.2
|
2018-10-17 10:31:54 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Library for Qt Matrix Clients
|
2018-12-16 11:04:32 +00:00
|
|
|
License: LGPL-2.1-only
|
2018-11-07 10:24:21 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-01-29 10:05:40 +00:00
|
|
|
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
|
2018-10-17 10:31:54 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.6
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
Accepting request 699390 from home:ecsos:messenger:matrix
- 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.
- 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.
- 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.
- 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
OBS-URL: https://build.opensuse.org/request/show/699390
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/libqmatrixclient?expand=0&rev=10
2019-04-29 10:27:01 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
2018-12-16 11:04:32 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
2020-01-29 10:05:40 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%endif
|
2018-10-17 10:31:54 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Library for Qt-based Matrix chat clients. It is required by
|
|
|
|
|
Quaternion.
|
|
|
|
|
|
|
|
|
|
%package -n %{soname}%{soversion}
|
|
|
|
|
Summary: Library for Qt Matrix Clients
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{soname}%{soversion}
|
|
|
|
|
Library for Qt-based Matrix chat clients. It is required by
|
|
|
|
|
Quaternion.
|
|
|
|
|
|
2018-11-09 17:58:17 +00:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{soname}%{soversion} = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
2018-10-17 10:31:54 +00:00
|
|
|
%prep
|
2020-01-29 10:05:40 +00:00
|
|
|
%setup -q -n %{sname}-%{version}
|
2018-10-17 10:31:54 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
|
export CC="gcc-7"
|
|
|
|
|
export CXX="g++-7"
|
|
|
|
|
%endif
|
2020-01-29 10:05:40 +00:00
|
|
|
%cmake \
|
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/%{name} \
|
|
|
|
|
-DBUILD_SHARED_LIBS=ON
|
2018-10-17 10:31:54 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
# need for other clients like quaternion
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/QMatrixClient
|
|
|
|
|
|
|
|
|
|
%post -n %{soname}%{soversion} -p /sbin/ldconfig
|
|
|
|
|
%postun -n %{soname}%{soversion} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n %{soname}%{soversion}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license COPYING
|
|
|
|
|
%dir %{_datadir}/QMatrixClient
|
|
|
|
|
%{_libdir}/libQMatrixClient.so.*
|
|
|
|
|
|
2018-11-09 17:58:17 +00:00
|
|
|
%files devel
|
2018-10-17 10:31:54 +00:00
|
|
|
%doc README.md
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/pkgconfig/QMatrixClient.pc
|
|
|
|
|
%{_libdir}/libQMatrixClient.so
|
|
|
|
|
%{_libdir}/cmake/QMatrixClient/
|
2020-01-29 10:05:40 +00:00
|
|
|
%{_includedir}/%{name}
|
2018-10-17 10:31:54 +00:00
|
|
|
%{_bindir}/qmc-example
|
|
|
|
|
|
|
|
|
|
%changelog
|