2019-02-13 17:57:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package chafa
|
|
|
|
#
|
2023-05-22 08:25:46 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-02-13 17:57:34 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-24 10:38:48 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-02-13 17:57:34 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: chafa
|
2023-05-22 08:25:46 +02:00
|
|
|
Version: 1.12.5
|
2019-02-13 17:57:34 +01:00
|
|
|
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
|
- Update to 1.4.0:
* Added sixel graphics support. Chafa will automatically produce sixels
if the connected terminal supports it. It can also be forced using the
new -f or --format flag. This is a new implementation written from the
ground up to maximize throughput.
* Added the --glyph-file option, which loads glyph-symbol mappings from
any file format supported by FreeType (TTF, PCF, etc). This allows for
custom font support and improved symbol selection.
* Added the --speed option specifying animation speed. It accepts a
unitless multiplier, a specific number of frames per second, or max
for maximum throughput.
* There are now two ways to assign colors to symbol cells. Formerly,
this was done based on the average color of the covered area. The new
default is to use the median color, which produces sharper edges,
but is slightly more prone to high-frequency noise. The new option
--color-extractor selects the method to employ.
* When displaying multiple files, the default delay between files has
been changed from three seconds to zero. Animations will still play
through once. This can be overridden on the chafa command line with -d
or --duration.
* Minor tweaks to built-in symbols.
Performance improvements:
* Halved pixel storage requirements from 64 bits to 32 bits,
resulting in significant memory savings.
* Now builds with -ffast-math, yielding a big speedup for DIN99d.
OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=10
2020-04-02 10:18:06 +02:00
|
|
|
BuildRequires: freetype2-devel
|
2019-02-13 17:57:34 +01:00
|
|
|
BuildRequires: gcc
|
2022-07-04 13:54:09 +02:00
|
|
|
BuildRequires: glib2-devel >= 2.26
|
2019-02-13 17:57:34 +01:00
|
|
|
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
|
2019-08-24 10:38:48 +02:00
|
|
|
The core of Chafa which converts all kinds of images, including
|
|
|
|
animated image formats like GIFs, into ANSI/Unicode characters.
|
2019-02-13 17:57:34 +01:00
|
|
|
|
|
|
|
%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
|
2019-08-24 10:38:48 +02:00
|
|
|
BuildArch: noarch
|
2019-02-13 17:57:34 +01:00
|
|
|
|
|
|
|
%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
|
2019-08-24 10:38:48 +02:00
|
|
|
%doc README* NEWS
|
2019-02-13 17:57:34 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
|
|
|
|
%files -n libchafa0
|
|
|
|
%license COPYING.LESSER
|
2021-06-07 20:38:34 +02:00
|
|
|
%{_libdir}/lib%{name}.so.0*
|
2019-02-13 17:57:34 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license COPYING.LESSER
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/lib%{name}.so
|
2020-03-04 07:45:46 +01:00
|
|
|
%dir %{_libdir}/chafa/
|
|
|
|
%{_libdir}/chafa/include/
|
2019-02-13 17:57:34 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc AUTHORS
|
|
|
|
%license COPYING.LESSER
|
|
|
|
%doc %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
|
|
|
|
%changelog
|