mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
(cherry picked from commit b81b54bcfc)
Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "chafa.spec"
|
||||
}
|
||||
labels {
|
||||
subrepo = "extras"
|
||||
}
|
||||
}
|
||||
@@ -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 <owen@fyralabs.com>
|
||||
|
||||
%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 <owen@fyralabs.com>
|
||||
- Initial commit
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("hpjansson/chafa"));
|
||||
Reference in New Issue
Block a user