Hello community,
here is the log from the commit of package matrix-synapse for
openSUSE:Leap:15.2 checked in at 2020-06-02 22:26:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/matrix-synapse (Old)
and /work/SRC/openSUSE:Leap:15.2/.matrix-synapse.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "matrix-synapse"
Tue Jun 2 22:26:03 2020 rev:32 rq:810458 version:1.4.1
Changes:
--------
New Changes file:
--- /work/SRC/openSUSE:Leap:15.2/matrix-synapse/matrix-synapse.changes
2020-01-15 15:28:39.134684877 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.matrix-synapse.new.3606/matrix-synapse.changes
2020-06-02 22:26:07.522998032 +0200
@@ -2 +2 @@
-Wed Jun 13 11:55:34 UTC 2018 - [email protected]
+Fri Oct 18 13:36:18 UTC 2019 - Aleksa Sarai <[email protected]>
@@ -4,3 +4,779 @@
-- Fix security bug in the get_missing_events federation AP
- (CVE-2018-12291, boo#1096833)
-- Add boo1096833_event_visibility_rules_not_applied_correctly.patch
+- Update to 1.4.1.
+
+ * Fix bug where redacted events were sometimes incorrectly censored in the
+ database, breaking APIs that attempted to fetch such events.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Thu Oct 3 22:16:13 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Do not include ACME support by default (txacme is broken in openSUSE).
+- Update to 1.4.0. boo#1153017
+
+ * Significant improvements to data privacy.
+ * Expansion of OpenTracing support.
+ * Enable "forward extremities" mitigation by default.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Thu Jul 25 16:18:56 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 1.2.0.
+
+ * Add support for OpenTracing.
+ * Add default push rule to ignore reactions.
+ * Enable aggregations (reactions and edits) support by default.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+- Remove unneeded patches:
+ - 0001-requirements-prometheus_client.patch
+
+-------------------------------------------------------------------
+Fri Jul 5 15:29:57 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 1.1.0.
+
+ As of v1.1.0, Synapse no longer supports Python 2, nor Postgres version 9.4.
+ Thus, we no longer package a Python 2 version of this package. Some other key
+ changes include:
+
+ * Add monthly active users to phonehome stats.
+ * Allow server admins to define implementations of extra rules for allowing
+ or denying incoming events.
+ * Add --data-dir and --open-private-ports options.
+ * The minimum TLS version used for outgoing federation requests can now be
+ set with federation_client_minimum_tls_version.
+ * Optimise devices changed query to not pull unnecessary rows from the
+ database, reducing database load.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+- Rebase patches:
+ * 0001-requirements-prometheus_client.patch
+
+-------------------------------------------------------------------
+Fri Jun 28 08:16:05 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Obsolete the old split-Python packages, so that upgrading works smoothly.
+
+-------------------------------------------------------------------
+Tue Jun 25 10:48:03 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Un-Requires prometheus_client<0.4.0. The Requires made it impossible to use
+ matrix-synapse on openSUSE for very little good reason (prometheus metrics
+ will still work on post-0.4.0 prometheus_client, but with changed names).
+ Debian and many other distributions do the same here.
+ + 0001-requirements-prometheus_client.patch
+
+-------------------------------------------------------------------
+Wed Jun 12 02:26:48 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 1.0.0.
+
+ This is the first stable release of synapse. It includes a large number of
+ changes but the highlights are:
+
+ * Ability to configured default room version (with the default now being v4,
+ which has improved state resolution algorithms and event IDs).
+ * The complete removal of "perspectives" support, with all homeservers now
+ being required to use valid TLS certificates (there has been a transition
+ period for several months from the release of 0.99).
+ * Experimental support for "relations" (reactions and edits).
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Fri May 31 00:04:50 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 0.99.5.2.
+
+ Fix bug where we leaked extremities when we soft failed events, leading to
+ performance degradation.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Tue May 28 01:18:34 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Rework testing to use a separate specfile for testing matrix-synapse.
+
+-------------------------------------------------------------------
+Thu May 23 00:13:47 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 0.99.5.1.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Wed May 15 13:19:23 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 0.99.4.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Wed May 8 00:47:56 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 0.99.3.2.
+
+ This includes two security fixes:
+ * Switch to using a cryptographically-secure random number generator for
+ token strings, ensuring they cannot be predicted by an attacker.
+ * Blacklist 0.0.0.0 and :: by default for URL previews.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Sun Apr 14 18:35:48 UTC 2019 - Aleksa Sarai <[email protected]>
+
+- Update to 0.99.3.
+
+ The primary changes to previous versions are that self-signed certificates
+ will no longer be generated, and instead LetsEncrypt certificates will be
+ requested instead. Users are strongly recommended to update to this version,
+ because pre-0.99 servers (using self-signed certificates and the perspectives
+ system) will no longer be able to federate with post-1.0 servers.
+
+ The full changelog is included in
+ /usr/share/doc/packages/matrix-synapse/CHANGES.md.
+
+-------------------------------------------------------------------
+Wed Feb 20 11:42:00 UTC 2019 - Oliver Kurz <[email protected]>
+
+- Fix build on python3 based repos
+
+-------------------------------------------------------------------
+Sat Feb 2 15:32:06 UTC 2019 - [email protected]
+
+- Fix systemd service to follow paths used by package and ensure
+ proper version version is used.
+- Add explicit requires on python-lxml, required when using
+ url preview.
+
+-------------------------------------------------------------------
+Mon Jan 14 07:44:26 UTC 2019 - [email protected]
+
+- For test purpose a matrix server will be start. But never been
+ stopped. Fix that server will be stoped after test.
+
+-------------------------------------------------------------------
+Sun Jan 13 18:22:20 UTC 2019 - Oliver Kurz <[email protected]>
+
+- Update to 0.34.1.1
+ This release fixes CVE-2019-5885 and is recommended for all users of Synapse
+ 0.34.1. This release is compatible with Python 2.7 and 3.5+. Python 3.7 is
+ fully supported.
+ * Bugfixes
+ - Fix spontaneous logout on upgrade (#4374)
+ * Internal Changes
+ - Add better logging for unexpected errors while sending transactions
+ (#4361, #4362)
+ - Getting URL previews of IP addresses no longer fails on Python 3.
+ (#4215)
+ - drop undocumented dependency on dateutil (#4266)
+ - Update the example systemd config to use a virtualenv (#4273)
+ - Update link to kernel DCO guide (#4274)
+ - Make isort tox check print diff when it fails (#4283)
+ - Log room_id in Unknown room errors (#4297)
+ - Documentation improvements for coturn setup. Contributed by Krithin
+ Sitaram. (#4333)
+ - Update pull request template to use absolute links (#4341)
+ - Update README to not lie about required restart when updating TLS
++++ 588 more lines (skipped)
++++ between /work/SRC/openSUSE:Leap:15.2/matrix-synapse/matrix-synapse.changes
++++ and
/work/SRC/openSUSE:Leap:15.2/.matrix-synapse.new.3606/matrix-synapse.changes
Old:
----
_multibuild
boo1096833_event_visibility_rules_not_applied_correctly.patch
matrix-synapse-v0.28.1.tar.xz
New:
----
matrix-synapse-1.4.1.obscpio
matrix-synapse-test.changes
matrix-synapse-test.spec
matrix-synapse.obsinfo
matrix-synapse.service
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ matrix-synapse-test.spec ++++++
#
# spec file for package matrix-synapse-test
#
# 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
# 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.4.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
# 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
++++++ matrix-synapse.spec ++++++
--- /var/tmp/diff_new_pack.KSob7p/_old 2020-06-02 22:26:09.031002751 +0200
+++ /var/tmp/diff_new_pack.KSob7p/_new 2020-06-02 22:26:09.031002751 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package matrix
+# spec file for package matrix-synapse
#
-# 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
@@ -12,206 +12,210 @@
# 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/
#
+# These come from matrix-synapse's CONDITIONAL_REQUIREMENTS.
+%bcond_without email_notifs
+%bcond_without ldap
+%bcond_without postgres
+%bcond_without saml
+%bcond_without url_preview
+%bcond_without jwt
+# txacme is broken in openSUSE.
+%bcond_with acme
+# sentry-sdk isn't packaged on openSUSE.
+%bcond_with sentry
+
## Package updates
#
-# * Update version in _service and this file to the most recent released one
-# * Call `osc service ra`
+# * Update version in _service to the most recent released one
+# * Call `osc service dr`
# * Update changelog manually from
-# * https://github.com/matrix-org/synapse/releases
+# https://github.com/matrix-org/synapse/releases or synapse/CHANGES.md
# * Commit+submit
-# Define just "test" as a package in _multibuild file to distinguish test
-# instructions here
-%if "@BUILD_FLAVOR@" == ""
-%define _test 0
-%define name_ext %nil
-%else
-%define _test 1
-%define name_ext -test
-%endif
+# Synapse 1.1.0 and onwards only supports Python >= 3.5.
+%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define github_user matrix-org
-%define short_name synapse
-Name: matrix-%{short_name}%{?name_ext}
-Version: 0.28.1
+%define modname synapse
+%define pkgname matrix-synapse
+Name: %{pkgname}
+Version: 1.4.1
Release: 0
Summary: Matrix protocol reference homeserver
License: Apache-2.0
Group: Productivity/Networking/Instant Messenger
-Source0: matrix-synapse-v%{version}.tar.xz
-Patch1: boo1096833_event_visibility_rules_not_applied_correctly.patch
-Url: https://github.com/matrix-org/synapse
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?_test}
-BuildRequires: matrix-%{short_name}
-%else
+URL: https://github.com/matrix-org/synapse
+Source0: %{pkgname}-%{version}.tar.xz
+Source50: %{pkgname}.service
BuildRequires: %{python_module base}
+BuildRequires: %{python_module psutil >= 2.0.0}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module treq >= 15.1.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+BuildRequires: systemd-rpm-macros
BuildRequires: unzip
+%{?systemd_requires}
Requires(pre): shadow
-%if 0%{?suse_version} >= 1330
-# alternative: create a specific "synapse" group
-Requires(pre): group(nogroup)
+%ifpython3
+Requires: %{python_flavor} >= 3.5
%endif
-Requires: python-Twisted
-Requires: python-bcrypt
+# NOTE: Keep this is in the same order as synapse/python_dependencie.py.
+Requires: python-Pillow >= 4.3.0
+Requires: python-PyNaCl >= 1.2.1
+Requires: python-PyYAML >= 3.11
+Requires: python-Twisted >= 18.9.0
+Requires: python-attrs >= 17.4.0
+Requires: python-bcrypt >= 3.1.0
Requires: python-canonicaljson >= 1.1.3
-Requires: python-frozendict >= 0.4
+Requires: python-daemonize >= 2.3.1
+Requires: python-frozendict >= 1
+Requires: python-idna >= 2.5
Requires: python-jsonschema >= 2.5.1
-Requires: python-msgpack-python
+Requires: python-msgpack >= 0.5.2
+Requires: python-netaddr >= 0.7.18
Requires: python-phonenumbers >= 8.2.0
+Requires: python-prometheus_client >= 0.4.0
+Requires: python-psutil >= 2.0.0
+Requires: python-pyOpenSSL >= 16.0.0
+Requires: python-pyasn1 >= 0.1.9
+Requires: python-pyasn1-modules >= 0.0.7
+Requires: python-pymacaroons >= 0.13.0
+Requires: python-service_identity >= 18.1.0
Requires: python-signedjson >= 1.0.0
+Requires: python-six >= 1.10
+Requires: python-sortedcontainers >= 1.4.4
+Requires: python-treq >= 15.1
Requires: python-unpaddedbase64 >= 1.1.0
-# original from python_requirements.py
-#BuildRequires: python-PyNaCl == 0.3.0
-Requires: python-Pillow
-Requires: python-PyNaCl
-Requires: python-PyYAML
-Requires: python-Twisted >= 16.0.0
-Requires: python-blist
-Requires: python-daemonize
-Requires: python-msgpack-python >= 0.3.0
-Requires: python-pyOpenSSL >= 0.14
-Requires: python-pyasn1
-Requires: python-pydenticon
-Requires: python-pymacaroons-pynacl
-Requires: python-pysaml2 >= 3.0.0
-Requires: python-service_identity >= 1.0.0
-Requires: python-ujson
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
-BuildArch: noarch
-%if "%{python_flavor}" == "python2"
-Provides: matrix-synapse = %{version}
+# Specify all CONDITIONAL_REQUIREMENTS (we Require them to avoid no-recommends
+# breaking very commonly-used bits of matrix-synapse such as postgresql).
+%if %{with email_notifs}
+Requires: python-Jinja2 >= 2.9
+Requires: python-bleach >= 1.4.3
+%endif
+%if %{with ldap}
+Requires: python-matrix-synapse-ldap3 >= 0.1
+%endif
+%if %{with postgres}
+Requires: python-psycopg2 >= 2.7
%endif
+%if %{with acme}
+Requires: python-txacme >= 0.9.2
%endif
+%if %{with saml}
+Requires: python-pysaml2 >= 4.5.0
+%endif
+%if %{with url_preview}
+Requires: python-lxml >= 3.5.0
+%endif
+%if %{with sentry}
+Requires: python-sentry-sdk >= 0.7.2
+%endif
+%if %{with jwt}
+Requires: python-PyJWT >= 1.6.4
+%endif
+BuildArch: noarch
+Provides: matrix-synapse = %{version}
+# We only provide/obsolete python2 to ensure that users upgrade.
+Obsoletes: python2-matrix-synapse < %{version}
+Provides: python2-matrix-synapse = %{version}
-%if 0%{?_test}
-%else
%python_subpackages
-%endif
%description
Synapse is a Python-based reference "homeserver" implementation of
Matrix. Matrix is a system for federated Instant Messaging and VoIP.
%prep
-%if 0%{?_test}
-# workaround to prevent post/install failing assuming this file for whatever
-# reason
-touch %{_sourcedir}/%{short_name}
-%else
-%setup -q -n %{name}-v%{version}
-%patch1 -p1
-for i in \
- app/client_reader \
- app/event_creator \
- app/federation_sender \
- app/synchrotron \
- app/pusher \
- app/media_repository \
- app/homeserver \
- app/appservice \
- app/federation_reader \
- app/frontend_proxy \
- app/user_dir \
- push/pusherpool \
- util/versionstring
-do
- sed -i '1d' synapse/$i.py
-done
-# patch the version requirement as it would be hard to supply exactly this
-# version as dependency
-sed -i 's/nacl==0.3.0/nacl>=0.3.0/g' synapse/python_dependencies.py
-for i in synapse/app/synctl.py scripts/move_remote_media_to_new_store.py
-do
- sed -i 's@#!/usr/bin/env python@#!/usr/bin/python@g' $i
-done
-sed -i '1 s@#!/usr/bin/env perl@#!/usr/bin/perl@g'
scripts/sync_room_to_group.pl
-%endif
+%setup -q
+
+# Remove all un-needed #!-lines.
+find synapse/ -type f -exec sed -i '1{/^#!/d}' {} \;
+# Replace all #!/usr/bin/env lines to use #!/usr/bin/$1 directly.
+find ./ -type f -exec \
+ sed -i '1s|^#!/usr/bin/env |#!/usr/bin/|' {} \;
+# Force the usage of python_flavor.
+find ./ -type f \
+ -exec sed -i '1s|^#!/usr/bin/python$|#!/usr/bin/%{python_flavor}|' {} \;
+
+# Update the python flavour in the service file.
+sed -i 's|@PYTHON_FLAVOR@|%{python_flavor}|g' %{S:50}
%build
-%if 0%{?_test}
-python -m synapse.app.homeserver --generate-config --server localhost
--config-path homeserver.yaml --report-stats=no
-# Disable the web client which would need python-matrix-synapse-angular-client
-# as a dependency for this test which is not available in all repos and we do
-# not want to rely on it
-# https://github.com/matrix-org/synapse/issues/2113
-sed -e 's/\(web_client: \).*$/\1False/' -e '/- webclient # The bundled
webclient/d' -e 's/- names: \[client, webclient\]/- names: [client]/' -i
homeserver.yaml
-synctl start
-register_new_matrix_user --config homeserver.yaml --user opensuse --password
opensuse --admin https://localhost:8448
-%else
%python_build
-chmod +x build/lib/synapse/app/synctl.py
-%endif
%install
-%if 0%{?_test}
-# disable debug packages in package test to prevent error about missing files
-%define debug_package %{nil}
-%else
-%python_install
+# We install scripts into /usr/lib to avoid silly conflicts with other pkgs.
+install -d -m 0755 %{buildroot}%{_libexecdir}/%{pkgname}
+%python_install "--install-scripts=%{_libexecdir}/%{pkgname}/"
+
+# While we provide a systemd service, link synctl so it's simpler to use.
+install -d -m 0755 %{buildroot}%{_bindir}
+ln -s %{_libexecdir}/%{pkgname}/synctl %{buildroot}%{_bindir}/synctl
+
+# Install default matrix-synapse configuration.
+# TODO: Switch to the debian default config.
+install -d -m 0755 %{buildroot}%{_sysconfdir}/%{pkgname}/conf.d
+install -D -m 0644 docs/sample_config.yaml
%{buildroot}%{_sysconfdir}/%{pkgname}/homeserver.yaml
+install -D -m 0644 contrib/systemd/log_config.yaml
%{buildroot}%{_sysconfdir}/%{pkgname}/log.yaml
-mkdir -p "%{buildroot}%{_sysconfdir}/synapse"
-install -m 0644 contrib/systemd/log_config.yaml \
- "%{buildroot}%{_sysconfdir}/synapse"
+# Man pages.
+install -D -m 0644 -t %{buildroot}%{_mandir}/man1 debian/*.1
+
+# Runtime-dir.
+mkdir -p %{buildroot}%{_rundir}/%{pkgname}
+
+# system configuration.
mkdir -p %{buildroot}%{_sbindir}
-ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcsynapse
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{pkgname}
+install -D -m 0644 contrib/systemd/%{pkgname}.service
%{buildroot}%{_unitdir}/%{pkgname}.service
-mkdir -p "%{buildroot}%{_unitdir}"
-install -m 0644 contrib/systemd/synapse.service \
- "%{buildroot}%{_unitdir}"
+# User directory.
+install -d -m 0755 %{buildroot}%{_rundir}/%{pkgname}
+install -d -m 0750 %{buildroot}%{_localstatedir}/lib/%{pkgname}
-mkdir -p "%{buildroot}%{_rundir}/synapse"
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-for p in hash_password register_new_matrix_user synapse_port_db synctl ; do
- %python_clone -a %{buildroot}%{_bindir}/$p
-done
-%python_clone -a %{buildroot}%{_sbindir}/rcsynapse
-%python_clone -a %{buildroot}%{_unitdir}/synapse.service
-%python_clone -a %{buildroot}%{_sysconfdir}/synapse/log_config.yaml
-
%pre
+getent group synapse >/dev/null || groupadd -r synapse
getent passwd synapse >/dev/null || \
- /usr/sbin/useradd -r -g nogroup -s /sbin/nologin -c 'Matrix Synapse' \
+ /usr/sbin/useradd -r -g synapse -s /sbin/nologin -c 'Matrix Synapse' \
-d %{_localstatedir}/lib/synapse synapse
-%service_add_pre synapse.service
+%service_add_pre %{pkgname}.service
%post
-%{python_install_alternative synctl hash_password register_new_matrix_user
synapse_port_db rcsynapse synapse.service log_config.yaml}
-%service_add_post synapse.service
+%service_add_post %{pkgname}.service
%preun
-%service_del_preun synapse.service
+%service_del_preun %{pkgname}.service
%postun
-%python_uninstall_alternative synctl
-%service_del_postun synapse.service
+%service_del_postun %{pkgname}.service
+%if 0%{?suse_version} < 1500
+%files -n %{pkgname}
+%else
%files %{python_files}
+%endif
%defattr(-,root,root,-)
-%doc *.rst
-%doc LICENSE
-%dir %{_sysconfdir}/synapse
+%doc *.rst CHANGES.md
+%license LICENSE
+%dir %{_sysconfdir}/%{pkgname}
+%dir %{_sysconfdir}/%{pkgname}/conf.d
+%config(noreplace) %{_sysconfdir}/%{pkgname}/*.yaml
+%dir %attr(0750,%{modname},%{modname}) %{_localstatedir}/lib/%{pkgname}
%{python_sitelib}
-%python_alternative %{_bindir}/hash_password
-%python_alternative %{_bindir}/register_new_matrix_user
-%python_alternative %{_bindir}/synapse_port_db
-%python_alternative %{_bindir}/synctl
-%python_alternative %{_sbindir}/rcsynapse
-%python_alternative %{_unitdir}/synapse.service
-%config %python_alternative %{_sysconfdir}/synapse/log_config.yaml
-%python3_only %{_bindir}/sync_room_to_group.pl
-%python3_only %{_bindir}/move_remote_media_to_new_store.py
-
-%endif
+# Python helper scripts.
+%{_bindir}/synctl
+%{_libexecdir}/%{pkgname}
+# systemd service.
+%{_sbindir}/rc%{pkgname}
+%{_unitdir}/%{pkgname}.service
+# Man pages.
+%{_mandir}/man*/*
%changelog
++++++ _service ++++++
--- /var/tmp/diff_new_pack.KSob7p/_old 2020-06-02 22:26:09.059002839 +0200
+++ /var/tmp/diff_new_pack.KSob7p/_new 2020-06-02 22:26:09.059002839 +0200
@@ -1,17 +1,16 @@
<services>
- <service name="tar_scm" mode="disabled">
+ <service name="obs_scm" mode="disabled">
<param name="filename">matrix-synapse</param>
<param name="versionformat">@PARENT_TAG@</param>
- <param name="url">git://github.com/matrix-org/synapse.git</param>
+ <param name="url">https://github.com/matrix-org/synapse.git</param>
<param name="scm">git</param>
- <param name="revision">v0.28.1</param>
- <!-- The git changelog of matrix-org/synapse does not seem to be very
usable. Use the changelog provided on the github release page -->
- <param name="changesgenerate">disable</param>
- <param name="changesauthor">[email protected]</param>
+ <param name="versionrewrite-pattern">v(.*)</param>
+ <param name="revision">v1.4.1</param>
</service>
- <service name="recompress" mode="disabled">
+ <service name="set_version" mode="disabled"/>
+ <service name="tar" mode="buildtime"/>
+ <service name="recompress" mode="buildtime">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
- <service name="set_version" mode="disabled"/>
</services>
++++++ matrix-synapse.obsinfo ++++++
name: matrix-synapse
version: 1.4.1
mtime: 1571390342
commit: 774b8d0930efee31b5240f8d3dc8935415fe9124
++++++ matrix-synapse.service ++++++
[Unit]
Description=Synapse Matrix homeserver
[Service]
Type=simple
SyslogIdentifier=matrix-synapse
Restart=on-failure
RestartSec=3
User=synapse
Group=synapse
WorkingDirectory=/var/lib/matrix-synapse
ExecStartPre=@PYTHON_FLAVOR@ -m synapse.app.homeserver
--config-path=/etc/matrix-synapse/homeserver.yaml
--config-path=/etc/matrix-synapse/conf.d/ --generate-keys
ExecStart=@PYTHON_FLAVOR@ -m synapse.app.homeserver
--config-path=/etc/matrix-synapse/homeserver.yaml
--config-path=/etc/matrix-synapse/conf.d/
# Adjust the cache factor if necessary.
#Environment=SYNAPSE_CACHE_FACTOR=2.0
[Install]
WantedBy=multi-user.target