From c0191535350cbd3b0ff2deac867829aa6392e100 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 30 2018 16:26:19 +0000 Subject: Initial import (#1609285) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb1db07 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chafa-0.9.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 757043b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# chafa - -The chafa package \ No newline at end of file diff --git a/chafa-fix_obsolete_m4_macro.patch b/chafa-fix_obsolete_m4_macro.patch new file mode 100644 index 0000000..dd317a8 --- /dev/null +++ b/chafa-fix_obsolete_m4_macro.patch @@ -0,0 +1,22 @@ +From 2004cdb487b30040cc318634121ae8e73eb3d65e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= +Date: Mon, 30 Jul 2018 14:32:35 +0200 +Subject: [PATCH] AM_PROG_LIBTOOL is obsolete, replace it with LT_INIT + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 78fbb52..2b61724 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -33,7 +33,7 @@ AC_PROG_CC + AC_PROG_CC_C99 + AC_PROG_CPP + AC_PROG_INSTALL +-AM_PROG_LIBTOOL ++LT_INIT + + dnl --- Required standards --- + diff --git a/chafa.spec b/chafa.spec new file mode 100644 index 0000000..99177fe --- /dev/null +++ b/chafa.spec @@ -0,0 +1,114 @@ +Name: chafa +Version: 0.9.0 +Release: 1%{?dist} +%global sum Image-to-text converter for terminal +Summary: %{sum} +License: LGPLv3+ +URL: https://hpjansson.org/chafa/ +Source0: https://github.com/hpjansson/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz +Patch0: https://github.com/hpjansson/%{name}/pull/4.patch#/%{name}-fix_obsolete_m4_macro.patch + +BuildRequires: gcc +BuildRequires: glib2-devel +BuildRequires: gtk-doc +BuildRequires: ImageMagick-devel +BuildRequires: libtool + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + + +%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. + +It is highly configurable, with support for alpha transparency and multiple +color modes and color spaces, combining a range of Unicode characters for +optimal output. + + +%package libs +Summary: %{sum} (library) + +%description libs +Shared library for %{name}. + + +%package static +Summary: %{sum} (static library) + +%description static +Static library for %{name}. + + +%package devel +Summary: %{sum} (development files) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +Development files for %{name}, such as headers. + + +%package doc +Summary: %{sum} (documentation) +Recommends: %{name}-devel + +%description doc +Documentation for %{name}, such as headers. + + +%prep +%autosetup +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 + + +%files +%doc AUTHORS COPYING.LESSER README* NEWS +%license COPYING.LESSER +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + +%files libs +%doc AUTHORS +%license COPYING.LESSER +%{_libdir}/lib%{name}.so.0 +%{_libdir}/lib%{name}.so.0.0.0 + +%files static +%doc AUTHORS +%license COPYING.LESSER +%{_libdir}/lib%{name}.a +%{_libdir}/lib%{name}.la + +%files devel +%doc AUTHORS +%license COPYING.LESSER +%{_includedir}/%{name}/ +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/lib%{name}.so + +%files doc +%doc AUTHORS +%license COPYING.LESSER +%doc %{_datadir}/gtk-doc/html/%{name} + + +%changelog +* Mon Jul 30 2018 Miro Hrončok - 0.9.0-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..f3f90f6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chafa-0.9.0.tar.xz) = 37c9050709d6ec2ac8f6c2202e172df0ac8aa85ea398277d4e680412b9671cd117aba55befe60ade6365f94d909fe47a8f93795bf6d6308e7a25f15e2536fbd2