forked from pool/wezterm
This commit is contained in:
parent
6fadfaf8bf
commit
c016ff5f00
12
wezterm.spec
12
wezterm.spec
@ -16,6 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
|
||||
|
||||
Name: wezterm
|
||||
Version: 20220624.141144.bd1b7c5d+git307
|
||||
Release: 0
|
||||
@ -28,7 +30,7 @@ Source2: cargo_config
|
||||
Requires: terminfo
|
||||
BuildRequires: Mesa-libEGL-devel
|
||||
BuildRequires: rust >= 1.43
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: cargo-packaging
|
||||
%else
|
||||
BuildRequires: cargo
|
||||
@ -69,10 +71,12 @@ cp %{SOURCE2} .cargo/config
|
||||
tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} < 1500
|
||||
cargo build --offline --release --all-features
|
||||
%if 0%{?suse_version} > 1500
|
||||
%{cargo_build}
|
||||
%else
|
||||
%{cargo_build}
|
||||
export CARGO_FEATURE_VENDORED=1
|
||||
export RUSTFLAGS='%{rustflags}'
|
||||
cargo build --offline --release --all-features -j$(nproc)
|
||||
%endif
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user