diff --git a/03f8270d6bb255ca6618505e83169ab9d95ccef1.patch b/03f8270d6bb255ca6618505e83169ab9d95ccef1.patch new file mode 100644 index 0000000..b04faab --- /dev/null +++ b/03f8270d6bb255ca6618505e83169ab9d95ccef1.patch @@ -0,0 +1,37 @@ +From 03f8270d6bb255ca6618505e83169ab9d95ccef1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= +Date: Tue, 21 Feb 2023 18:45:00 -0500 +Subject: [PATCH] Issue #12 - Include stdint.h where needed + +- This fixes an issue building with gcc 13 + +https://gitlab.freedesktop.org/libopenraw/libopenraw/-/issues/12 +--- + lib/trace.hpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/lib/trace.hpp b/lib/trace.hpp +index d56c286e..9dae1181 100644 +--- a/lib/trace.hpp ++++ b/lib/trace.hpp +@@ -1,7 +1,7 @@ + /* + * libopenraw - trace.hpp + * +- * Copyright (C) 2006-2020 Hubert Figuière ++ * Copyright (C) 2006-2023 Hubert Figuière + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License +@@ -20,6 +20,8 @@ + + #pragma once + ++#include ++ + #include + #include + #include +-- +GitLab + diff --git a/libopenraw.changes b/libopenraw.changes index dca0eb5..8217cc5 100644 --- a/libopenraw.changes +++ b/libopenraw.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 10 21:06:06 UTC 2023 - Bjørn Lie + +- Add 03f8270d6bb255ca6618505e83169ab9d95ccef1.patch: Include + stdint.h where needed. This fixes an issue building with gcc 13. + ------------------------------------------------------------------- Tue Feb 21 10:07:01 UTC 2023 - Paolo Stivanin diff --git a/libopenraw.spec b/libopenraw.spec index f9d5b38..9c97797 100644 --- a/libopenraw.spec +++ b/libopenraw.spec @@ -29,6 +29,9 @@ Source2: %{name}.keyring # cd lib/mp4 && cargo vendor -s Cargo.toml -s mp4parse/Cargo.toml -s mp4parse_capi/Cargo.toml && tar cf vendor.tar.xz vendor Source3: vendor.tar.xz Source99: baselibs.conf +# PATCH-FIX-UPSTREAM 03f8270d6bb255ca6618505e83169ab9d95ccef1.patch -- Include stdint.h where needed +Patch0: 03f8270d6bb255ca6618505e83169ab9d95ccef1.patch + BuildRequires: autoconf >= 2.69 BuildRequires: cargo BuildRequires: gcc-c++ @@ -79,7 +82,7 @@ Requires: libopenraw9 = %{version}-%{release} libopenraw is a library that aim at decoding digital camera RAW files. %prep -%autosetup -a3 +%autosetup -a3 -p1 mv vendor lib/mp4/ cd lib/mp4 sed -i 's/byteorder = "1.2.1"/byteorder = "1.2.2"/' mp4parse/Cargo.toml