forked from pool/chafa
beca3e2426
- Enable optional image formats * jpeg * svg * tiff * webp Hi graphics team, I made a small change to the build here, to enable optional image format support. This will allow, for example, users to use the svg logos included with every SUSE distro, to generate fastfetch/neofetch-style ascii art logos for their machine. I hope this is helpful! OBS-URL: https://build.opensuse.org/request/show/1175423 OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=41
113 lines
3.0 KiB
RPMSpec
113 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package chafa
|
|
#
|
|
# Copyright (c) 2024 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.14.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: freetype2-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: librsvg-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libwebp-devel
|
|
BuildRequires: gcc
|
|
BuildRequires: glib2-devel >= 2.26
|
|
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*
|
|
|
|
%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
|