From cf9d6e4297954f9791e2de286f3735904daa4db1 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 30 Mar 2025 08:47:19 -0700 Subject: [PATCH] add: git-biance, act, atac (#4184) (#4208) * add: git-biance * add: act, atac * Update anda/langs/rust/atac/atac.spec Co-authored-by: madomado Signed-off-by: xiaoshihou * fix: apply reviewer changes * fix: add packager, less verbose pkg name * Update anda/langs/go/act/act.spec Co-authored-by: Gilver Signed-off-by: xiaoshihou * Update anda/langs/go/act/act.spec Co-authored-by: Gilver Signed-off-by: xiaoshihou * revert: non-working go_build_online * Update anda/langs/go/act/act.spec Co-authored-by: Gilver Signed-off-by: xiaoshihou * fix: remove redundant sections * fix: remove redundant description * ref: just package it manually... * fix: apply oniguruma cflag fix as suggested * fix: skip #! check * fix(act): feed in the version * fix: name conflict * wip: rename the act package * chore: remove non doc file * fix: add build dep --------- Signed-off-by: xiaoshihou Co-authored-by: madomado Co-authored-by: Gilver (cherry picked from commit 60f5fbf94c77c55143b32bc512383bddbe1a08d9) Co-authored-by: xiaoshihou --- anda/devs/atac/anda.hcl | 5 ++ anda/devs/atac/atac.spec | 42 ++++++++++++++++ anda/devs/atac/update.rhai | 1 + anda/devs/git-biance/anda.hcl | 5 ++ anda/devs/git-biance/git-biance.spec | 41 ++++++++++++++++ anda/devs/git-biance/update.rhai | 1 + anda/langs/go/gh-act/anda.hcl | 5 ++ anda/langs/go/gh-act/gh-act.spec | 72 ++++++++++++++++++++++++++++ anda/langs/go/gh-act/update.rhai | 1 + 9 files changed, 173 insertions(+) create mode 100644 anda/devs/atac/anda.hcl create mode 100644 anda/devs/atac/atac.spec create mode 100644 anda/devs/atac/update.rhai create mode 100644 anda/devs/git-biance/anda.hcl create mode 100644 anda/devs/git-biance/git-biance.spec create mode 100644 anda/devs/git-biance/update.rhai create mode 100644 anda/langs/go/gh-act/anda.hcl create mode 100644 anda/langs/go/gh-act/gh-act.spec create mode 100644 anda/langs/go/gh-act/update.rhai diff --git a/anda/devs/atac/anda.hcl b/anda/devs/atac/anda.hcl new file mode 100644 index 0000000000..326f9fa7dc --- /dev/null +++ b/anda/devs/atac/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "atac.spec" + } +} diff --git a/anda/devs/atac/atac.spec b/anda/devs/atac/atac.spec new file mode 100644 index 0000000000..5cd4481ef3 --- /dev/null +++ b/anda/devs/atac/atac.spec @@ -0,0 +1,42 @@ +%global crate atac + +%if 0%{?fedora} >= 42 +%global build_cflags %{__build_flags_lang_c} %{?_distro_extra_cflags} -std=gnu18 +%endif +%global __brp_mangle_shebangs %{nil} + +Name: atac +Version: 0.19.0 +Release: 1%?dist +Summary: Arguably a Terminal API Client + +License: MIT +URL: https://crates.io/crates/atac +Source: %{crates_source} + +Packager: xiaoshihou +BuildRequires: anda-srpm-macros cargo-rpm-macros mold + +%global _description %{expand: +Arguably a Terminal API Client. Feature-full, free, open-source, offline +and account-less.} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/%{crate} + + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install diff --git a/anda/devs/atac/update.rhai b/anda/devs/atac/update.rhai new file mode 100644 index 0000000000..ffe2bc5881 --- /dev/null +++ b/anda/devs/atac/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("atac")); diff --git a/anda/devs/git-biance/anda.hcl b/anda/devs/git-biance/anda.hcl new file mode 100644 index 0000000000..30e78c3b04 --- /dev/null +++ b/anda/devs/git-biance/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "git-biance.spec" + } +} diff --git a/anda/devs/git-biance/git-biance.spec b/anda/devs/git-biance/git-biance.spec new file mode 100644 index 0000000000..3188598f56 --- /dev/null +++ b/anda/devs/git-biance/git-biance.spec @@ -0,0 +1,41 @@ +%global crate git-biance + +Name: git-biance +Version: 0.1.2 +Release: 1%?dist +Summary: Visualize code contributions in a GitHub-style graph. + +License: GPL-3.0 +URL: https://crates.io/crates/git-biance +Source: %{crates_source} + +Packager: xiaoshihou +BuildRequires: anda-srpm-macros cargo-rpm-macros mold + +%global _description %{expand: +biance(鞭策,biān cè,spur)is a small rust +program that shows and visualizes code contributions +in a git repository. +} + +%description %{_description} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc README.md README-zh.md +%{_bindir}/%{crate} + + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install diff --git a/anda/devs/git-biance/update.rhai b/anda/devs/git-biance/update.rhai new file mode 100644 index 0000000000..942124dadf --- /dev/null +++ b/anda/devs/git-biance/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("git-biance")); diff --git a/anda/langs/go/gh-act/anda.hcl b/anda/langs/go/gh-act/anda.hcl new file mode 100644 index 0000000000..3f970c527c --- /dev/null +++ b/anda/langs/go/gh-act/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "gh-act.spec" + } +} diff --git a/anda/langs/go/gh-act/gh-act.spec b/anda/langs/go/gh-act/gh-act.spec new file mode 100644 index 0000000000..784ff75a6c --- /dev/null +++ b/anda/langs/go/gh-act/gh-act.spec @@ -0,0 +1,72 @@ +# Generated by go2rpm 1.15.0 +%bcond check 1 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# https://github.com/nektos/act +%global goipath github.com/nektos/act +Version: 0.2.75 + +%gometa -f + +%global common_description %{expand: +Run your GitHub Actions locally +} + +%global golicenses LICENSE pkg/lookpath/LICENSE +%global godocs README.md + +Name: gh-act +Release: %autorelease +Summary: None + +License: MIT AND ISC AND BSD-3-Clause AND Apache-2.0 AND BSD-2-Clause +URL: %{gourl} +Source: %{gosource} +Packager: xiaoshihou +BuildRequires: anda-srpm-macros + +%description %{common_description} + +%gopkg + +%prep +%autosetup -p1 -n act-%{version} +%go_prep_online + +%if %{without bootstrap} +%build +%define gomodulesmode GO111MODULE=on +%define __gobuild_extldflags -X main.version=%version +%gobuild -o %{gobuilddir}/bin/gh-act %{goipath} +%endif + +%install +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE pkg/lookpath/LICENSE +%doc CONTRIBUTING.md IMAGES.md README.md +%{_bindir}/gh-act +%endif + +%changelog +%autochangelog diff --git a/anda/langs/go/gh-act/update.rhai b/anda/langs/go/gh-act/update.rhai new file mode 100644 index 0000000000..1338f20ec2 --- /dev/null +++ b/anda/langs/go/gh-act/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("nektos/act"));