diff --git a/scribus-1.5.6.1-podofo-0.9.7.patch b/scribus-1.5.6.1-podofo-0.9.7.patch new file mode 100644 index 0000000..64f842f --- /dev/null +++ b/scribus-1.5.6.1-podofo-0.9.7.patch @@ -0,0 +1,24 @@ +From c6182ef92820b422d61c904e40e9fed865458eb5 Mon Sep 17 00:00:00 2001 +From: Jean Ghali +Date: Tue, 12 Jan 2021 11:17:17 +0000 +Subject: [PATCH] #16427: Fix build failure with podofo 0.9.7 + +git-svn-id: svn://scribus.net/trunk/Scribus@24392 11d20701-8431-0410-a711-e3c959e3b870 +--- + scribus/pdf_analyzer.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/scribus/pdf_analyzer.cpp b/scribus/pdf_analyzer.cpp +index 01c115e69b..8c9464297b 100644 +--- a/scribus/pdf_analyzer.cpp ++++ b/scribus/pdf_analyzer.cpp +@@ -139,7 +139,9 @@ PDFColorSpace PDFAnalyzer::getCSType(PdfObject* cs) + { + pBase = cs->GetOwner()->GetObject(base.GetReference()); + } ++#if (PODOFO_VERSION < PODOFO_MAKE_VERSION(0, 9, 7)) + pBase->SetOwner(cs->GetOwner()); ++#endif + return getCSType(pBase); + } + if (csTypeName == "Separation") diff --git a/scribus.spec b/scribus.spec index 5c6b9d8..aff3649 100644 --- a/scribus.spec +++ b/scribus.spec @@ -1,14 +1,15 @@ Name: scribus Version: 1.5.6.1 -Release: 1mamba +Release: 2mamba Summary: Open Source Page Layout program Group: Graphical Desktop/Applications/Graphics Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.scribus.net +URL: https://www.scribus.net Source0: http://downloads.sourceforge.net/project/scribus/scribus-devel/%{version}/scribus-%{version}.tar.xz Source1: scribus-mimelnk +Patch0: scribus-1.5.6.1-podofo-0.9.7.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -28,9 +29,8 @@ BuildRequires: libtiff-devel BuildRequires: libxml2-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END -BuildRequires: libpodofo-devel >= 0.9.5-1mamba +BuildRequires: libpodofo-devel >= 0.9.7-1mamba BuildRequires: perl >= 5.8.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Scribus is an desktop open source page layout program with the aim of producing commerical grade output in PDF and Postscript, primarily, though not exclusively for Linux. @@ -44,13 +44,13 @@ Requires: %{name} = %{version} %description devel Scribus is an desktop open source page layout program with the aim of producing commerical grade output in PDF and Postscript, primarily, though not exclusively for Linux. While the goals of the program are for ease of use and simple easy to understand tools, Scribus offers support for professional publishing features, such as CMYK colors, easy PDF creation, Encapsulated Postscript import/export and creation of color separations. - -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. %debug_package %prep %setup -q +%patch0 -p1 %build %cmake_kde5 \ @@ -118,6 +118,9 @@ This package contains static libraries and header files need for development. %doc AUTHORS COPYING %changelog +* Sun Mar 07 2021 Silvan Calarco 1.5.6.1-2mamba +- rebuilt by autoport with build requirements: libpodofo-devel>=0.9.7-1mamba + * Tue Nov 17 2020 Automatic Build System 1.5.6.1-1mamba - automatic version update by autodist