Added patch for gcc 4.3 rebuild

This commit is contained in:
Denis Leroy 2008-02-17 10:55:21 +00:00
parent ba84366d52
commit 4c41b24be0
2 changed files with 18 additions and 1 deletions

12
pstoedit-3.45-gcc43.patch Normal file
View File

@ -0,0 +1,12 @@
--- pstoedit-3.45/src/cppcomp.h~ 2007-07-22 13:27:40.000000000 +0200
+++ pstoedit-3.45/src/cppcomp.h 2008-02-17 11:53:46.000000000 +0100
@@ -37,6 +37,9 @@
#define _unix
#endif
+#include <cstring>
+#include <cstdlib>
+
#if defined (_MSC_VER) && (_MSC_VER >= 1100)
// MSVC 5 and 6 have ANSI C++ header files, but the compilation
// is much slower and object files get bigger.

View File

@ -1,6 +1,6 @@
Name: pstoedit
Version: 3.45
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Translates PostScript and PDF graphics into other vector formats
Group: Applications/Productivity
@ -9,6 +9,7 @@ URL: http://www.pstoedit.net/
Source0: http://download.sourceforge.net/pstoedit/pstoedit-%{version}.tar.gz
Patch0: pstoedit-3.44-cxxflags.patch
Patch1: pstoedit-3.45-quiet.patch
Patch2: pstoedit-3.45-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ghostscript
BuildRequires: gd-devel
@ -42,6 +43,7 @@ applications
%setup -q
%patch0 -p1 -b .cxxflags
%patch1 -p1 -b .quiet
%patch2 -p1 -b .gcc43
dos2unix doc/*.htm doc/readme.txt
%build
@ -86,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/*.m4
%changelog
* Sun Feb 17 2008 Denis Leroy <denis@poolshark.org> - 3.45-2
- Added patch for gcc 4.3 rebuild
* Thu Sep 20 2007 Denis Leroy <denis@poolshark.org> - 3.45-1
- Update to new upstream 3.45, bugfix release
- Updated quiet patch for 3.45