2019-10-04 00:23:50 +02:00
|
|
|
#
|
2021-06-16 07:46:31 +02:00
|
|
|
# spec file
|
2019-10-04 00:23:50 +02:00
|
|
|
#
|
2022-01-24 16:16:01 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-10-04 00:23:50 +02: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.
|
|
|
|
|
|
|
|
# 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
|
2021-01-26 17:26:03 +01:00
|
|
|
# continued use of python2 is not recommended, so we only use the primary
|
2021-03-22 15:04:17 +01:00
|
|
|
# python3 flavor. As a result, at no point do we have two versions of the
|
2019-10-04 00:23:50 +02:00
|
|
|
# matrix-synapse package.
|
|
|
|
|
|
|
|
# Disable debug packages since we're not installing anything.
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%define pkgname matrix-synapse
|
|
|
|
Name: %{pkgname}-test
|
2022-10-28 17:04:45 +02:00
|
|
|
Version: 1.70.1
|
2019-10-04 00:23:50 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Test package for %{pkgname}
|
|
|
|
License: Apache-2.0
|
|
|
|
BuildRequires: %{pkgname} == %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
touch %{_sourcedir}/%{pkgname}
|
|
|
|
|
|
|
|
%build
|
2021-03-22 15:04:17 +01:00
|
|
|
|
2019-10-04 00:23:50 +02:00
|
|
|
%install
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
2020-02-06 17:49:25 +01:00
|
|
|
# Following tests disabled which would need to be run as 'synapse' user which
|
|
|
|
# we can not do easily (or at all) within RPM
|
2019-10-04 00:23:50 +02:00
|
|
|
# Generate a sample config.
|
2021-01-26 17:26:03 +01:00
|
|
|
#python3 -m synapse.app.homeserver \
|
2020-02-06 17:49:25 +01:00
|
|
|
# --generate-config \
|
|
|
|
# --server localhost \
|
|
|
|
# --config-path dummy-homeserver.yaml \
|
|
|
|
# --report-stats no
|
2019-10-04 00:23:50 +02:00
|
|
|
|
|
|
|
# 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.
|
2020-02-06 17:49:25 +01:00
|
|
|
#synctl start dummy-homeserver.yaml
|
|
|
|
#sleep 2s
|
2021-01-26 17:26:03 +01:00
|
|
|
#python3 -m synapse._scripts.register_new_matrix_user \
|
2020-02-06 17:49:25 +01:00
|
|
|
# http://localhost:8008 \
|
|
|
|
# --config dummy-homeserver.yaml \
|
|
|
|
# --admin --user opensuse --password opensuse
|
|
|
|
#synctl stop dummy-homeserver.yaml
|
2019-10-04 00:23:50 +02:00
|
|
|
|
|
|
|
%changelog
|