## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autochangelog ## END: Set by rpmautospec # Generated by rust2rpm 26 %bcond_without check %global forgeurl0 https://github.com/wez/wezterm %global version0 20240203.110809.5046fc22 %global commit0 f5e496ebc233187c076cbb34b3cd0f0c50290f51 %global forgeurl1 https://github.com/harfbuzz/harfbuzz %global commit1 63973005bc07aba599b47fdd4cf788647b601ccd %global forgeurl2 https://github.com/glennrp/libpng %global commit2 8439534daa1d3a5705ba92e653eda9251246dd61 %global forgeurl3 https://github.com/madler/zlib %global commit3 cacf7f1d4e3d44d871b605da3b647f07d718623f %global forgeurl4 https://github.com/wez/freetype2 %global commit4 e4586d960f339cf75e2e0b34aee30a0ed8353c0d %global forgeurl5 https://github.com/losfair/sqlite-cache %global commit5 0961b50385ff189bb12742716331c05ed0bf7805 %global forgeurl6 https://github.com/wez/xcb-imdkit-rs %global commit6 358e226573461fe540efb920e2aad740e3c6fab1 %global forgeurl7 https://github.com/fcitx/xcb-imdkit %global commit7 30e2f16f9a8b0e338e25ce5e3643809a07ad41f0 %forgemeta -a %undefine distprefix0 %undefine distprefix1 %undefine distprefix2 %undefine distprefix3 %undefine distprefix4 %undefine distprefix5 %undefine distprefix6 %undefine distprefix7 %define _app_id org.wezfurlong.wezterm %define _name wezterm Name: %{_name}-nightly Version: %{forgeversion} Release: 0%{?dist} Summary: A GPU-accelerated cross-platform terminal emulator and multiplexer SourceLicense: MIT # FIXME: paste output of %%cargo_license_summary here License: MIT # LICENSE.dependencies contains a full license breakdown URL: %{forgeurl0} Source0: %{forgesource0} Source1: %{forgesource1} Source2: %{forgesource2} Source3: %{forgesource3} Source4: %{forgesource4} Source5: %{forgesource5} Source6: %{forgesource6} Source7: %{forgesource7} Requires: fontconfig Requires: libssh2 Requires: libwayland-client Requires: libxkbcommon Requires: zlib-ng-compat Requires: libX11 Requires: libxkbcommon-x11 Requires: xcb-util Requires: xcb-util-image BuildRequires: cargo-rpm-macros >= 24 BuildRequires: gcc-c++ BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(libssh2) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb-util) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(xkbcommon-x11) %global _description %{expand: %{summary}.} %description %{_description} %prep %forgesetup -z 1 %forgesetup -z 2 %forgesetup -z 3 %forgesetup -z 4 %forgesetup -z 5 %forgesetup -z 6 rmdir deps/xcb-imdkit ln -s %{_builddir}/%{extractdir7} deps/xcb-imdkit %forgesetup -z 7 %forgesetup -z 0 %cargo_prep -N rmdir deps/harfbuzz/harfbuzz rmdir deps/freetype/libpng rmdir deps/freetype/zlib rmdir deps/freetype/freetype2 ln -s %{_builddir}/%{extractdir1} deps/harfbuzz/harfbuzz ln -s %{_builddir}/%{extractdir2} deps/freetype/libpng ln -s %{_builddir}/%{extractdir3} deps/freetype/zlib ln -s %{_builddir}/%{extractdir4} deps/freetype/freetype2 sed -i -e '/^sqlite-cache\b/ s,= .*$,= { path = "%{_builddir}/%{extractdir5}" },' sync-color-schemes/Cargo.toml sed -i -e '/^xcb-imdkit\b/ s,= .*$,= { path = "%{_builddir}/%{extractdir6}" },' window/Cargo.toml sed -i -e '/^offline\b/d' .cargo/config.toml %__cargo fetch %generate_buildrequires %build export LIBSSH2_SYS_USE_PKG_CONFIG=1 %cargo_build -f distro-defaults -- --frozen --offline %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -Dm0755 \ target/rpm/wezterm \ target/rpm/wezterm-gui \ target/rpm/wezterm-mux-server \ target/rpm/strip-ansi-escapes \ assets/open-wezterm-here \ -t %{buildroot}%{_bindir} install -Dm0644 assets/wezterm.desktop %{buildroot}%{_datadir}/applications/%{_app_id}.desktop install -Dm0644 assets/icon/terminal.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{_app_id}.png install -Dm0644 assets/icon/wezterm-icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{_app_id}.svg install -Dm0644 assets/wezterm.appdata.xml %{buildroot}%{_datadir}/metainfo/%{_app_id}.metainfo.xml install -Dm0644 assets/wezterm-nautilus.py %{buildroot}%{_datadir}/nautilus-python/extensions/wezterm-nautilus.py install -Dm0644 assets/shell-completion/bash %{buildroot}%{_datadir}/bash-completion/completions/%{_name} install -Dm0644 assets/shell-completion/zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{_name} install -Dm0644 assets/shell-completion/fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{_name}.fish install -Dm0644 assets/shell-integration/%{_name}.sh %{buildroot}%{_sysconfdir}/profile.d/%{_name}.sh %if %{with check} %check export LIBSSH2_SYS_USE_PKG_CONFIG=1 %cargo_test -- --frozen -- --skip "e2e::sftp" --skip "e2e::agent_forward" %endif %files %license LICENSE.md %license LICENSE.dependencies %doc README.md %{_bindir}/strip-ansi-escapes %{_bindir}/wezterm %{_bindir}/wezterm-gui %{_bindir}/wezterm-mux-server %{_bindir}/open-wezterm-here %{_datadir}/applications/%{_app_id}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{_app_id}.png %{_datadir}/icons/hicolor/scalable/apps/%{_app_id}.svg %{_datadir}/metainfo/%{_app_id}.metainfo.xml %{_datadir}/nautilus-python/extensions/wezterm-nautilus.py %{_datadir}/bash-completion/completions/%{_name} %{_datadir}/zsh/site-functions/_%{_name} %{_datadir}/fish/vendor_completions.d/%{_name}.fish %{_sysconfdir}/profile.d/%{_name}.sh %changelog ## START: Generated by rpmautospec * Wed Jun 12 2024 John Doe - 20240203.110809.5046fc22^20240612gitf5e496e-1 - Uncommitted changes ## END: Generated by rpmautospec