Package matrix-synapse: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | Name: matrix-synapse Version: 0.99.3.2 Release: alt1 Summary: Synapse: Matrix reference homeserver License: Apache 2.0 Group: Communications Url: http://matrix.org # Source-url: https://github.com/matrix-org/synapse/archive/v%version.tar.gz Source: %name-%version.tar Source1: %name.service BuildRequires(pre): rpm-build-intro >= 2.1.9 %py3_use setuptools %py3_use matrix-angular-sdk >= 0.6.8 # Note: update from synapse/python_dependencies.py %py3_use jsonschema >= 2.5.1 %py3_use frozendict >= 1 %py3_use unpaddedbase64 >= 1.1.0 %py3_use canonicaljson >= 1.1.3 %py3_use signedjson >= 1.0.0 %py3_use pynacl >= 1.2.1 %py3_use service-identity >= 16.0.0 # logcontext handling relies on the ability to cancel inlineCallbacks # (https://twistedmatrix.com/trac/ticket/4632) which landed in Twisted 18.7. %py3_use twisted-core >= 18.7.0 %py3_use treq >= 15.1 # Twisted has required pyopenssl 16.0 since about Twisted 16.6. %py3_use OpenSSL >= 16.0.0 %py3_use yaml >= 3.11 %py3_use pyasn1 >= 0.1.9 %py3_use pyasn1-modules >= 0.0.7 %py3_use daemonize >= 2.3.1 %py3_use bcrypt >= 3.1.0 %py3_use Pillow >= 3.1.2 %py3_use sortedcontainers >= 1.4.4 %py3_use psutil >= 2.0.0 %py3_use pymacaroons-pynacl >= 0.13.0 %py3_use msgpack >= 0.5.0 %py3_use phonenumbers >= 8.2.0 %py3_use six >= 1.10 # prometheus_client 0.4.0 changed the format of counter metrics # (cf https://github.com/matrix-org/synapse/issues/4001) %py3_use prometheus_client >= 0.0.18 %py3_use prometheus_client < 0.4.0 # we use attr.s(slots), which arrived in 16.0.0 %py3_use attrs >= 17.4.0 %py3_use netaddr >= 0.7.18 # Conditional #py3_use matrix-synapse-ldap3 >= 0.1 # "email.enable_notifs" %py3_use jinja2 >= 2.9 %py3_use bleach >= 1.4.2 # "acme": ["txacme>=0.9.2"], %py3_use pysaml2 >= 4.5.0 # "url_preview" %py3_use lxml >= 3.5.0 # "test" %py3_use mock >= 2.0 # for /usr/lib/matrix-synapse/sync_room_to_group.pl BuildRequires: perl-CPAN BuildRequires: perl-JSON-XS Requires: python3-module-twisted-conch >= 17.5.0 Requires: python3-module-twisted-names >= 17.5.0 Requires: python3-module-twisted-web >= 17.5.0 #Requires: python-module-service-identity >= 1.0.0 Requires: python3-module-twisted-mail >= 17.5.0 #Requires: python-module-pysaml2 >= 3.0.0 #Requires: python-module-pysaml2 < 4.0.0 # python-modules-sqlite3 #Requires: python-module-matrix-angular-sdk BuildArch: noarch %description Matrix is an ambitious new ecosystem for open federated Instant Messaging and VoIP. Synapse is the reference python/twisted Matrix homeserver implementation. %prep %setup #__subst "s|nacl==0.3.0|nacl>=0.3.0|g" synapse/python_dependencies.py %build %python3_build %install %python3_install --install-scripts=%_libexecdir/%name/ mkdir -p %buildroot/etc/synapse cp contrib/systemd/log_config.yaml %buildroot/etc/synapse/ # TODO echo >%buildroot/etc/synapse/homeserver.yaml install -m644 -D %SOURCE1 %buildroot%_unitdir/matrix-synapse.service mkdir -p %buildroot/var/{run,lib,log}/synapse mkdir -p %buildroot%_sbindir/ ln -sr %buildroot%_libexecdir/%name/synctl %buildroot%_sbindir/synctl mkdir -p %buildroot%_tmpfilesdir/ echo "D /var/run/synapse 0710 _synapse _synapse -" >%buildroot%_tmpfilesdir/%name.conf %pre /usr/sbin/groupadd -r -f _synapse /usr/sbin/useradd -r -g _synapse -d /var/lib/synapse -s /dev/null -c 'Synapse user' _synapse >/dev/null 2>&1 ||: if [ $1 -gt 1 ]; then /usr/sbin/usermod -d /var/lib/synapse _synapse fi %files %doc README.rst UPGRADE.rst CHANGES.md AUTHORS.rst docs/ %dir %_libexecdir/%name/ %_libexecdir/%name/hash_password %_libexecdir/%name/register_new_matrix_user %_libexecdir/%name/synapse_port_db %_libexecdir/%name/synctl %_libexecdir/%name/move_remote_media_to_new_store.py %_libexecdir/%name/sync_room_to_group.pl %_libexecdir/%name/generate_config %_sbindir/synctl %_unitdir/matrix-synapse.service %_tmpfilesdir/%name.conf %python3_sitelibdir_noarch/* %dir /etc/synapse/ %attr(0640,root,_synapse) %config(noreplace) /etc/synapse/* %attr(0710,_synapse,_synapse) /var/run/synapse/ %attr(0710,_synapse,_synapse) /var/lib/synapse/ %attr(0750,_synapse,_synapse) /var/log/synapse/ %changelog * Wed May 08 2019 Vitaly Lipatov <lav@altlinux.ru> 0.99.3.2-alt1 - new version 0.99.3.2 (with rpmrb script) * Mon Feb 11 2019 Vitaly Lipatov <lav@altlinux.ru> 0.99.0-alt2 - switch to python3 * Wed Feb 06 2019 Vitaly Lipatov <lav@altlinux.ru> 0.99.0-alt1 - new version 0.99.0 (with rpmrb script) - update requires * Tue Jan 22 2019 Vitaly Lipatov <lav@altlinux.ru> 0.34.1.1-alt1 - new version 0.34.1.1 (with rpmrb script) - update build and install python module requires - rename service to matrix-synapse * Wed Dec 19 2018 Alexey Shabalin <shaba@altlinux.org> 0.33.9-alt2 - no longer require a specific version of saml2 since v0.27.0-rc1 * Mon Dec 10 2018 Vitaly Lipatov <lav@altlinux.ru> 0.33.9-alt1 - new version 0.33.9 (with rpmrb script) * Sun Nov 18 2018 Vitaly Lipatov <lav@altlinux.ru> 0.33.8-alt1 - new version 0.33.8 (with rpmrb script) * Wed Sep 26 2018 Vitaly Lipatov <lav@altlinux.ru> 0.33.5.1-alt1 - new version 0.33.5.1 (with rpmrb script) * Wed Aug 15 2018 Vitaly Lipatov <lav@altlinux.ru> 0.33.1-alt1 - new version 0.33.1 (with rpmrb script) * Tue Jul 03 2018 Vitaly Lipatov <lav@altlinux.ru> 0.31.2-alt1 - new version 0.31.2 (with rpmrb script) * Sat Jun 09 2018 Vitaly Lipatov <lav@altlinux.ru> 0.29.1-alt1 - new version 0.29.1 (with rpmrb script) * Wed Feb 07 2018 Vitaly Lipatov <lav@altlinux.ru> 0.26.0-alt1 - new version 0.26.0 (with rpmrb script) * Sat Oct 07 2017 Vitaly Lipatov <lav@altlinux.ru> 0.23.1-alt1 - new version 0.23.1 (with rpmrb script) * Mon Jul 17 2017 Vitaly Lipatov <lav@altlinux.ru> 0.22.1-alt1 - new version 0.22.1 (with rpmrb script) * Thu Jun 15 2017 Vitaly Lipatov <lav@altlinux.ru> 0.21.0-alt1 - initial build for ALT Sisyphus |