[packages/kitty] Add go vendor tarball
glen
glen at pld-linux.org
Wed Feb 22 19:49:41 CET 2023
commit 49257322f4a8f77a764a73309753f2b919e33a21
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Feb 22 20:31:12 2023 +0200
Add go vendor tarball
go-vendor.patch | 10 ++++++++++
kitty.spec | 8 +++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/kitty.spec b/kitty.spec
index 74c3160..c027d5c 100644
--- a/kitty.spec
+++ b/kitty.spec
@@ -18,7 +18,13 @@ Source1: https://raw.githubusercontent.com/kovidgoyal/kitty/46c0951751444e4f4994
# Source1-md5: 702c51cea58e8b0fb8fd67da9da3802a
Source2: %{name}.sh
Source3: %{name}.fish
+%if 0
+go mod vendor
+tar -caf ~/kitty-vendor.tar.xz vendor
+%endif
+Source4: %{name}-%{version}-vendor.tar.xz
Patch0: num-workers.patch
+Patch1: go-vendor.patch
URL: https://sw.kovidgoyal.net/kitty
BuildRequires: appstream-glib
BuildRequires: dbus-devel
@@ -131,7 +137,7 @@ Summary: Documentation for %{name}
This package contains the documentation for %{name}.
%prep
-%autosetup -p1
+%autosetup -p1 -a4
# Changing sphinx theme to classic
sed "s/html_theme = 'furo'/html_theme = 'classic'/" -i docs/conf.py
diff --git a/go-vendor.patch b/go-vendor.patch
new file mode 100644
index 0000000..fddb47e
--- /dev/null
+++ b/go-vendor.patch
@@ -0,0 +1,10 @@
+--- kitty-0.27.1/setup.py~ 2023-02-22 20:30:46.000000000 +0200
++++ kitty-0.27.1/setup.py 2023-02-22 20:32:42.454586120 +0200
+@@ -908,6 +908,7 @@
+ if not for_platform:
+ update_go_generated_files(args, os.path.join(launcher_dir, appname))
+ cmd = [go, 'build', '-v']
++ cmd += ['-mod=vendor']
+ ld_flags = [f"-X 'kitty.VCSRevision={get_vcs_rev_define()}'"]
+ if for_freeze:
+ ld_flags.append("-X 'kitty.IsFrozenBuild=true'")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kitty.git/commitdiff/49257322f4a8f77a764a73309753f2b919e33a21
More information about the pld-cvs-commit
mailing list