From 0e27f0d18c4435f7865f195a7afce46d4fb9f586c2e128a8063a7cb338a11efa Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 15 Jun 2023 16:19:27 +0000 Subject: [PATCH] - Add %optflags - Fix install section. OBS-URL: https://build.opensuse.org/package/show/X11:terminals/wezterm?expand=0&rev=72 --- wezterm.changes | 6 ++++++ wezterm.spec | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/wezterm.changes b/wezterm.changes index ce487a0..5fffc3d 100644 --- a/wezterm.changes +++ b/wezterm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 15 16:18:52 UTC 2023 - Soc Virnyl Estela + +- Add %optflags +- Fix install section. + ------------------------------------------------------------------- Thu Jun 15 13:27:59 UTC 2023 - Soc Virnyl Estela diff --git a/wezterm.spec b/wezterm.spec index 8aa18cc..b6559e0 100644 --- a/wezterm.spec +++ b/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