forked from pool/chafa
817769274a
* Added --dither, --dither-grain and --dither-intensity options. These allow for sub-cell dithering in quantized modes (none, 2, 16, 240 and 256). Especially beneficial when used with -p off. * Added API for ordered and diffusion-based dithering in quantization. * Added API support for multiple 8bpc pixel modes: RGB, BGR, RGBA, BGRA, ARGB, ABGR with either premultiplied or unassociated alpha channels. * Smooth scaling is now done internally, meaning libchafa consumers no longer need to prescale images. * Implemented a machine learning tool that can generate custom fonts for efficient image reproduction from a provided dataset. This is left uninstalled since it's still experimental * Throughput improvements: + GIF animations now start playing instantly. + GIF CPU overhead reduced by 75%, peak memory use down 95%-99% (!). + XWD common case CPU overhead down 60-70%, peak memory down 70%. + Additional halving of CPU overhead in 240- and 256-color modes. + Streamlined pixel pipeline for better parallelization. * Installation instructions: + New: Guix (Guy Fleury Iteriteka). + New: openSUSE (@jubalh). * Bug fixes: + [unfiled] Certain SVGs had transparency replaced with a white background (nemo). + [unfiled] -lm dependency belongs in libchafa, not frontend. OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=2
108 lines
2.8 KiB
RPMSpec
108 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package chafa
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: chafa
|
|
Version: 1.2.0
|
|
Release: 0
|
|
Summary: Image-to-text converter for terminal
|
|
License: LGPL-3.0-or-later
|
|
Group: Amusements/Toys/Graphics
|
|
URL: https://hpjansson.org/chafa/
|
|
Source0: https://github.com/hpjansson/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
BuildRequires: ImageMagick-devel
|
|
BuildRequires: gcc
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: libtool
|
|
Requires: libchafa0 = %{version}
|
|
|
|
%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.
|
|
|
|
%package -n libchafa0
|
|
Summary: Shared library for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libchafa0
|
|
Shared library for %{name}.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libchafa0 = %{version}
|
|
|
|
%description devel
|
|
Development files for %{name}.
|
|
|
|
%package doc
|
|
Summary: Chafa documentation
|
|
Group: Documentation/HTML
|
|
Recommends: %{name}-devel
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
autoreconf -ivf
|
|
|
|
# rpath
|
|
sed -i -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
-e 's|runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
-e "s|runpath_var='LD_RUN_PATH'|runpath_var=DIE_RPATH_DIE|g" \
|
|
configure
|
|
|
|
%build
|
|
%configure --disable-rpath
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm -rf %{buildroot}%{_libdir}/libchafa.{a,la}
|
|
|
|
%post -n libchafa0 -p /sbin/ldconfig
|
|
%postun -n libchafa0 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING.LESSER
|
|
%doc AUTHORS README* NEWS
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files -n libchafa0
|
|
%doc AUTHORS
|
|
%license COPYING.LESSER
|
|
%{_libdir}/lib%{name}.so.0
|
|
%{_libdir}/lib%{name}.so.0.1.1
|
|
|
|
%files devel
|
|
%doc AUTHORS
|
|
%license COPYING.LESSER
|
|
%{_includedir}/%{name}/
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%files doc
|
|
%doc AUTHORS
|
|
%license COPYING.LESSER
|
|
%doc %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
%changelog
|