matrix-synapse/matrix-synapse-test.spec
Marcus Rueckert 0fa46ec216 Accepting request 781565 from home:darix:apps
- Update to 1.11.1 
  This release includes a security fix impacting installations
  using Single Sign-On (i.e. SAML2 or CAS) for authentication.
  Administrators of such installations are encouraged to upgrade as
  soon as possible.
  - Bugfixes
    - Add a confirmation step to the SSO login flow before
      redirecting users to the redirect URL.
      ([b2bd54a2](b2bd54a2e3),
      [65c73cdf](65c73cdfec),
      [a0178df1](a0178df104))
    - Fixed set a user as an admin with the admin API `PUT
      /_synapse/admin/v2/users/<user_id>`. Contributed by
      @dklimpel.
      ([\#6910](https://github.com/matrix-org/synapse/issues/6910))
    - Fix bug introduced in Synapse 1.11.0 which sometimes caused
      errors when joining rooms over federation, with `'coroutine'
      object has no attribute 'event_id'`.
      ([\#6996](https://github.com/matrix-org/synapse/issues/6996))

- track series file to make updating patches easier

OBS-URL: https://build.opensuse.org/request/show/781565
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=119
2020-03-04 14:48:28 +00:00

74 lines
2.2 KiB
RPMSpec

#
# spec file for package matrix-synapse-test
#
# 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/
#
# synapse only supports python >= 3.5, which is not available on pre-15 Leap.
# However, future versions of matrix-synapse will no longer support python2 and
# continued use of python2 is not recommended, so on newer distributions we
# only use python3. As a result, at no point do we have two versions of the
# matrix-synapse package.
%if 0%{?suse_version} < 1500
%define skip_python3 1
%else
%define skip_python2 1
%endif
# Disable debug packages since we're not installing anything.
%define debug_package %{nil}
%define pkgname matrix-synapse
Name: %{pkgname}-test
Version: 1.11.1
Release: 0
Summary: Test package for %{pkgname}
License: Apache-2.0
BuildRequires: %{pkgname} == %{version}
BuildRequires: python-rpm-macros
%description
.
%prep
touch %{_sourcedir}/%{pkgname}
%build
%install
%check
# Following tests disabled which would need to be run as 'synapse' user which
# we can not do easily (or at all) within RPM
# Generate a sample config.
#%{python_flavor} -m synapse.app.homeserver \
# --generate-config \
# --server localhost \
# --config-path dummy-homeserver.yaml \
# --report-stats no
# Start synapse and try to register a user (basic smoke-test).
# register_new_matrix_user doesn't seem to work inside check so we have to
# manually run the module.
#synctl start dummy-homeserver.yaml
#sleep 2s
#%{python_flavor} -m synapse._scripts.register_new_matrix_user \
# http://localhost:8008 \
# --config dummy-homeserver.yaml \
# --admin --user opensuse --password opensuse
#synctl stop dummy-homeserver.yaml
%changelog