From f587794a43f02a43a7001775f26a69929410ab37376897a9b074702ff695bbab Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Thu, 14 Apr 2022 10:58:51 +0000 Subject: [PATCH] Accepting request 970112 from home:mlin7442:rebuild_fails_154 fix Leap build OBS-URL: https://build.opensuse.org/request/show/970112 OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=73 --- pdf2djvu.changes | 5 +++++ pdf2djvu.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/pdf2djvu.changes b/pdf2djvu.changes index 3a6da5a..a9200d9 100644 --- a/pdf2djvu.changes +++ b/pdf2djvu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 14 08:24:32 UTC 2022 - Max Lin + +- Use C++17 for fix Leap build + ------------------------------------------------------------------- Wed Mar 16 09:30:48 UTC 2022 - Christophe Giboudeaux diff --git a/pdf2djvu.spec b/pdf2djvu.spec index 5c1c4a6..8fb4a08 100644 --- a/pdf2djvu.spec +++ b/pdf2djvu.spec @@ -52,6 +52,9 @@ metadata (including XMP metadata). %autosetup -p1 %build +%if 0%{?suse_version} < 1550 +export CXXFLAGS="%{optflags} -std=c++17" +%endif %configure %make_build