diff --git a/advancecomp-64bit.patch b/advancecomp-64bit.patch new file mode 100644 index 0000000..65728e0 --- /dev/null +++ b/advancecomp-64bit.patch @@ -0,0 +1,15 @@ +--- advancecomp-1.14/7z/Portable.h.64bit 2005-05-26 11:02:30.000000000 -0400 ++++ advancecomp-1.14/7z/Portable.h 2005-05-26 10:50:22.000000000 -0400 +@@ -16,7 +16,11 @@ + typedef UINT16 WORD; + typedef UINT32 DWORD; + +-typedef unsigned UINT_PTR; ++#if defined(__x86_64__) || defined(__s390x__) || defined(__ppc64__) || defined(__ia64__) || defined(__sparc64__) || defined(__alpha__) ++typedef unsigned long UINT_PTR; ++#else ++typedef unsigned int UINT_PTR; ++#endif + + typedef int BOOL; + #define FALSE 0 diff --git a/advancecomp.spec b/advancecomp.spec index b733828..954f26d 100644 --- a/advancecomp.spec +++ b/advancecomp.spec @@ -1,11 +1,12 @@ Summary: Recompression utilities for .PNG, .MNG and .ZIP files Name: advancecomp Version: 1.14 -Release: 3 +Release: 4 License: GPL Group: Applications/Emulators URL: http://advancemame.sourceforge.net/ Source: http://dl.sf.net/advancemame/advancecomp-%{version}.tar.gz +Patch0: advancecomp-64bit.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++, zlib-devel @@ -17,7 +18,8 @@ The main features are : %prep -%setup +%setup -q +%patch0 -p1 -b .64bit %build @@ -42,6 +44,9 @@ The main features are : %changelog +* Thu May 26 2005 Jeremy Katz - 1.14-4 +- fix build on 64bit arches + * Sun May 22 2005 Jeremy Katz - 1.14-3 - rebuild on all arches