SHA256
1
0
forked from pool/chafa
chafa/chafa.spec
Michael Vetter 75e526d331 - Update to 1.12.3:
* Increased GLib minimum version to 2.26.
  * Enabled a few compiler warnings not included in -Wall -Wextra
    in order to catch more potential issues early. Also started
    using -Werror selectively.
  * Silenced deprecation warnings for older GLib APIs that we
    would like to keep using a bit longer.
  * Fix #96 Regression: Fails to build on Linux/Debian

- Update to 1.12.2:
  * Made everything compile for the x86_64-w64-mingw32 target using gcc.
  * Added support for the Windows 10 Command Prompt.
  * Improved error reporting.

OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=33
2022-07-04 11:54:09 +00:00

110 lines
2.9 KiB
RPMSpec

#
# spec file for package chafa
#
# Copyright (c) 2022 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.12.3
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 >= 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