diff --git a/ansilove-term-gcc13.patch b/ansilove-term-gcc13.patch new file mode 100644 index 0000000..e343477 --- /dev/null +++ b/ansilove-term-gcc13.patch @@ -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 + #include ++#include + + std::string cp_437_code_to_string(const uint8_t& cp_437); + std::string cp_437_to_utf8_string(std::vector& vector); diff --git a/ansilove-term.changes b/ansilove-term.changes index 81a1429..49e5ebe 100644 --- a/ansilove-term.changes +++ b/ansilove-term.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 12 09:38:34 UTC 2023 - Dominique Leuenberger + +- Add ansilove-term-gcc13.patch: fix build using GCC 13. + ------------------------------------------------------------------- Sun Oct 27 18:32:14 UTC 2019 - Martin Hauke diff --git a/ansilove-term.spec b/ansilove-term.spec index 0ef8d60..827c331 100644 --- a/ansilove-term.spec +++ b/ansilove-term.spec @@ -1,6 +1,7 @@ # # spec file for package ansilove-term # +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2019, Martin Hauke # # 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"