Dominique Leuenberger 2023-04-30 14:08:02 +00:00 committed by Git OBS Bridge
commit 15858f303a
3 changed files with 20 additions and 2 deletions

12
ansilove-term-gcc13.patch Normal file
View File

@ -0,0 +1,12 @@
Index: ansilove-term-0.0.0+git.20190908/src/libtextmode/utf8.h
===================================================================
--- ansilove-term-0.0.0+git.20190908.orig/src/libtextmode/utf8.h
+++ ansilove-term-0.0.0+git.20190908/src/libtextmode/utf8.h
@@ -3,6 +3,7 @@
#include <vector>
#include <string>
+#include <cstdint>
std::string cp_437_code_to_string(const uint8_t& cp_437);
std::string cp_437_to_utf8_string(std::vector<uint8_t>& vector);

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 12 09:38:34 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Add ansilove-term-gcc13.patch: fix build using GCC 13.
-------------------------------------------------------------------
Sun Oct 27 18:32:14 UTC 2019 - Martin Hauke <mardnh@gmx.de>

View File

@ -1,6 +1,7 @@
#
# spec file for package ansilove-term
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@ -26,6 +27,7 @@ URL: https://www.ansilove.org
#Git-Clone: https://github.com/ansilove/ansilove-term.git
Source: %{name}-%{version}.tar.xz
Patch0: ansilove-term-use-gcc.patch
Patch1: ansilove-term-gcc13.patch
BuildRequires: gcc-c++
%description
@ -33,8 +35,7 @@ Ansilove-Term is a command line tool to render text-mode art files as
PNG files, as well as displaying in several different mediums.
%prep
%setup -q
%patch0 -p1
%autosetup -p1
%build
export CXXFLAGS="%{optflags} -Wno-return-type"