Fix build error

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-07-14 11:28:46 +08:00
parent 4da1a4f97a
commit 5ca32d28de
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/drvpptx.cpp b/src/drvpptx.cpp
index d3b37b3..208a938 100644
--- a/src/drvpptx.cpp
+++ b/src/drvpptx.cpp
@@ -65,6 +65,7 @@ long lroundf(float f) {
#define ZIP_EXTERN extern
#include <zip.h>
+#include <memory>
#ifdef _MSC_VER
// MS VC++ Windows

View File

@ -1,11 +1,14 @@
Name: pstoedit
Version: 3.78
Release: 1
Release: 2
Summary: Translates PostScript and PDF graphics into other vector formats
License: GPLv2+
URL: http://www.pstoedit.net/
Source0: https://sourceforge.net/projects/pstoedit/files/pstoedit/%{version}/pstoedit-%{version}.tar.gz
Patch0: pstoedit-pkglibdir.patch
Patch1: Fix-compilation-failure-caused-by-gcc12.patch
Requires: ghostscript
BuildRequires: gd-devel dos2unix ghostscript libzip-devel
BuildRequires: plotutils-devel automake gcc-c++ libEMF-devel
@ -66,6 +69,9 @@ install -D doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1/
%{_mandir}/man1/*
%changelog
* Fri Jul 14 2023 xu_ping <707078654@qq.com> - 3.78-2
- Fix compilation failure caused by gcc12
* Tue Jan 10 2023 yaoxin <yaoxin30@h-partners.com> - 3.78-1
- Update to 3.78