rpms/deluge/FC-6 deluge-64bit-python_long.patch, NONE, 1.1 deluge.spec, 1.2, 1.3

Peter Gordon (pgordon) fedora-extras-commits at redhat.com
Sun Feb 25 19:45:54 UTC 2007


Author: pgordon

Update of /cvs/extras/rpms/deluge/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25636

Modified Files:
	deluge.spec 
Added Files:
	deluge-64bit-python_long.patch 
Log Message:
Add patch to fix 64-bit python_long type.

deluge-64bit-python_long.patch:

--- NEW FILE deluge-64bit-python_long.patch ---
--- src/deluge_core.cpp.old	2007-02-25 10:42:20.000000000 -0800
+++ src/deluge_core.cpp	2007-02-25 10:46:12.000000000 -0800
@@ -32,6 +32,7 @@
 
 #include <boost/filesystem/exception.hpp>
 #include <boost/filesystem/operations.hpp>
+#include <inttypes.h>
 
 #include "libtorrent/entry.hpp"
 #include "libtorrent/bencode.hpp"
@@ -49,11 +50,7 @@
 // CONSTANTS
 //-----------------
 
-#ifdef AMD64
-#define python_long int
-#else
-#define python_long long
-#endif
+#define python_long int64_t
 
 #define EVENT_NULL            				0
 #define EVENT_FINISHED        				1


Index: deluge.spec
===================================================================
RCS file: /cvs/extras/rpms/deluge/FC-6/deluge.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- deluge.spec	25 Feb 2007 01:08:23 -0000	1.2
+++ deluge.spec	25 Feb 2007 19:45:21 -0000	1.3
@@ -3,7 +3,7 @@
 
 Name:		deluge
 Version:	0.4.90.2
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	A Python BitTorrent client with support for UPnP and DHT
 Group:		Applications/Editors
 License:	GPL
@@ -11,7 +11,7 @@
 
 Source0:	http://deluge-torrent.org/downloads/%{name}-%{version}.tar.gz
 Patch0:		%{name}-setup.py-build-against-system-libtorrent.patch
-
+Patch1:		%{name}-64bit-python_long.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -37,6 +37,7 @@
 %prep
 %setup -q
 %patch0 -b .use-system-libtorrent
+%patch1 -b .64bit-python_long
 
 
 %build
@@ -83,12 +84,16 @@
 
 
 %changelog
+* Sun Feb 25 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.90.2-2
+- Add patch to fix 64-bit python_long type.
+  +  64bit-python_long.patch
+
 * Sat Feb 24 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.90.2-1
 - Update to new upstream release (0.5 Beta 2)
 - Add patch to force building against system copy of rb_libtorrent:
   + setup.py-build-against-system-libtorrent.patch
 - Remove python-libtorrent and a few other dependencies that are no longer
-  uses.
+  used.
 
 * Fri Feb 23 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.1-6
 - Fix Source0 URL.




More information about the fedora-extras-commits mailing list