From c016ff5f00999fcf7cfc188e54cbc3fc9adeb06d8c10ca3cbfe8583063eaf30c Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 12 Aug 2022 23:44:40 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:terminals/wezterm?expand=0&rev=28 --- wezterm.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wezterm.spec b/wezterm.spec index 5d8e3e6..7ff0746 100644 --- a/wezterm.spec +++ b/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