From 09bbff98fbd36bb737f06c5a223897c35e29ab93 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:59:42 -0800 Subject: [PATCH] add: chdig (#7386) (#7393) --- anda/apps/chdig/anda.hcl | 5 +++++ anda/apps/chdig/chdig.spec | 35 +++++++++++++++++++++++++++++++++++ anda/apps/chdig/update.rhai | 1 + 3 files changed, 41 insertions(+) create mode 100644 anda/apps/chdig/anda.hcl create mode 100644 anda/apps/chdig/chdig.spec create mode 100644 anda/apps/chdig/update.rhai diff --git a/anda/apps/chdig/anda.hcl b/anda/apps/chdig/anda.hcl new file mode 100644 index 0000000000..3075a01453 --- /dev/null +++ b/anda/apps/chdig/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "chdig.spec" + } +} diff --git a/anda/apps/chdig/chdig.spec b/anda/apps/chdig/chdig.spec new file mode 100644 index 0000000000..3599552052 --- /dev/null +++ b/anda/apps/chdig/chdig.spec @@ -0,0 +1,35 @@ +%undefine __brp_mangle_shebangs + +Name: chdig +Version: 25.11.1 +Release: 1%?dist +Summary: Dig into ClickHouse with TUI interface +URL: https://github.com/azat/chdig +Source0: %url/archive/refs/tags/v%{version}.tar.gz +License: MIT +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold clang fontconfig-devel glib2 libgcc + +%description +%{summary}. + +%prep +%autosetup -n %{name}-%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/chdig %{buildroot}%{_bindir}/chdig +%cargo_license_summary_online +%{cargo_license_online -a} > LICENSE.dependencies + +%files +%doc README.md +%license LICENSE +%license LICENSE.dependencies +%{_bindir}/chdig + +%changelog +* Fri Nov 14 2025 Owen Zimmerman +- Intial Commit diff --git a/anda/apps/chdig/update.rhai b/anda/apps/chdig/update.rhai new file mode 100644 index 0000000000..b5b761f772 --- /dev/null +++ b/anda/apps/chdig/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("azat/chdig"));