From 17fc36221323578bff41787c680aafea294a9542 Mon Sep 17 00:00:00 2001 From: Artur Frysiak Date: Fri, 9 Jul 2010 22:10:49 +0000 Subject: [PATCH] - fix building with python 2.7 - rel. 5 Changed files: libtorrent-rasterbar.spec -> 1.44 py27.patch -> 1.1 --- libtorrent-rasterbar.spec | 4 +++- py27.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 py27.patch diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index 1342db0..4262565 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -3,7 +3,7 @@ Summary(hu.UTF-8): C++ BitTorrent könyvtár Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++ Name: libtorrent-rasterbar Version: 0.14.10 -Release: 4 +Release: 5 Epoch: 1 License: BSD Group: Libraries @@ -11,6 +11,7 @@ Source0: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz # Source0-md5: 99e9f4fa9c9f1f5097a4748c7260ef53 URL: http://www.rasterbar.com/products/libtorrent/ Patch0: bashizm.patch +Patch1: py27.patch BuildRequires: GeoIP-devel BuildRequires: autoconf BuildRequires: automake @@ -116,6 +117,7 @@ Python bindings for libtorrent-rasterbar. %prep %setup -q %patch0 -p1 +%patch1 -p1 %{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am ## Some of the sources and docs are executable, which makes rpmlint against diff --git a/py27.patch b/py27.patch new file mode 100644 index 0000000..95584ea --- /dev/null +++ b/py27.patch @@ -0,0 +1,11 @@ +--- libtorrent-rasterbar-0.14.10/m4/ax_python-fixed.m4.wiget 2010-07-09 23:38:46.485060875 +0200 ++++ libtorrent-rasterbar-0.14.10/m4/ax_python-fixed.m4 2010-07-09 23:39:15.082559709 +0200 +@@ -58,7 +58,7 @@ + AC_DEFUN([AX_PYTHON], + [AC_MSG_CHECKING(for python build information) + AC_MSG_RESULT([]) +-for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do ++for python in python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do + # AC_CHECK_PROGS(PYTHON_BIN, [$python]) + PYTHON_BIN=$python + ax_python_bin=$PYTHON_BIN -- 2.44.0