added initial package spec

This commit is contained in:
TheK0tYaRa 2026-03-07 00:50:28 +03:00
parent a146cd27e8
commit 3b15bbf4f6

View file

@ -0,0 +1,53 @@
Name: matrix-authentication-service
Version: 1.12.0
Release: alt1
Summary: User management and authentication service for Matrix homeservers
License: AGPL-3.0
Group: System/Base
URL: https://github.com/element-hq/matrix-authentication-service
VCS: https://github.com/element-hq/matrix-authentication-service
Source: %name-%version.tar
Source1: %name-development-%version.tar
Source2: config.toml
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
MAS (Matrix Authentication Service) is a user management and authentication service for Matrix homeservers,
written and maintained by Element. You can directly run and manage the source code in this repository,
available under an AGPL license (or alternatively under a commercial license from Element).
Support is not provided by Element unless you have a subscription.
%prep
%setup -a1
cat %SOURCE2 >> .cargo/config.toml
%build
%rust_build
%install
install -Dm 755 target/release/%name %buildroot/%_sbindir/%name
#sed 's/PrivateUsers/##PrivateUsers/' -i rpm/tuwunel.service
#install -Dm 644 rpm/tuwunel.service %buildroot/%_user_unitdir/%name.service
#mkdir -p %buildroot/var/lib/tuwunel %buildroot/etc/tuwunel
#cp tuwunel-example.toml %buildroot/etc/tuwunel/tuwunel.toml
#useradd -r -s /usr/sbin/nologin tuwunel
#chmod -R tuwunel:tuwunel %buildroot/var/lib/tuwunel %buildroot/etc/tuwunel
%files
#%_sbindir/%name
#%_user_unitdir/%name.service
%doc LICENSE LICENSE-COMMERCIAL README.md
%changelog
* Sat Mar 7 2026 Arseniy Romenskiy <romenskiy@altlinux.org> 1.12.0-alt1
- Initial build.