c019153
Name:           chafa
13f502a
Version:        1.2.1
13f502a
Release:        1%{?dist}
c019153
%global sum     Image-to-text converter for terminal
c019153
Summary:        %{sum}
c019153
License:        LGPLv3+
c019153
URL:            https://hpjansson.org/chafa/
c019153
Source0:        https://github.com/hpjansson/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
c019153
c019153
BuildRequires:  gcc
c019153
BuildRequires:  glib2-devel
c019153
BuildRequires:  gtk-doc
c019153
BuildRequires:  ImageMagick-devel
c019153
BuildRequires:  libtool
c019153
c019153
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c019153
c019153
c019153
%description
c019153
Chafa is a command-line utility that converts all kinds of images, including
c019153
animated image formats like GIFs, into ANSI/Unicode character output that can
c019153
be displayed in a terminal.
c019153
c019153
It is highly configurable, with support for alpha transparency and multiple
c019153
color modes and color spaces, combining a range of Unicode characters for
c019153
optimal output.
c019153
c019153
c019153
%package libs
c019153
Summary:        %{sum} (library)
c019153
c019153
%description libs
c019153
Shared library for %{name}.
c019153
c019153
c019153
%package static
c019153
Summary:        %{sum} (static library)
c019153
c019153
%description static
c019153
Static library for %{name}.
c019153
c019153
c019153
%package devel
c019153
Summary:        %{sum} (development files)
c019153
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c019153
c019153
%description devel
c019153
Development files for %{name}, such as headers.
c019153
c019153
c019153
%package doc
c019153
Summary:        %{sum} (documentation)
c019153
Recommends:     %{name}-devel
c019153
c019153
%description doc
c019153
Documentation for %{name}, such as headers.
c019153
c019153
c019153
%prep
13f502a
%autosetup
13f502a
13f502a
13f502a
%build
c019153
autoreconf -ivf
c019153
c019153
# rpath
c019153
sed -i -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
c019153
       -e 's|runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
c019153
       -e "s|runpath_var='LD_RUN_PATH'|runpath_var=DIE_RPATH_DIE|g" \
c019153
    configure
c019153
c019153
%configure --disable-rpath
c019153
%make_build
c019153
c019153
c019153
%install
c019153
%make_install
c019153
c019153
c019153
%files
c019153
%doc AUTHORS COPYING.LESSER README* NEWS
c019153
%license COPYING.LESSER
c019153
%{_bindir}/%{name}
c019153
%{_mandir}/man1/%{name}.1*
c019153
c019153
%files libs
c019153
%doc AUTHORS
c019153
%license COPYING.LESSER
c019153
%{_libdir}/lib%{name}.so.0
faf2115
%{_libdir}/lib%{name}.so.0.1.1
c019153
c019153
%files static
c019153
%doc AUTHORS
c019153
%license COPYING.LESSER
c019153
%{_libdir}/lib%{name}.a
c019153
%{_libdir}/lib%{name}.la
c019153
c019153
%files devel
c019153
%doc AUTHORS
c019153
%license COPYING.LESSER
c019153
%{_includedir}/%{name}/
c019153
%{_libdir}/pkgconfig/%{name}.pc
c019153
%{_libdir}/lib%{name}.so
c019153
c019153
%files doc
c019153
%doc AUTHORS
c019153
%license COPYING.LESSER
c019153
%doc %{_datadir}/gtk-doc/html/%{name}
c019153
c019153
c019153
%changelog
13f502a
* Tue Aug 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-1
13f502a
- Update to 1.2.1 (#1742491)
13f502a
c226d95
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
c226d95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c226d95
7d962ec
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
7d962ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7d962ec
faf2115
* Tue Dec 25 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-1
faf2115
- Update to 1.0.1 (soversion 0.0.0 -> 0.1.1)
faf2115
- Rebuilt for new ImageMagick 6.9.10 (#1623249)
ee8c632
c019153
* Mon Jul 30 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-1
c019153
- Initial package
c019153