This commit is contained in:
parent
335a19f2c7
commit
8140fa4dc3
12
wezterm.spec
12
wezterm.spec
@ -27,8 +27,12 @@ Source1: vendor.tar.gz
|
||||
Source2: cargo_config
|
||||
Requires: terminfo
|
||||
BuildRequires: Mesa-libEGL-devel
|
||||
BuildRequires: rust >= 1.43
|
||||
%if 0%{?suse_version} >= 1599
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: rust >= 1.46
|
||||
%else
|
||||
BuildRequires: cargo
|
||||
%endif
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: cmake
|
||||
@ -65,7 +69,11 @@ cp %{SOURCE2} .cargo/config
|
||||
tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo
|
||||
|
||||
%build
|
||||
%{cargo_build}
|
||||
%if 0%{?suse_version} < 1599
|
||||
cargo build --offline --release --all-features
|
||||
%else
|
||||
%{cargo_build}
|
||||
%endif
|
||||
|
||||
%install
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/wezterm %{buildroot}%{_bindir}/wezterm
|
||||
|
Loading…
Reference in New Issue
Block a user