# # spec file for package ueberzugpp # # 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 short_name ueberzug Name: ueberzugpp Version: 2.8.4 Release: 0 Summary: Drop in replacement for ueberzug written in C++ License: GPL-3.0 URL: https://github.com/jstkdng/%{name} Source: https://github.com/jstkdng/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: automake BuildRequires: cmake BuildRequires: cmake(cppzmq) BuildRequires: cmake(Microsoft.GSL) BuildRequires: cmake(spdlog) BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: make BuildRequires: ninja BuildRequires: pkgconfig(CLI11) BuildRequires: pkgconfig(botan-2) BuildRequires: pkgconfig(chafa) BuildRequires: pkgconfig(libsixel) BuildRequires: pkgconfig(nlohmann_json) BuildRequires: pkgconfig(opencv4) BuildRequires: pkgconfig(tbb) BuildRequires: pkgconfig(vips) BuildRequires: pkgconfig(xcb-image) %description Ɯberzug++ is a command line utility written in C++ which allows to draw images on terminals by using child windows or using sixel on supported terminals. This is a drop-in replacement for the now defunct ueberzug project. Advantages over w3mimgdisplay and ueberzug: - X11 and sixel support on supported terminals - no race conditions as a new window is created to display images - expose events will be processed, so images will be redrawn on switch workspaces - tmux support - terminals without the WINDOWID environment variable are supported - chars are used as position - and size unit - No memory leak (usage of smart pointers) - A lot of image formats supported (through opencv and libvips). - GIF and animated WEBP support on X11 and Sixel - Fast image downscaling (through opencv and opencl) - Cache resized images for faster viewing %prep %autosetup %build %cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=YES -DCMAKE_BUILD_TYPE=release %cmake_build %install %cmake_install %files %{_bindir}/%{short_name} %license LICENSE %doc README.md %changelog