fix
Some checks are pending
Some checks are pending
This commit is contained in:
parent
26769979a7
commit
821693c7b1
4 changed files with 42 additions and 48 deletions
|
|
@ -2,3 +2,4 @@ tar: v@version@:.
|
|||
tar: .gear/predownloaded-development name=@name@-development-@version@ base=
|
||||
spec: .gear/tuwunel.spec
|
||||
copy: .gear/config.toml
|
||||
copy: .gear/tuwunel.sysusers
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ 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
|
||||
|
|
@ -29,26 +30,28 @@ fully implementing the Matrix Specification for all but the most niche uses.
|
|||
%prep
|
||||
%setup -a1
|
||||
cat %SOURCE2 >> .cargo/config.toml
|
||||
#%%rust_prep
|
||||
|
||||
%build
|
||||
#export RUSTFLAGS="-C target-cpu=x86-64-v3"
|
||||
%rust_build
|
||||
|
||||
%install
|
||||
#install -Dm 755 wprs %buildroot/%_bindir/wprs
|
||||
#install -Dm 755 target/release/wprsc %buildroot/%_bindir/wprsc
|
||||
#install -Dm 755 target/release/wprsd %buildroot/%_bindir/wprsd
|
||||
#install -Dm 755 target/release/xwayland-xdg-shell %buildroot/%_bindir/xwayland-xdg-shell
|
||||
#install -Dm 644 wprsd.service %buildroot/%_user_unitdir/wprsd.service
|
||||
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
|
||||
#%_bindir/wprs
|
||||
#%_bindir/wprsc
|
||||
#%_bindir/wprsd
|
||||
#%_bindir/xwayland-xdg-shell
|
||||
#%_user_unitdir/wprsd.service
|
||||
#%doc LICENSE README.md
|
||||
%_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
|
||||
|
|
|
|||
|
|
@ -9,12 +9,17 @@ 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
|
||||
|
|
@ -24,48 +29,29 @@ fully implementing the Matrix Specification for all but the most niche uses.
|
|||
|
||||
%prep
|
||||
%setup -a1
|
||||
mv %SOURCE2 .cargo/
|
||||
#%%rust_prep
|
||||
mkdir -p .cargo
|
||||
cat >> .cargo/config.toml <<EOF
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
||||
|
||||
[term]
|
||||
verbose = true
|
||||
quiet = false
|
||||
|
||||
[install]
|
||||
root = "%buildroot%_prefix"
|
||||
|
||||
[build]
|
||||
rustflags = ["-Copt-level=3", "-Cdebuginfo=1"]
|
||||
|
||||
[profile.release]
|
||||
strip = false
|
||||
EOF
|
||||
cat %SOURCE2 >> .cargo/config.toml
|
||||
|
||||
%build
|
||||
#export RUSTFLAGS="-C target-cpu=x86-64-v3"
|
||||
%rust_build
|
||||
|
||||
%install
|
||||
#install -Dm 755 wprs %buildroot/%_bindir/wprs
|
||||
#install -Dm 755 target/release/wprsc %buildroot/%_bindir/wprsc
|
||||
#install -Dm 755 target/release/wprsd %buildroot/%_bindir/wprsd
|
||||
#install -Dm 755 target/release/xwayland-xdg-shell %buildroot/%_bindir/xwayland-xdg-shell
|
||||
#install -Dm 644 wprsd.service %buildroot/%_user_unitdir/wprsd.service
|
||||
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 %_localstatedir/tuwunel
|
||||
|
||||
%pre
|
||||
%sysusers_create_package %name %SOURCE3
|
||||
|
||||
%files
|
||||
#%_bindir/wprs
|
||||
#%_bindir/wprsc
|
||||
#%_bindir/wprsd
|
||||
#%_bindir/xwayland-xdg-shell
|
||||
#%_user_unitdir/wprsd.service
|
||||
#%doc LICENSE README.md
|
||||
%_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
|
||||
|
|
|
|||
4
.gear/tuwunel.sysusers
Normal file
4
.gear/tuwunel.sysusers
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# type name id gecos home shell
|
||||
g tuwunel -
|
||||
u tuwunel - "Tuwunel service user" - /sbin/bash
|
||||
m tuwunel uucp
|
||||
Loading…
Add table
Add a link
Reference in a new issue