SHA256
1
0
forked from pool/chafa
chafa/chafa.spec
Michael Vetter 6c24e3d9bc - Update to 1.6.0:
* Added support for fullwidth symbols that take up two character
    cells. These are common in East Asian scripts. Single-cell and
    double-cell symbols can be mixed, and -f symbols mode will use
    both if possible.
  * New symbol tags: alpha, digit, alnum, narrow, wide, ambiguous,
    ugly, bad. "Ambiguous" symbols have uncertain widths and may
    render poorly in some terminals. "Ugly" denotes symbols that
    are unsuitable for Chafa's cell-based graphics (multicolor
    emoji, ideographic descriptors, etc). "Bad" is a superset of
    these two categories. Bad symbols are always excluded unless
    explicitly enabled with e.g. CHAFA_SYMBOL_TAG_BAD (--symbols
    +bad in the frontend).
  * The font loader (--glyph-file option) now does a better job
    with proportional fonts.
  * Added options for controlling lossless optimization of output.
    Currently, attribute reuse and character repetition (REP
    sequence) are implemented.
  * Added -O option to the frontend. This controls the optimization
    level.
  * Added a simple abstraction layer for terminal control sequences
    (ChafaTermInfo and ChafaTermDb). This allows for improved
    terminal support.
  * FbTerm is now supported with TERM=fbterm in the environment.
  * Bug fixes:
    - #43 Fix signal handler.
    - [unfiled] Crash when invalid font paths were passed on command line.
    - [unfiled] Small typo in fontgen's READM).
    - [unfiled] Bad contrast adjustment in images with transparency.

OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=14
2021-01-15 08:45:17 +00:00

111 lines
3.0 KiB
RPMSpec

#
# spec file for package chafa
#
# Copyright (c) 2021 SUSE LLC
#
# 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.6.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: freetype2-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
The core of Chafa which converts all kinds of images, including
animated image formats like GIFs, into ANSI/Unicode characters.
%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
BuildArch: noarch
%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 README* NEWS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files -n libchafa0
%license COPYING.LESSER
%{_libdir}/lib%{name}.so.0
%{_libdir}/lib%{name}.so.0.5.0
%files devel
%license COPYING.LESSER
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%dir %{_libdir}/chafa/
%{_libdir}/chafa/include/
%files doc
%doc AUTHORS
%license COPYING.LESSER
%doc %{_datadir}/gtk-doc/html/%{name}
%changelog