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
|
Name: wezterm
|
||||||
Version: 20220624.141144.bd1b7c5d+git307
|
Version: 20220624.141144.bd1b7c5d+git307
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -28,7 +30,7 @@ Source2: cargo_config
|
|||||||
Requires: terminfo
|
Requires: terminfo
|
||||||
BuildRequires: Mesa-libEGL-devel
|
BuildRequires: Mesa-libEGL-devel
|
||||||
BuildRequires: rust >= 1.43
|
BuildRequires: rust >= 1.43
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} > 1500
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging
|
||||||
%else
|
%else
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
@ -69,10 +71,12 @@ cp %{SOURCE2} .cargo/config
|
|||||||
tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo
|
tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} > 1500
|
||||||
cargo build --offline --release --all-features
|
%{cargo_build}
|
||||||
%else
|
%else
|
||||||
%{cargo_build}
|
export CARGO_FEATURE_VENDORED=1
|
||||||
|
export RUSTFLAGS='%{rustflags}'
|
||||||
|
cargo build --offline --release --all-features -j$(nproc)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user