SHA256
1
0
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:
Soc Virnyl Estela 2023-06-15 16:19:27 +00:00 committed by Git OBS Bridge
parent 2d81cd5e65
commit 0e27f0d18c
2 changed files with 12 additions and 4 deletions

View File

@ -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>

View File

@ -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