tuwunel/.gear/tuwunel.spec
thek0tyara 1b2535f993
Some checks failed
Main / Init (push) Has been cancelled
Main / Lint (push) Has been cancelled
Main / Test (push) Has been cancelled
Main / Package (push) Has been cancelled
Main / Publish (push) Has been cancelled
Update .gear/tuwunel.spec
2026-02-22 20:18:52 +03:00

59 lines
1.7 KiB
RPMSpec

Name: tuwunel
Version: 1.5.0
Release: alt1
Summary: High Performance Matrix Homeserver in Rust!
License: Apache-2.0
Group: System/Base
URL: https://github.com/matrix-construct/tuwunel
VCS: https://github.com/matrix-construct/tuwunel
Source: %name-%version.tar
Source1: %name-development-%version.tar
Source2: config.toml
Source3: tuwunel.sysusers
BuildRequires(pre): rpm-macros-rust
BuildRequires: rpm-build-rust
BuildRequires: rust-cargo
BuildRequires: liburing-devel
BuildRequires: unzip
BuildRequires: libclang21
BuildRequires: glibc-devel clang
BuildRequires: clang
BuildRequires: gcc-c++
%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
%setup -a1
cat %SOURCE2 >> .cargo/config.toml
sed 's/PrivateUsers/#PrivateUsers/' -i rpm/tuwunel.service
%build
%rust_build
%install
install -Dm 755 target/release/%name %buildroot/%_sbindir/%name
install -Dm 644 rpm/tuwunel.service %buildroot/%_unitdir/%name.service
install -D -m 0644 %SOURCE3 %buildroot/%_sysusersdir/%name.conf
install -D -m 0644 tuwunel-example.toml %buildroot/%_sysconfdir/%name/tuwunel.toml
mkdir -p %buildroot/%_localstatedir/tuwunel
%pre
%sysusers_create_package %name %SOURCE3
%files
%_sbindir/%name
%_unitdir/%name.service
%_sysusersdir/%name.conf
%attr(755,%name,%name) %_sysconfdir/%name/tuwunel.toml
%attr(755,%name,%name) %dir %_localstatedir/%name/
%attr(755,%name,%name) %dir %_sysconfdir/%name/
%doc LICENSE README.md
%changelog
* Wed Feb 18 2026 Arseniy Romenskiy <romenskiy@altlinux.org> 1.5.0-alt1
- Initial build.