17
0
Files
libqmatrixclient/libqmatrixclient.spec

103 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package libqmatrixclient
#
Accepting request 789674 from home:ecsos:messenger:matrix - 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. OBS-URL: https://build.opensuse.org/request/show/789674 OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/libqmatrixclient?expand=0&rev=14
2020-03-30 08:35:02 +00:00
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#
%define soname libQMatrixClient
%define soversion 0_5_3
%define sname libQuotient
Name: libqmatrixclient
Version: 0.5.3.2
Release: 0
Summary: Library for Qt Matrix Clients
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
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
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)
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
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.
%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}.
%prep
%setup -q -n %{sname}-%{version}
%build
%if 0%{?suse_version} < 1500
export CC="gcc-7"
export CXX="g++-7"
%endif
%cmake \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/%{name} \
-DBUILD_SHARED_LIBS=ON
%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.*
%files devel
%doc README.md
%license COPYING
%{_libdir}/pkgconfig/QMatrixClient.pc
%{_libdir}/libQMatrixClient.so
%{_libdir}/cmake/QMatrixClient/
%{_includedir}/%{name}
%{_bindir}/qmc-example
%changelog