diff --git a/anda/apps/mpv/mpv-nightly.spec b/anda/apps/mpv/mpv-nightly.spec index 34f15f987e..6a89319e91 100644 --- a/anda/apps/mpv/mpv-nightly.spec +++ b/anda/apps/mpv/mpv-nightly.spec @@ -1,6 +1,6 @@ -%global commit f8cef99033e2e46e610f7378334f59cd242dacb4 +%global commit d702e5fec8090e1700e9b00557680a81e925a507 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date 20250428 +%global commit_date 20250504 %global ver 0.40.0 Name: mpv-nightly diff --git a/anda/devs/ghostty/nightly/ghostty-nightly.spec b/anda/devs/ghostty/nightly/ghostty-nightly.spec index 745cb44aaf..a83e82690d 100644 --- a/anda/devs/ghostty/nightly/ghostty-nightly.spec +++ b/anda/devs/ghostty/nightly/ghostty-nightly.spec @@ -1,6 +1,6 @@ -%global commit 464b85b64c6228f1dfcf5cd853a342e582701126 +%global commit 35c9d32e696637475a1b854f56cd7f497b318761 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global fulldate 2025-05-02 +%global fulldate 2025-05-07 %global commit_date %(echo %{fulldate} | sed 's/-//g') %global public_key RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV %global ver 1.1.4 diff --git a/anda/devs/micro/anda.hcl b/anda/devs/micro/anda.hcl new file mode 100644 index 0000000000..beefa6bf82 --- /dev/null +++ b/anda/devs/micro/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "micro-nightly.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/devs/micro/micro-nightly.spec b/anda/devs/micro/micro-nightly.spec new file mode 100644 index 0000000000..ea0fc98481 --- /dev/null +++ b/anda/devs/micro/micro-nightly.spec @@ -0,0 +1,109 @@ +# Generated by go2rpm 1.15.0 +%bcond check 0 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# Naming variable as something other than "commit" is necessary +# to stop %%gometa from putting commit hash in release +%global commit_hash 91832d0016d0610141ab44c438316d5fdf38b4c5 +%global commit_date 20250507 +%global shortcommit %{sub %{commit_hash} 1 7} +%global ver 2.0.14 + +# https://github.com/zyedidia/micro +%global goipath github.com/zyedidia/micro +Version: %{ver}^%{commit_date}git.%{shortcommit} + +%gometa -f + +%global common_description %{expand: +micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the capabilities of modern terminals. It strives to be enjoyable as a full-time editor for people who prefer to work in a terminal, or those who regularly edit files over SSH.} + +%global golicenses LICENSE LICENSE-THIRD-PARTY +%global godocs README.md runtime/help/colors.md runtime/help/commands.md\\\ + runtime/help/copypaste.md runtime/help/defaultkeys.md\\\ + runtime/help/help.md runtime/help/keybindings.md\\\ + runtime/help/options.md runtime/help/plugins.md\\\ + runtime/help/tutorial.md + +Name: micro.nightly +Release: 2%{?dist} +Summary: A modern and intuitive terminal-based text editor + +License: MIT +URL: %{gourl} +Packager: sadlerm + +BuildRequires: anda-srpm-macros + +Recommends: wl-clipboard +Recommends: (xclip or xsel) + +Provides: micro-nightly = %{version}-%{release} +Provides: micro +Conflicts: micro + +%description %{common_description} + +%gopkg + +%global buildsubdir micro-%{version} + +%prep +git clone --recurse-submodules -q %{gourl} micro-%{version} +cd %{builddir}/micro-%{version} && git checkout -q %{commit_hash} +%gomkdir +%go_prep_online + +%build +%if %{without bootstrap} +go generate ./runtime + +MICRO_VERSION=$(go run ./tools/build-version.go) +MICRO_DATE=$(date --date=%{commit_date} +"%%B %%d, %%Y") + +LDFLAGS="-X internal/util.version=${MICRO_VERSION} \ + -X internal/util.hash=%{shortcommit} \ + -X 'internal/util.date=${MICRO_DATE}'" + +%define gomodulesmode GO111MODULE=on +%gobuild -o %{gobuilddir}/bin/micro ./cmd/micro +%endif + +%install +%if %{without bootstrap} +install -Dm755 %{gobuilddir}/bin/micro -t %{buildroot}%{_bindir} +install -Dm644 assets/packaging/micro.1 -t %{buildroot}%{_mandir}/man1 +install -Dm644 assets/packaging/micro.desktop -t %{buildroot}%{_datadir}/applications +install -Dm644 assets/micro-logo-mark.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/micro.svg + +# for %%doc packaging +mv -v ./runtime/help . +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gotest ./internal/... ./cmd/micro/... +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE LICENSE-THIRD-PARTY +%doc README.md help +%{_bindir}/micro +%{_mandir}/man1/micro.1.gz +%{_datadir}/applications/micro.desktop +%{_datadir}/icons/hicolor/scalable/apps/micro.svg +%endif + +%changelog +%autochangelog diff --git a/anda/devs/micro/update.rhai b/anda/devs/micro/update.rhai new file mode 100644 index 0000000000..f87863b9e7 --- /dev/null +++ b/anda/devs/micro/update.rhai @@ -0,0 +1,7 @@ +rpm.global("commit_hash", gh_commit("zyedidia/micro")); +let v = gh("zyedidia/micro"); +if rpm.changed() { + rpm.global("commit_date", date()); + v.crop(1); + rpm.global("ver", v); +} diff --git a/anda/devs/zed/nightly/zed-nightly.spec b/anda/devs/zed/nightly/zed-nightly.spec index 1f6ee88b98..275067d73d 100644 --- a/anda/devs/zed/nightly/zed-nightly.spec +++ b/anda/devs/zed/nightly/zed-nightly.spec @@ -1,7 +1,7 @@ -%global commit 55eb0710edef8f967ef28b374f2a5cf4c13fde6a +%global commit 5539d82ea647584cdd69e48d4532933fdbe14d5e %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date 20250505 -%global ver 0.186.0 +%global commit_date 20250507 +%global ver 0.187.0 %bcond_with check diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 287876daa8..64e75eb757 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,11 +1,11 @@ %global real_name prismlauncher %global nice_name PrismLauncher -%global commit 693d9d02bca3348b9a59e013867c3f6c8c5a9f98 +%global commit cb8f6f5e80e42dc7d59336109d5ae3daa45f024e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 23b955121b8217c1c348a9ed2483167a6f3ff4ad -%global commit_date 20250505 +%global commit_date 20250506 %global snapshot_info %{commit_date}.%{shortcommit} %bcond_without qt6 diff --git a/anda/langs/nim/nim-nightly/nim-nightly.spec b/anda/langs/nim/nim-nightly/nim-nightly.spec index 75b4ff1cde..df3b7511ab 100644 --- a/anda/langs/nim/nim-nightly/nim-nightly.spec +++ b/anda/langs/nim/nim-nightly/nim-nightly.spec @@ -1,8 +1,8 @@ %global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10 -%global commit f56568d851eb7f859e6e355495c2be28ac9819e9 +%global commit 59ceff4f1afdbc35cfc1dd679ca31369e71b3873 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global ver 2.3.1 -%global commit_date 20250502 +%global commit_date 20250507 %global debug_package %nil Name: nim-nightly diff --git a/anda/system/nvidia-patch/nvidia-patch.spec b/anda/system/nvidia-patch/nvidia-patch.spec index dcde587685..55cd3e567f 100644 --- a/anda/system/nvidia-patch/nvidia-patch.spec +++ b/anda/system/nvidia-patch/nvidia-patch.spec @@ -1,7 +1,7 @@ %global debug_package %{nil} -%global commit 39f21ee316e6740be2fb1350086c8086906529a0 +%global commit 0c21bb5407668d0151a7dcdb9a3d940fa9ee0e33 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date 20250430 +%global commit_date 20250504 %global patches %{_datadir}/src/nvidia-patch diff --git a/anda/tools/spotx-bash/spotx-bash.spec b/anda/tools/spotx-bash/spotx-bash.spec index 2120efd502..13d0849579 100644 --- a/anda/tools/spotx-bash/spotx-bash.spec +++ b/anda/tools/spotx-bash/spotx-bash.spec @@ -1,5 +1,5 @@ -%global commit 9093d0e29f0c871ce7a005a8e4cd5ca474438b24 -%global commit_date 20250412 +%global commit 1d16abcbb6cdd0a2882084d91dedc4e1f0e3844c +%global commit_date 20250504 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: spotx-bash