4 Commits

3 changed files with 34 additions and 4 deletions

13
catimg-gcc15.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: catimg-2.7.0/src/catimg.c
===================================================================
--- catimg-2.7.0.orig/src/catimg.c
+++ catimg-2.7.0/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) {
loops = loop;
stop = 1;
}

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
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,7 @@
#
# spec file for package catimg
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,9 @@ Summary: Insanely fast image printing in your terminal
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
BuildRequires: cmake
# fix build with gcc15
Patch0: catimg-gcc15.patch
BuildRequires: cmake >= 3.5
BuildRequires: gcc
BuildRequires: gcc-c++
Requires: ImageMagick
@@ -41,10 +43,10 @@ BuildArch: noarch
The official zsh completion script for catimg.
%prep
%setup -q -n %{name}-%{version}
%autosetup -p1 -n %{name}-%{version}
%build
%cmake
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
%make_build
%install
@@ -53,6 +55,8 @@ cd build
install -Dm 0644 ../completion/_%{name} %{buildroot}/%{_datadir}/zsh/site-functions/_%{name}
%check
%ctest
%files
%{_bindir}/*