forked from pool/chafa
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
This commit is contained in:
commit
734a51b475
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
chafa-1.0.1.tar.xz
Normal file
3
chafa-1.0.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:49d491a566a22daf56c51c043259f1373a1b1125d5c1c1fe321f7c25ca178e01
|
||||
size 311616
|
4
chafa.changes
Normal file
4
chafa.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 8 11:47:49 UTC 2019 - mvetter@suse.com
|
||||
|
||||
- Initial package chafa 1.0.1 for openSUSE
|
107
chafa.spec
Normal file
107
chafa.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user