From 09a2ad3cebdcd5455a1fae9a4abeb686371598e3 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Mon, 3 Dec 2007 21:42:23 +0000 Subject: [PATCH] - fixed compilation on Alpha platform (patch by Oliver Falk) --- libEMF-axp.patch | 12 ++++++++++++ libEMF.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libEMF-axp.patch diff --git a/libEMF-axp.patch b/libEMF-axp.patch new file mode 100644 index 0000000..4e3f639 --- /dev/null +++ b/libEMF-axp.patch @@ -0,0 +1,12 @@ +diff -up libEMF-1.0.3/include/libEMF/wine/winnt.h.axp libEMF-1.0.3/include/libEMF/wine/winnt.h +--- libEMF-1.0.3/include/libEMF/wine/winnt.h.axp 2007-12-03 22:35:49.000000000 +0100 ++++ libEMF-1.0.3/include/libEMF/wine/winnt.h 2007-12-03 22:37:10.000000000 +0100 +@@ -671,7 +671,7 @@ typedef struct _CONTEXT CONTEXT; + #endif + + /* Alpha context definitions */ +-#ifdef _ALPHA_ ++#if defined(__alpha__) + + #define CONTEXT_ALPHA 0x00020000 + diff --git a/libEMF.spec b/libEMF.spec index a857d9c..140c968 100644 --- a/libEMF.spec +++ b/libEMF.spec @@ -2,12 +2,13 @@ Summary: A library for generating Enhanced Metafiles Summary(pl): Biblioteka do generowania plików w formacie Enhanced Metafile Name: libEMF Version: 1.0.3 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPLv2+ and GPLv2+ Group: System Environment/Libraries Source0: http://dl.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz # Source0-md5: a4e91fd8077ce5f540f569e20e8ef7ff Patch0: %{name}-amd64.patch +Patch1: %{name}-axp.patch URL: http://libemf.sourceforge.net/ BuildRequires: libstdc++-devel BuildRequires: libtool @@ -43,6 +44,7 @@ Pliki nagłówkowe libEMF. %prep %setup -q %patch0 -p1 -b .amd64 +%patch1 -p1 -b .axp chmod 0644 libemf/libemf.h %build @@ -88,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/libEMF %changelog +* Mon Dec 03 2007 Dominik 'Rathann' Mierzejewski 1.0.3-5 +- fixed compilation on Alpha platform (patch by Oliver Falk) + * Sat Aug 25 2007 Dominik 'Rathann' Mierzejewski 1.0.3-4 - rebuild for BuildID - update license tag