## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: tuwunel Version: 1.5.0 Release: %autorelease Summary: High Performance Matrix Homeserver in Rust! License: Apache-2.0 URL: https://github.com/matrix-construct/tuwunel Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: tuwunel.sysusers.conf BuildRequires: cargo BuildRequires: clang-devel BuildRequires: rocksdb-devel BuildRequires: pkgconfig(liburing) BuildRequires: systemd-rpm-macros %description Tuwunel is a featureful Matrix homeserver you can use instead of Synapse with your favorite client, bridge or bot. It is written entirely in Rust to be a scalable, low-cost, enterprise-ready, community-driven alternative, fully implementing the Matrix Specification for all but the most niche uses. %prep %autosetup cargo fetch %build cargo build --release --target-dir %{_builddir}/%{name}-%{version}/target %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_sysusersdir} install -m 755 -d %{buildroot}%{_sysconfdir}/%{name} install -m 755 -d %{buildroot}%{_unitdir} install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name} install -D -m 755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name} install -D -m 755 ./tuwunel-example.toml %{buildroot}%{_sysconfdir}/%{name}/%{name}.toml install -D -m 644 %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf install -D -m 644 ./debian/%{name}.service %{buildroot}%{_unitdir}/%{name}.service %pre %sysusers_create_compat %{S:1} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %{_bindir}/%{name} %config(noreplace) %attr(-,%{name},%{name}) %{_sysconfdir}/%{name}/%{name}.toml %dir %attr(755, %{name}, %{name}) %{_sharedstatedir}/%{name}/ %{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %changelog ## START: Generated by rpmautospec * Wed Feb 25 2026 Grillo del Mal - 1.5.0-1 - Initial commit ## END: Generated by rpmautospec