File project.diff of Package ghostty

--- ghostty.changes.orig
+++ ghostty.changes
@@ -1,4 +1,19 @@
 -------------------------------------------------------------------
+Mon Sep 22 19:48:41 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
+
+- add OFL to the license string as we embed the fonts.
+
+-------------------------------------------------------------------
+Mon Sep 22 11:25:28 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
+
+- Update to 1.2.0
+  https://ghostty.org/docs/install/release-notes/1-2-0
+- Add BuildRequires for pkgconfig(gtk4-layer-shell-0) which is
+  needed now. but not in the distro yet.
+- update vendor.sh based on nix/build-support/fetch-zig-cache.sh
+- regenerate the vendor tarball
+
+-------------------------------------------------------------------
 Mon Sep 22 11:19:28 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
 
 - remove duplicated description
--- ghostty.spec.orig
+++ ghostty.spec
@@ -21,24 +21,23 @@
 %bcond_without  standalone_terminfo
 
 Name:           ghostty
-Version:        1.1.3
+Version:        1.2.0
 Release:        0
 Summary:        Cross-platform terminal emulator
-License:        MIT
+License:        MIT AND OFL-1.1
 URL:            https://github.com/ghostty-org/ghostty
 # can be verified with:
 # minisign -V -P 'RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV' -m ghostty-%{version}.tar.gz
 Source0:        https://release.files.ghostty.org/%{version}/ghostty-%{version}.tar.gz
 Source2:        https://release.files.ghostty.org/%{version}/ghostty-%{version}.tar.gz.minisig
 Source1:        vendor.tar.zst
-Source98:       series
 Source99:       vendor.sh
 BuildRequires:  gobject-introspection
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  pandoc
 BuildRequires:  pkgconfig
-BuildRequires:  (zig >= 0.13.0 with zig < 0.14)
 BuildRequires:  zstd
+BuildRequires:  (zig >= 0.14.0 with zig < 0.15)
 BuildRequires:  pkgconfig(bash-completion)
 #
 # In theory it should be able to use those as well but the build is not picking them up
@@ -52,11 +51,13 @@ BuildRequires:  python3-gobject
 BuildRequires:  pkgconfig(fontconfig)
 BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(gtk4)
+BuildRequires:  pkgconfig(gtk4-layer-shell-0)
 BuildRequires:  pkgconfig(libadwaita-1)
 BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(ncurses)
 BuildRequires:  pkgconfig(oniguruma)
 BuildRequires:  pkgconfig(pixman-1)
+BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(zlib)
 %if %{with standalone_terminfo}
 Requires:       terminfo-ghostty = %{version}
@@ -152,6 +153,8 @@ emulator that uses platform-native UI an
 
 This holds the terminfo files for ghostty.
 
+%lang_package
+
 %prep
 %autosetup -p1 -a1
 
@@ -167,8 +170,12 @@ zig build %{common_build_flags} --prefix
 rm -rv %{buildroot}%{_datadir}/terminfo/
 %endif
 
+# we tried to use find_lang like this, but it didnt find any files.
+# so we are currently listing them manually
+#find_lang com.mitchellh.ghostty
+
 %files
-%license LICENSE
+%license LICENSE src/font/res/OFL.txt
 %{_bindir}/%{name}
 %{_datadir}/applications/com.mitchellh.ghostty.desktop
 %{_mandir}/man1/ghostty.1%{?ext_man}
@@ -201,6 +208,10 @@ rm -rv %{buildroot}%{_datadir}/terminfo/
 %dir %{_datadir}/bat/syntaxes
 %{_datadir}/bat/syntaxes/ghostty.sublime-syntax
 
+%{_userunitdir}/app-com.mitchellh.ghostty.service
+%{_datadir}/dbus-1/services/com.mitchellh.ghostty.service
+%{_datadir}/metainfo/com.mitchellh.ghostty.metainfo.xml
+
 %dir %{_datadir}/kio
 %dir %{_datadir}/kio/servicemenus
 %{_datadir}/kio/servicemenus/com.mitchellh.ghostty.desktop
@@ -259,4 +270,9 @@ rm -rv %{buildroot}%{_datadir}/terminfo/
 %{_datadir}/terminfo/x/xterm-ghostty
 %endif
 
+%files lang
+%dir %{_datadir}/locale/*/
+%dir %{_datadir}/locale/*/LC_MESSAGES/
+%{_datadir}/locale/*/LC_MESSAGES/com.mitchellh.ghostty.mo
+
 %changelog
--- vendor.sh.orig
+++ vendor.sh
@@ -6,11 +6,31 @@ set -x
 
 export SUBDIR="vendor/zig/"
 export ZIG_GLOBAL_CACHE_DIR="${PWD}/${SUBDIR}"
-export ZSTD_CLEVEL="9"
 
-zig build --fetch
-zig fetch git+https://github.com/zigimg/zigimg#3a667bdb3d7f0955a5a51c8468eac83210c1439e
-zig fetch git+https://github.com/mitchellh/libxev#f6a672a78436d8efee1aa847a43a900ad773618b
+# NOTE THIS IS A TEMPORARY SCRIPT TO SUPPORT PACKAGE MAINTAINERS.
+#
+# A future Zig version will hopefully fix the issue where
+# `zig build --fetch` doesn't fetch transitive dependencies[1]. When that
+# is resolved, we won't need any special machinery for the general use case
+# at all and packagers can just use `zig build --fetch`.
+#
+# [1]: https://github.com/ziglang/zig/issues/20976
+
+if [ -z ${ZIG_GLOBAL_CACHE_DIR+x} ]
+then
+  echo "must set ZIG_GLOBAL_CACHE_DIR!"
+  exit 1
+fi
+
+ZON_TXT_FILE="build.zig.zon.txt"
+while IFS= read -r url; do
+  echo "Fetching: $url"
+  zig fetch "$url" >/dev/null 2>&1 || {
+    echo "Failed to fetch: $url" >&2
+    exit 1
+  }
+done < "$ZON_TXT_FILE"
+
 
 find "${SUBDIR}" -type d -iname test -print0 | xargs -r0 rm -rv
 
openSUSE Build Service is sponsored by