53 lines
1.7 KiB
RPMSpec
53 lines
1.7 KiB
RPMSpec
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/mas-cli %buildroot/%_sbindir/mas-cli
|
|
#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/mas-cli
|
|
#%_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.
|