From f39bdca381cfc4e684ca3e543d89c8e004683431 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 2 Mar 2026 12:33:10 -0800 Subject: [PATCH] add: wails and wails-v3 (#10192) (#10222) --- anda/lib/wails/v2/anda.hcl | 5 +++ anda/lib/wails/v2/update.rhai | 1 + anda/lib/wails/v2/wails.spec | 57 ++++++++++++++++++++++++++++++++ anda/lib/wails/v3/anda.hcl | 5 +++ anda/lib/wails/v3/update.rhai | 1 + anda/lib/wails/v3/wails3.spec | 62 +++++++++++++++++++++++++++++++++++ 6 files changed, 131 insertions(+) create mode 100644 anda/lib/wails/v2/anda.hcl create mode 100644 anda/lib/wails/v2/update.rhai create mode 100644 anda/lib/wails/v2/wails.spec create mode 100644 anda/lib/wails/v3/anda.hcl create mode 100644 anda/lib/wails/v3/update.rhai create mode 100644 anda/lib/wails/v3/wails3.spec diff --git a/anda/lib/wails/v2/anda.hcl b/anda/lib/wails/v2/anda.hcl new file mode 100644 index 0000000000..d329015457 --- /dev/null +++ b/anda/lib/wails/v2/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "wails.spec" + } +} diff --git a/anda/lib/wails/v2/update.rhai b/anda/lib/wails/v2/update.rhai new file mode 100644 index 0000000000..8fc7e0d1cf --- /dev/null +++ b/anda/lib/wails/v2/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("wailsapp/wails")); diff --git a/anda/lib/wails/v2/wails.spec b/anda/lib/wails/v2/wails.spec new file mode 100644 index 0000000000..849913d576 --- /dev/null +++ b/anda/lib/wails/v2/wails.spec @@ -0,0 +1,57 @@ +%global goipath github.com/wailsapp/wails/v2 +Version: 2.11.0 + +%gometa -f + +Name: wails +Release: 1%?dist +Summary: Create beautiful applications using Go + +License: MIT +URL: https://wails.io/ +Source0: https://github.com/wailsapp/wails/archive/refs/tags/v%{version}.tar.gz + +Packager: Owen Zimmerman + +BuildRequires: golang +BuildRequires: gcc +BuildRequires: go-rpm-macros +Requires: glibc +Requires: /usr/bin/npm +Requires: webkit2gtk4.1 +Requires: gtk3 + +%description +%{summary}. + +%gopkg + +%prep +%goprep + +%build +pushd v2/cmd/wails +GO111MODULE=on %gobuild +popd + +%install +install -Dm 0755 v2/cmd/wails/wails %{buildroot}%{_bindir}/wails + +%files +%license LICENSE +%doc README.md CONTRIBUTING.md CONTRIBUTORS.md CHANGELOG.md SECURITY.md +%lang(de) %doc README.de.md +%lang(es) %doc README.es.md +%lang(fr) %doc README.fr.md +%lang(ja) %doc README.ja.md +%lang(ko) %doc README.ko.md +%lang(pt_BR) %doc README.pt-br.md +%lang(ru) %doc README.ru.md +%lang(tr) %doc README.tr.md +%lang(uz) %doc README.uz.md +%lang(zh_CN) %doc README.zh-Hans.md +%{_bindir}/wails + +%changelog +* Mon Mar 02 2026 Owen Zimmerman +- Initial commit diff --git a/anda/lib/wails/v3/anda.hcl b/anda/lib/wails/v3/anda.hcl new file mode 100644 index 0000000000..4a4a0a7474 --- /dev/null +++ b/anda/lib/wails/v3/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "wails3.spec" + } +} diff --git a/anda/lib/wails/v3/update.rhai b/anda/lib/wails/v3/update.rhai new file mode 100644 index 0000000000..c1e5b35c16 --- /dev/null +++ b/anda/lib/wails/v3/update.rhai @@ -0,0 +1 @@ +rpm.global("ver", gh_tag("wailsapp/wails")); diff --git a/anda/lib/wails/v3/wails3.spec b/anda/lib/wails/v3/wails3.spec new file mode 100644 index 0000000000..e56dce03a6 --- /dev/null +++ b/anda/lib/wails/v3/wails3.spec @@ -0,0 +1,62 @@ +%global ver 3.0.0-alpha.74 +%global sanitized_ver %(echo %{ver} | sed 's/-/~/g') + +%global goipath github.com/wailsapp/wails/v3 +Version: %{sanitized_ver} + +%gometa -f + +Name: wails3 +Release: 1%?dist +Summary: Create beautiful applications using Go + +License: MIT +URL: https://wails.io/ + +Packager: Owen Zimmerman + +BuildRequires: golang +BuildRequires: gcc +BuildRequires: go-rpm-macros +BuildRequires: webkit2gtk4.1-devel +BuildRequires: gtk3-devel +Requires: glibc +Requires: /usr/bin/npm +Requires: webkit2gtk4.1 +Requires: gtk3 +Provides: wails-v3 + +%description +%{summary}. + +%gopkg + +%prep +%git_clone https://github.com/wailsapp/wails v3-alpha + +%build +pushd v3/cmd/wails3 +GO111MODULE=on %gobuild +popd + +%install +install -Dm 0755 v3/cmd/wails3/wails3 %{buildroot}%{_bindir}/wails3 + +%files +%license LICENSE +%doc README.md CONTRIBUTING.md CONTRIBUTORS.md CHANGELOG.md SECURITY.md +%lang(de) %doc README.de.md +%lang(es) %doc README.es.md +%lang(fr) %doc README.fr.md +%lang(ja) %doc README.ja.md +%lang(ko) %doc README.ko.md +%lang(pt_BR) %doc README.pt-br.md +%lang(ru) %doc README.ru.md +%lang(tr) %doc README.tr.md +%lang(uz) %doc README.uz.md +%lang(zh_CN) %doc README.zh-Hans.md +%{_bindir}/wails3 + +%changelog +* Mon Mar 02 2026 Owen Zimmerman +- Initial commit