From 734a51b475e46f4b8b77ae00bc22e17a22609a837090d74a0eddda982980b61f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 13 Feb 2019 16:57:34 +0000 Subject: [PATCH] Accepting request 672773 from home:jubalh Please add me as maintainer OBS-URL: https://build.opensuse.org/request/show/672773 OBS-URL: https://build.opensuse.org/package/show/graphics/chafa?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + chafa-1.0.1.tar.xz | 3 ++ chafa.changes | 4 ++ chafa.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 chafa-1.0.1.tar.xz create mode 100644 chafa.changes create mode 100644 chafa.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/chafa-1.0.1.tar.xz b/chafa-1.0.1.tar.xz new file mode 100644 index 0000000..4fb75e1 --- /dev/null +++ b/chafa-1.0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49d491a566a22daf56c51c043259f1373a1b1125d5c1c1fe321f7c25ca178e01 +size 311616 diff --git a/chafa.changes b/chafa.changes new file mode 100644 index 0000000..cf5e1b8 --- /dev/null +++ b/chafa.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 8 11:47:49 UTC 2019 - mvetter@suse.com + +- Initial package chafa 1.0.1 for openSUSE diff --git a/chafa.spec b/chafa.spec new file mode 100644 index 0000000..d379c55 --- /dev/null +++ b/chafa.spec @@ -0,0 +1,107 @@ +# +# spec file for package chafa +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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.0.1 +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: 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 +Shared library for %{name}. + +%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 + +%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 AUTHORS README* NEWS +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1%{?ext_man} + +%files -n libchafa0 +%doc AUTHORS +%license COPYING.LESSER +%{_libdir}/lib%{name}.so.0 +%{_libdir}/lib%{name}.so.0.1.1 + +%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