SHA256
1
0
forked from pool/wezterm

Accepting request 1093346 from X11:terminals

- Package is incompatible with native libraries. Disabling by commenting
  out CFLAGS and CXXFLAGS.
- Add missing dependencies
- Add %optflags
- Fix install section.
- Change and reupload source upstream tarball with already downloaded third-party deps.
- Use upstream tarball.
- Add global dashed_version since upstream uses dashses instead of periods.
- Update vendored dependencies.
- Update vendored dependencies.

OBS-URL: https://build.opensuse.org/request/show/1093346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wezterm?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2023-06-16 14:53:33 +00:00 committed by Git OBS Bridge
commit f4dd0aaa6a
6 changed files with 68 additions and 32 deletions

View File

@ -1,28 +1,24 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/wez/wezterm.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">69ae847</param>
<param name="match-tag">*</param>
<param name="versionrewrite-pattern">(\d+)-(\d+)-(\w+)</param>
<param name="versionrewrite-replacement">\1.\2.\3</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">socvirnyl.estela@gmail.com</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">zstd</param>
</service>
<service mode="disabled" name="set_version"/>
<service mode="disabled" name="download_files" />
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">wezterm</param>
<param name="srctar">wezterm-20230408.112425.69ae8472.tar.gz</param>
<param name="compression">zst</param>
<param name="update">true</param>
<param name="cargotoml">wezterm/Cargo.toml</param>
<param name="cargotoml">wezterm-blob-leases/Cargo.toml</param>
<param name="cargotoml">wezterm-client/Cargo.toml</param>
<param name="cargotoml">wezterm-dynamic/Cargo.toml</param>
<param name="cargotoml">wezterm-dynamic/derive/Cargo.toml</param>
<param name="cargotoml">wezterm-font/Cargo.toml</param>
<param name="cargotoml">wezterm-gui/Cargo.toml</param>
<param name="cargotoml">wezterm-gui-subcommands/Cargo.toml</param>
<param name="cargotoml">wezterm-input-types/Cargo.toml</param>
<param name="cargotoml">wezterm-mux-server/Cargo.toml</param>
<param name="cargotoml">wezterm-mux-server-impl/Cargo.toml</param>
<param name="cargotoml">wezterm-open-url/Cargo.toml</param>
<param name="cargotoml">wezterm-ssh/Cargo.toml</param>
<param name="cargotoml">wezterm-toast-notification/Cargo.toml</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">wezterm</param>
</service>
<service name="cargo_audit" mode="disabled" />
</services>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d55520e49e73dcfdc42f060c70fe8b1e97d978e9cf3792922d2ea12b8f2336fd
size 110399810
oid sha256:640e6d607da311841d4b65b67a2aa09baa3a1d4bb5afe141ccab6a5ce07567f5
size 110033666

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f5c15db8341b0c067d7a5f6f06d4af17d5c24526e908eac4bd70156cd565800
size 45617852

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d96938ecfd9847f330a9b219f8f239cc25c10945e58301ca2844292ca45c0a6
size 105690250

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Thu Jun 15 17:03:30 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Package is incompatible with native libraries. Disabling by commenting
out CFLAGS and CXXFLAGS.
-------------------------------------------------------------------
Thu Jun 15 16:35:37 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Add missing dependencies
-------------------------------------------------------------------
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>
- Change and reupload source upstream tarball with already downloaded third-party deps.
-------------------------------------------------------------------
Thu Jun 15 13:10:46 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Use upstream tarball.
- Add global dashed_version since upstream uses dashses instead of periods.
- Update vendored dependencies.
-------------------------------------------------------------------
Wed Jun 7 22:44:44 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update vendored dependencies.
-------------------------------------------------------------------
Fri Apr 14 13:41:36 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -17,6 +17,7 @@
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
%global _dashed_version 20230408-112425-69ae8472
Name: wezterm
Version: 20230408.112425.69ae8472
@ -24,7 +25,7 @@ Release: 0
Summary: GPU-accelerated cross-platform terminal emulator and multiplexer
URL: https://github.com/wez/wezterm
License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR BSD-2-Clause) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND LGPL-2.1-only AND MIT AND MPL-2.0 AND WTFPL AND Zlib AND MIT
Source0: %{name}-%{version}.tar.zst
Source0: https://github.com/wez/wezterm/releases/download/%{_dashed_version}/wezterm-%{_dashed_version}-src.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
Source2: cargo_config
Requires: terminfo
@ -53,6 +54,9 @@ BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-wm-devel
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(libgit2)
BuildRequires: pkgconfig(libssh2)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(tic)
@ -96,13 +100,15 @@ BuildArch: noarch
Zsh completion script for %{name}.
%prep
%autosetup -a1
%autosetup -a1 -n %{name}-%{_dashed_version}
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
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
@ -112,10 +118,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