osc copypac from project:home:okurz:matrix-synapse package:matrix-synapse revision:14
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=1
This commit is contained in:
commit
7e831cc72c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="filename">matrix-synapse</param>
|
||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@.%h</param>
|
||||
<param name="url">git://github.com/matrix-org/synapse.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">master</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="changesauthor">okurz@suse.com</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
3
matrix-synapse-0.19.2.tar.gz
Normal file
3
matrix-synapse-0.19.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b051a545d3f76d9307711f9e7051f99ae8352d71c19421f612f403f13cbba4b
|
||||
size 760090
|
4
matrix-synapse.changes
Normal file
4
matrix-synapse.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 18 12:05:47 UTC 2017 - okurz@suse.com
|
||||
|
||||
- Initial version of matrix-synapse version 0.19.2
|
169
matrix-synapse.spec
Normal file
169
matrix-synapse.spec
Normal file
@ -0,0 +1,169 @@
|
||||
#
|
||||
# spec file for package matrix-synapse
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# build for only one python version
|
||||
%undefine have_python3
|
||||
%define github_user matrix-org
|
||||
%define short_name synapse
|
||||
Name: matrix-%{short_name}
|
||||
Version: 0.19.2
|
||||
Release: 0
|
||||
Summary: Synapse: Matrix reference homeserver
|
||||
License: Apache-2.0
|
||||
Group: Productivity/Networking/Instant Messenger
|
||||
Source: https://github.com/%{github_user}/%{short_name}/%{name}-%{version}.tar.gz
|
||||
Url: https://github.com/%{github_user}/%{short_name}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: unzip
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(pre): shadow
|
||||
%if 0%{?suse_version} >= 1330
|
||||
# alternative: create a specific "synapse" group
|
||||
Requires(pre): group(nogroup)
|
||||
%endif
|
||||
Requires: python-Twisted
|
||||
Requires: python-bcrypt
|
||||
Requires: python-msgpack-python
|
||||
Requires: python-frozendict >= 0.4
|
||||
Requires: python-unpaddedbase64 >= 1.1.0
|
||||
Requires: python-canonicaljson >= 1.0.0
|
||||
Requires: python-signedjson >= 1.0.0
|
||||
# original from python_requirements.py
|
||||
#BuildRequires: python-PyNaCl == 0.3.0
|
||||
Requires: python-PyNaCl
|
||||
Requires: python-service_identity >= 1.0.0
|
||||
Requires: python-Twisted >= 16.0.0
|
||||
Requires: python-pyOpenSSL >= 0.14
|
||||
Requires: python-PyYAML
|
||||
Requires: python-pyasn1
|
||||
Requires: python-daemonize
|
||||
Requires: python-Pillow
|
||||
Requires: python-pydenticon
|
||||
Requires: python-ujson
|
||||
Requires: python-blist
|
||||
Requires: python-pysaml2 >= 3.0.0
|
||||
# original from python_requirements.py
|
||||
#BuildRequires: python-pysaml2 < 4.0.0
|
||||
Requires: python-pymacaroons-pynacl
|
||||
Requires: python-msgpack-python >= 0.3.0
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Matrix is an ambitious new ecosystem for open federated Instant Messaging and
|
||||
VoIP. The basics you need to know to get up and running are:
|
||||
|
||||
- Everything in Matrix happens in a room. Rooms are distributed and do not
|
||||
exist on any single server. Rooms can be located using convenience aliases
|
||||
like `#matrix:matrix.org` or `#test:localhost:8448`.
|
||||
|
||||
- Matrix user IDs look like `@matthew:matrix.org` (although in the future
|
||||
you will normally refer to yourself and others using a third party identifier
|
||||
(3PID): email address, phone number, etc rather than manipulating Matrix user IDs)
|
||||
|
||||
The overall architecture is:
|
||||
|
||||
```
|
||||
client <----> homeserver <=====================> homeserver <----> client
|
||||
https://somewhere.org/_matrix https://elsewhere.net/_matrix
|
||||
```
|
||||
|
||||
`#matrix:matrix.org` is the official support room for Matrix, and can be
|
||||
accessed by any client from https://matrix.org/docs/projects/try-matrix-now or
|
||||
via IRC bridge at irc://irc.freenode.net/matrix.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{short_name}-%{version}
|
||||
for i in \
|
||||
app/client_reader \
|
||||
app/federation_sender \
|
||||
app/synchrotron \
|
||||
app/pusher \
|
||||
app/media_repository \
|
||||
app/homeserver \
|
||||
app/appservice \
|
||||
app/federation_reader \
|
||||
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
|
||||
|
||||
%build
|
||||
%python_build
|
||||
chmod +x build/lib/synapse/app/synctl.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%{__mkdir_p} "%{buildroot}%{_sysconfdir}/synapse"
|
||||
%{__install} -m 0644 contrib/systemd/log_config.yaml \
|
||||
"%{buildroot}%{_sysconfdir}/synapse"
|
||||
%{__mkdir_p} %{buildroot}%{_sbindir}
|
||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcsynapse
|
||||
|
||||
%{__mkdir_p} "%{buildroot}%{_unitdir}"
|
||||
%{__install} -m 0644 contrib/systemd/synapse.service \
|
||||
"%{buildroot}%{_unitdir}"
|
||||
|
||||
%{__mkdir_p} "%{buildroot}%{_rundir}/synapse"
|
||||
%{__mkdir_p} "%{buildroot}%{_rundir}/synapse"
|
||||
%{__mkdir_p} "%{buildroot}%{_rundir}/synapse"
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
getent group nogroup &>/dev/null || /usr/sbin/groupadd -r nogroup
|
||||
getent passwd synapse &>/dev/null || \
|
||||
/usr/sbin/useradd -r -g nogroup -s /sbin/nologin -c 'Matrix Synapse' \
|
||||
-d %{_localstatedir}/lib/synapse synapse
|
||||
%service_add_pre synapse.service
|
||||
|
||||
%post
|
||||
%service_add_post synapse.service
|
||||
|
||||
%preun
|
||||
%service_del_preun synapse.service
|
||||
|
||||
%postun
|
||||
%service_del_postun synapse.service
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc *.rst
|
||||
%doc LICENSE
|
||||
%attr(0710,root,synapse) %dir %{_sysconfdir}/synapse
|
||||
%config %{_sysconfdir}/synapse/*
|
||||
%{python_sitelib}
|
||||
%{_bindir}/hash_password
|
||||
%{_bindir}/register_new_matrix_user
|
||||
%{_bindir}/synapse_port_db
|
||||
%{_bindir}/synctl
|
||||
%{_sbindir}/rcsynapse
|
||||
%{_unitdir}/synapse.service
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user