diff --git a/pstoedit-3.45-gcc43.patch b/pstoedit-3.45-gcc43.patch new file mode 100644 index 0000000..f301d21 --- /dev/null +++ b/pstoedit-3.45-gcc43.patch @@ -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 ++#include ++ + #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. diff --git a/pstoedit.spec b/pstoedit.spec index 506bace..9192c08 100644 --- a/pstoedit.spec +++ b/pstoedit.spec @@ -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 - 3.45-2 +- Added patch for gcc 4.3 rebuild + * Thu Sep 20 2007 Denis Leroy - 3.45-1 - Update to new upstream 3.45, bugfix release - Updated quiet patch for 3.45