forked from pool/wezterm
- Add %optflags
- Fix install section. OBS-URL: https://build.opensuse.org/package/show/X11:terminals/wezterm?expand=0&rev=72
This commit is contained in:
parent
2d81cd5e65
commit
0e27f0d18c
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 16:18:52 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- Add %optflags
|
||||
- Fix install section.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 13:27:59 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
|
10
wezterm.spec
10
wezterm.spec
@ -104,6 +104,8 @@ tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo
|
||||
printf "%{version}" > .tag
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags"
|
||||
export CXXFLAGS="%optflags"
|
||||
%if 0%{?suse_version} > 1500
|
||||
%{cargo_build} --all-features
|
||||
%else
|
||||
@ -113,10 +115,10 @@ cargo build --offline --release --all-features
|
||||
%endif
|
||||
|
||||
%install
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/wezterm %{buildroot}%{_bindir}/wezterm
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/wezterm-gui %{buildroot}%{_bindir}/wezterm-gui
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/wezterm-mux-server %{buildroot}%{_bindir}/wezterm-mux-server
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/strip-ansi-escapes %{buildroot}%{_bindir}/strip-ansi-escapes
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{_dashed_version}/target/release/wezterm %{buildroot}%{_bindir}/wezterm
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{_dashed_version}/target/release/wezterm-gui %{buildroot}%{_bindir}/wezterm-gui
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{_dashed_version}/target/release/wezterm-mux-server %{buildroot}%{_bindir}/wezterm-mux-server
|
||||
install -Dm 0755 %{_builddir}/%{name}-%{_dashed_version}/target/release/strip-ansi-escapes %{buildroot}%{_bindir}/strip-ansi-escapes
|
||||
|
||||
install -Dm 0644 terminfo/w/wezterm %{buildroot}%{_datadir}/terminfo/w/wezterm
|
||||
install -Dm 0644 assets/%{name}.desktop %{buildroot}%{_datadir}/applications/org.wezfurlong.%{name}.desktop
|
||||
|
Loading…
Reference in New Issue
Block a user