- fixed compilation with gcc-4.3

This commit is contained in:
Dominik Mierzejewski 2008-01-06 14:14:57 +00:00
parent 09a2ad3ceb
commit c132d9185e
2 changed files with 18 additions and 1 deletions

12
libEMF-gcc43.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up libEMF-1.0.3/libemf/libemf.cpp.gcc43 libEMF-1.0.3/libemf/libemf.cpp
--- libEMF-1.0.3/libemf/libemf.cpp.gcc43 2003-01-27 20:36:25.000000000 +0100
+++ libEMF-1.0.3/libemf/libemf.cpp 2008-01-06 14:52:50.000000000 +0100
@@ -19,7 +19,7 @@
*
*/
#include <iostream>
-
+#include <climits>
#include "libemf.h"
namespace EMF {

View File

@ -2,13 +2,14 @@ Summary: A library for generating Enhanced Metafiles
Summary(pl): Biblioteka do generowania plików w formacie Enhanced Metafile Summary(pl): Biblioteka do generowania plików w formacie Enhanced Metafile
Name: libEMF Name: libEMF
Version: 1.0.3 Version: 1.0.3
Release: 5%{?dist} Release: 6%{?dist}
License: LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
Source0: http://dl.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz Source0: http://dl.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz
# Source0-md5: a4e91fd8077ce5f540f569e20e8ef7ff # Source0-md5: a4e91fd8077ce5f540f569e20e8ef7ff
Patch0: %{name}-amd64.patch Patch0: %{name}-amd64.patch
Patch1: %{name}-axp.patch Patch1: %{name}-axp.patch
Patch2: %{name}-gcc43.patch
URL: http://libemf.sourceforge.net/ URL: http://libemf.sourceforge.net/
BuildRequires: libstdc++-devel BuildRequires: libstdc++-devel
BuildRequires: libtool BuildRequires: libtool
@ -45,6 +46,7 @@ Pliki nagłówkowe libEMF.
%setup -q %setup -q
%patch0 -p1 -b .amd64 %patch0 -p1 -b .amd64
%patch1 -p1 -b .axp %patch1 -p1 -b .axp
%patch2 -p1 -b .gcc43
chmod 0644 libemf/libemf.h chmod 0644 libemf/libemf.h
%build %build
@ -90,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/libEMF %{_includedir}/libEMF
%changelog %changelog
* Sun Jan 06 2008 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 1.0.3-6
- fixed compilation with gcc-4.3
* Mon Dec 03 2007 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 1.0.3-5 * Mon Dec 03 2007 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 1.0.3-5
- fixed compilation on Alpha platform (patch by Oliver Falk) - fixed compilation on Alpha platform (patch by Oliver Falk)