File tiv.spec of Package tiv

#
# spec file for package tiv
#
# Copyright (c) 2023 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/
#


%define lname   TerminalImageViewer
Name:           tiv
Version:        1.2
Release:        0
Summary:        Terminal Image Viewer
License:        Apache-2.0 or GPL-3.0-or-later
URL:            https://github.com/stefanhaustein/TerminalImageViewer
Source:         %{url}/archive/v.%{version}/%{lname}-v.%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  ImageMagick-devel

%description
tiv is a small C++ program to display images in a (modern) terminal using
RGB ANSI codes and unicode block graphic characters.

%prep
%autosetup -n %{lname}-v.%{version}

%build
%make_build -C src

%install
install -Dpm755 src/tiv %{buildroot}%{_bindir}/tiv

%files
%license LICENSE
%doc README*
%{_bindir}/tiv

%changelog

openSUSE Build Service is sponsored by