diff --git a/anda/tools/chafa/anda.hcl b/anda/tools/chafa/anda.hcl new file mode 100644 index 0000000000..5955930ce3 --- /dev/null +++ b/anda/tools/chafa/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "chafa.spec" + } + labels { + subrepo = "extras" + } +} diff --git a/anda/tools/chafa/chafa.spec b/anda/tools/chafa/chafa.spec new file mode 100644 index 0000000000..217226dd07 --- /dev/null +++ b/anda/tools/chafa/chafa.spec @@ -0,0 +1,67 @@ +Name: terra-chafa +Version: 1.18.1 +Release: 1%?dist +Summary: Terminal graphics for the 21st century +License: LGPL-3.0-or-later AND GPL-3.0-or-later +URL: https://hpjansson.org/chafa/ +Source0: https://github.com/hpjansson/chafa/archive/refs/tags/%version.tar.gz + +BuildRequires: gcc +BuildRequires: gtk-doc +BuildRequires: libtool +BuildRequires: make +BuildRequires: libjpeg-turbo-devel +BuildRequires: libavif-devel +BuildRequires: librsvg2-devel +BuildRequires: libtiff-devel +BuildRequires: libwebp-devel +BuildRequires: libpng-devel +BuildRequires: anda-srpm-macros +Requires: %{name}-libs%{?_isa} = %{evr} +Provides: chafa = %{evr} + +Packager: Owen Zimmerman + +%description +Chafa is a command-line utility that converts all kinds of images, including +animated image formats like GIFs, into ANSI/Unicode character output that can +be displayed in a terminal. + +It is highly configurable, with support for alpha transparency and multiple +color modes and color spaces, combining a range of Unicode characters for +optimal output. + +%package libs +%pkg_libs_files + +%package devel +Requires: %{name}-libs%{?_isa} = %{evr} +%pkg_devel_files +%{_libdir}/chafa/include/chafaconfig.h + +%package static +%pkg_static_files + +%prep +%autosetup -n chafa-%{version} + +%build +autoreconf -ivf +%configure --disable-rpath +%make_build + +%install +%make_install +%if 0%{?rhel} +find %{buildroot} -name "*.la" -delete +%endif + +%files +%doc AUTHORS COPYING.LESSER README* NEWS +%license COPYING.LESSER COPYING +%{_bindir}/chafa +%{_mandir}/man1/chafa.1* + +%changelog +* Fri Feb 20 2026 Owen Zimmerman +- Initial commit diff --git a/anda/tools/chafa/update.rhai b/anda/tools/chafa/update.rhai new file mode 100644 index 0000000000..eb610d596d --- /dev/null +++ b/anda/tools/chafa/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("hpjansson/chafa"));