fix
Some checks are pending
Some checks are pending
This commit is contained in:
parent
26769979a7
commit
2d885c284e
2 changed files with 11 additions and 28 deletions
|
|
@ -37,17 +37,17 @@ cat %SOURCE2 >> .cargo/config.toml
|
|||
|
||||
%install
|
||||
#install -Dm 755 wprs %buildroot/%_bindir/wprs
|
||||
#install -Dm 755 target/release/wprsc %buildroot/%_bindir/wprsc
|
||||
install -Dm 755 target/release/%name %buildroot/%_bindir/%name
|
||||
#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 644 rpm/tuwunel.service %buildroot/%_user_unitdir/%name.service
|
||||
|
||||
%files
|
||||
#%_bindir/wprs
|
||||
%_bindir/%name
|
||||
#%_bindir/wprsc
|
||||
#%_bindir/wprsd
|
||||
#%_bindir/xwayland-xdg-shell
|
||||
#%_user_unitdir/wprsd.service
|
||||
%_user_unitdir/%name.service
|
||||
#%doc LICENSE README.md
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ 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,29 +28,8 @@ fully implementing the Matrix Specification for all but the most niche uses.
|
|||
|
||||
%prep
|
||||
%setup -a1
|
||||
mv %SOURCE2 .cargo/
|
||||
cat %SOURCE2 >> .cargo/config.toml
|
||||
#%%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
|
||||
|
||||
%build
|
||||
#export RUSTFLAGS="-C target-cpu=x86-64-v3"
|
||||
|
|
@ -54,10 +37,10 @@ EOF
|
|||
|
||||
%install
|
||||
#install -Dm 755 wprs %buildroot/%_bindir/wprs
|
||||
#install -Dm 755 target/release/wprsc %buildroot/%_bindir/wprsc
|
||||
install -Dm 755 target/release/%name %buildroot/%_bindir/%name
|
||||
#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 644 rpm/tuwunel.service %buildroot/%_user_unitdir/%name.service
|
||||
|
||||
%files
|
||||
#%_bindir/wprs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue