updated to 1.0.6

- updated source URL
- dropped obsolete patch hunks and rebased patches
This commit is contained in:
Dominik Mierzejewski 2012-09-03 23:18:10 +02:00
parent 3c4da48585
commit f81210a0d9
5 changed files with 31 additions and 85 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
libEMF-1.0.4.tar.gz libEMF-1.0.4.tar.gz
/libEMF-1.0.6.tar.gz

View File

@ -1,47 +1,7 @@
--- libEMF-1.0.3/libemf/libemf.h.amd64 2004-11-11 23:33:43.000000000 +0100 diff -up libEMF-1.0.6/include/libEMF/wine/winnt.h.amd64 libEMF-1.0.6/include/libEMF/wine/winnt.h
+++ libEMF-1.0.3/libemf/libemf.h 2006-11-19 00:54:37.000000000 +0100 --- libEMF-1.0.6/include/libEMF/wine/winnt.h.amd64 2012-05-24 17:52:51.000000000 +0200
@@ -306,6 +306,7 @@ +++ libEMF-1.0.6/include/libEMF/wine/winnt.h 2012-09-03 22:49:49.000000000 +0200
fread( &word, sizeof(INT16), 1, fp_ ); @@ -37,6 +37,10 @@
return *this;
}
+#if !(defined(_LP64) || defined(__alpha__))
/*!
* Output a double word (long) to the stream (swabbed).
* \param word word (long) to output.
@@ -374,6 +375,7 @@
fread( &long_, sizeof(LONG), 1, fp_ );
return *this;
}
+#endif
/*!
* Output a (long) int to the stream (swabbed).
* \param int_ (long) int to output.
--- libEMF-1.0.3/include/libEMF/wine/winbase.h.amd64 2004-07-29 08:20:38.000000000 +0200
+++ libEMF-1.0.3/include/libEMF/wine/winbase.h 2006-11-19 00:55:17.000000000 +0100
@@ -1802,6 +1802,7 @@
VOID WINAPI SetLastError(DWORD);
#endif /* __i386__ && __GNUC__ */
+#if 0
/* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, PVOID xchg, PVOID compare )
{
@@ -1812,6 +1813,7 @@
{
return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val );
}
+#endif
#ifdef __WINE__
#define GetCurrentProcess() ((HANDLE)0xffffffff)
--- libEMF-1.0.3/include/libEMF/wine/winnt.h.amd64 2005-08-07 17:50:12.000000000 +0200
+++ libEMF-1.0.3/include/libEMF/wine/winnt.h 2006-11-19 00:54:37.000000000 +0100
@@ -29,10 +29,14 @@
/* Architecture dependent settings. */
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN # undef BITFIELDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS # define ALLOW_UNALIGNED_ACCESS
@ -52,41 +12,21 @@
#elif defined(__sparc__) #elif defined(__sparc__)
# define WORDS_BIGENDIAN # define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN # define BITFIELDS_BIGENDIAN
@@ -222,8 +226,13 @@ @@ -238,7 +242,7 @@ typedef unsigned short WORD, *PWO
typedef unsigned short WORD, *PWORD, *LPWORD;
typedef int INT, *PINT, *LPINT; typedef int INT, *PINT, *LPINT;
typedef unsigned int UINT, *PUINT, *LPUINT; typedef unsigned int UINT, *PUINT, *LPUINT;
+#if defined(_LP64) || defined(__alpha__) /* Not sure this is correct. Probably should depend on the compiler, too. */
+typedef unsigned int DWORD, *PDWORD, *LPDWORD; -#if defined( __x86_64__)
+typedef unsigned int ULONG, *PULONG, *LPULONG; +#if defined( __x86_64__) || defined(__alpha__)
+#else typedef unsigned int DWORD, *PDWORD, *LPDWORD;
typedef unsigned long DWORD, *PDWORD, *LPDWORD; typedef unsigned int ULONG, *PULONG, *LPULONG;
typedef unsigned long ULONG, *PULONG, *LPULONG; #else
+#endif @@ -284,7 +288,7 @@ typedef VOID *PVOID, *LPV
typedef float FLOAT, *PFLOAT, *LPFLOAT;
typedef double DOUBLE, *PDOUBLE, *LPDOUBLE;
typedef double DATE;
@@ -263,7 +272,11 @@
typedef BYTE BOOLEAN, *PBOOLEAN; typedef BYTE BOOLEAN, *PBOOLEAN;
typedef char CHAR, *PCHAR; typedef char CHAR, *PCHAR;
typedef short SHORT, *PSHORT; typedef short SHORT, *PSHORT;
+#if defined(_LP64) || defined(__alpha__) -#if defined(__x86_64__)
+typedef int LONG, *PLONG, *LPLONG; +#if defined(__x86_64__) || defined(__alpha__)
+#else typedef int LONG, *PLONG, *LPLONG;
#else
typedef long LONG, *PLONG, *LPLONG; typedef long LONG, *PLONG, *LPLONG;
+#endif
/* Some systems might have wchar_t, but we really need 16 bit characters */
#ifndef WINE_WCHAR_DEFINED
@@ -652,6 +665,11 @@
#endif /* __i386__ */
+#ifdef __x86_64__
+#define CONTEXT_FULL 1
+typedef struct _CONTEXT CONTEXT;
+#endif
+
/* Alpha context definitions */
#ifdef _ALPHA_

View File

@ -1,8 +1,8 @@
diff -up libEMF-1.0.3/include/libEMF/wine/winnt.h.axp libEMF-1.0.3/include/libEMF/wine/winnt.h diff -up libEMF-1.0.6/include/libEMF/wine/winnt.h.axp libEMF-1.0.6/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.6/include/libEMF/wine/winnt.h.axp 2012-09-03 22:50:29.000000000 +0200
+++ libEMF-1.0.3/include/libEMF/wine/winnt.h 2007-12-03 22:37:10.000000000 +0100 +++ libEMF-1.0.6/include/libEMF/wine/winnt.h 2012-09-03 22:52:12.000000000 +0200
@@ -671,7 +671,7 @@ typedef struct _CONTEXT CONTEXT; @@ -901,7 +901,7 @@ PVOID WINAPI RtlVirtualUnwin
#endif #endif /* __x86_64__ */
/* Alpha context definitions */ /* Alpha context definitions */
-#ifdef _ALPHA_ -#ifdef _ALPHA_

View File

@ -1,13 +1,13 @@
Summary: A library for generating Enhanced Metafiles 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.4 Version: 1.0.6
Release: 5%{?dist} Release: 1%{?dist}
License: LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://libemf.sourceforge.net/ URL: http://libemf.sourceforge.net/
Source0: http://downloads.sourceforge.net/pstoedit/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/project/libemf/libemf/%{version}/libEMF-%{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
@ -90,6 +90,11 @@ make check
%{_includedir}/libEMF %{_includedir}/libEMF
%changelog %changelog
* Mon Sep 03 2012 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 1.0.6-1
- updated to 1.0.6
- updated source URL
- dropped obsolete patch hunks and rebased patches
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

@ -1 +1 @@
4e74e5ee5fdab37bae8be6cde4d1c57c libEMF-1.0.4.tar.gz bce826c7fa3cfbc4cdc258d2bfdd75d4 libEMF-1.0.6.tar.gz