6 Commits

Author SHA256 Message Date
337305aa74 Accepting request 1326641 from graphics
Forwarded request #1326609 from AndreasStieger

catimg 2.8.0

OBS-URL: https://build.opensuse.org/request/show/1326641
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/catimg?expand=0&rev=4
2026-01-12 09:26:27 +00:00
JL K
b90cdd2a47 catimg 2.8.0
OBS-URL: https://build.opensuse.org/package/show/graphics/catimg?expand=0&rev=11
2026-01-11 14:36:30 +00:00
bf8faf8509 Accepting request 1284158 from graphics
Forwarded request #1284039 from pgajdos

- added patches
  fix build with gcc15
  + catimg-gcc15.patch

OBS-URL: https://build.opensuse.org/request/show/1284158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/catimg?expand=0&rev=3
2025-06-10 07:07:41 +00:00
JL K
c728a21b84 Accepting request 1284039 from home:pgajdos
- added patches
  fix build with gcc15
  + catimg-gcc15.patch

OBS-URL: https://build.opensuse.org/request/show/1284039
OBS-URL: https://build.opensuse.org/package/show/graphics/catimg?expand=0&rev=9
2025-06-09 10:48:36 +00:00
665ce564bd Accepting request 1255254 from graphics
OBS-URL: https://build.opensuse.org/request/show/1255254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/catimg?expand=0&rev=2
2025-03-24 12:30:34 +00:00
JL K
455c2b6d6f - Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
- Add %check section

OBS-URL: https://build.opensuse.org/package/show/graphics/catimg?expand=0&rev=7
2025-03-22 13:15:44 +00:00
5 changed files with 64 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
size 90898

3
catimg-2.8.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1f4f54c237cd3b70c8a125044eb2578e8263c12b42d401a42c02c32f10f62548
size 90793

22
catimg-gcc15.patch Normal file
View File

@@ -0,0 +1,22 @@
From 31b39851ac0b67b8e26f397ac83caf68086d3732 Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Mon, 15 Dec 2025 00:22:35 +0900
Subject: [PATCH] Fix build error on GCC 15 (#76)
---
src/catimg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/catimg.c b/src/catimg.c
index 962ce5c..5dd5c3f 100644
--- a/src/catimg.c
+++ b/src/catimg.c
@@ -34,7 +34,7 @@ extern int optreset;
volatile int loops = -1, loop = -1;
volatile char stop = 0;
-void intHandler() {
+void intHandler(int sig) {
loops = loop;
stop = 1;
}

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sun Jan 11 12:53:35 UTC 2026 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 2.8.0:
* compatibility with cmake 4
- use cmake macros in packaging
-------------------------------------------------------------------
Mon Jun 9 09:22:55 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ catimg-gcc15.patch
-------------------------------------------------------------------
Fri Mar 21 01:30:02 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
- Add %check section
-------------------------------------------------------------------
Sun Apr 10 18:51:38 UTC 2022 - Jan-Luca Kiok <me@jlk.one>

View File

@@ -1,7 +1,8 @@
#
# spec file for package catimg
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +18,17 @@
Name: catimg
Version: 2.7.0
Version: 2.8.0
Release: 0
License: MIT
Summary: Insanely fast image printing in your terminal
License: MIT
Group: Productivity/Graphics/Viewers
URL: http://posva.net/shell/retro/bash/2013/05/27/catimg
Source: https://github.com/posva/catimg/archive/refs/tags/%{version}.tar.gz
URL: https://posva.net/shell/retro/bash/2013/05/27/catimg
Source: https://github.com/posva/catimg/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/posva/catimg/pull/76
Patch0: catimg-gcc15.patch
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
Requires: ImageMagick
%description
@@ -41,26 +43,27 @@ BuildArch: noarch
The official zsh completion script for catimg.
%prep
%setup -q -n %{name}-%{version}
%autosetup -p1
%build
%cmake
%make_build
%cmake_build
%install
cd build
%make_install
install -Dm 0644 ../completion/_%{name} %{buildroot}/%{_datadir}/zsh/site-functions/_%{name}
%cmake_install
install -Dm 0644 completion/_%{name} %{buildroot}/%{_datadir}/zsh/site-functions/_%{name}
%check
%ctest
%files
%{_bindir}/*
%_mandir/*/*
%doc README.md
%license LICENSE
%doc README.md
%{_bindir}/catimg
%{_mandir}/man1/catimg.1%{?ext_man}
%files zsh-completion
%license LICENSE
%{_datadir}/zsh
%changelog