rpms/python-libtorrent/devel python-libtorrent-setup.py, NONE, 1.1 python-libtorrent.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Peter Gordon (pgordon)
fedora-extras-commits at redhat.com
Sun Jan 28 19:45:37 UTC 2007
Author: pgordon
Update of /cvs/extras/rpms/python-libtorrent/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26500/devel
Modified Files:
.cvsignore sources
Added Files:
python-libtorrent-setup.py python-libtorrent.spec
Log Message:
auto-import python-libtorrent-0.4.0-2 on branch devel from python-libtorrent-0.4.0-2.src.rpm
Initial import (bug #221376).
--- NEW FILE python-libtorrent-setup.py ---
#############################################################################
# setup.py - Build script for the python-libtorrent package
# Copyright 2007, Peter Gordon ('codergeek42') <peter at thecodergeek.com>
# Based heavily on the setup.py included in the python-libtorrent source
# tarball, which is Copyright A. Zakai ('Kripken') <kripkensteiner at gmail.com>
# (http://6thsenseless.blogspot.com, 2006-15-09)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#############################################################################
# ChangeLog:
# 2007-01-25 (Peter Gordon <peter at thecodergeek.com>)
# * Force building against the system copy of rb_libtorrent, rather
# than its own internal copy, plus a huge amount of aesthetic fixes.
#############################################################################
from platform import python_version
from distutils.core import setup, Extension
torrent_so = Extension(
'torrent',
include_dirs = ['/usr/include/libtorrent'],
libraries = ['torrent', 'boost_filesystem'],
sources = ['python-libtorrent.cpp']
)
setup(
name = 'Python-libtorrent',
version = '0.4.0',
description = 'Wrapper code for rb_libtorrent C++ torrent library',
ext_modules = [torrent_so]
)
--- NEW FILE python-libtorrent.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: python-libtorrent
Version: 0.4.0
Release: 2%{?dist}
Summary: Python bindings to the rb_libtorrent library
Group: Development/Languages
License: GPL
URL: http://code.google.com/p/python-libtorrent/
Source0: http://deluge-torrent.org/downloads/%{name}_%{version}.tar.gz
Source1: %{name}-setup.py
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: boost-devel
BuildRequires: zlib-devel
BuildRequires: rb_libtorrent-devel
%description
This package contains Python bindings for the rb_libtorrent library, allowing
one to write full-featured applications in Python that use rb_libtorrent.
%prep
%setup -q -n "%{name}"
## Make it build against the system rb_libtorrent, not its own local copy...
install -m 0755 %{SOURCE1} setup.py
## Fix python-libtorrent.cpp permissions.
chmod a-x python-libtorrent.cpp
%build
## It needs a special define for its pythonLong type on 64-bit arches.
%ifarch x86_64 sparc64 ppc64
CFLAGS="-DAMD64 %{optflags}" %{__python} setup.py build
%else
CFLAGS="%{optflags}" %{__python} setup.py build
%endif
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitearch}/torrent.so
%changelog
* Sun Jan 28 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.0-2
- A couple of fixes from Mamoru Tasaka's review comments (#221376):
(1) Fix permission on the python-libtorrent.cpp file, so that its
permissions in the -debuginfo subpackage are correct;
(2) Fix Source0 URL to point to deluge-torrent.org's downloads.
* Thu Jan 25 2007 Peter Gordon <peter at thecodergeek.com> - 0.4.0-1
- Update to new upstream release (0.4.0)
- Force building against the system rb_libtorrent, rather than an internal
copy in the source tarball.
+ setup.py
* Sun Jan 07 2007 Peter Gordon <peter at thecodergeek.com> - 0.3.0-4.20061128svn
- Pass "-DAMD64" as a compiler flag on 64-bit arches to get a proper
pythonLong preprocessor definition. (Thanks to Gerd Classen; bug #221669)
* Fri Jan 05 2007 Peter Gordon <peter at thecodergeek.com> - 0.3.0-3.20061128svn
- Update to 2006-11-28 SVN snapshot (changeset 71) to fix some DHT issues,
including some missing functions and whatnot.
* Thu Jan 04 2007 Peter Gordon <peter at thecodergeek.com> - 0.3.0-2
- Add explicit Requires on rb_libtorrent, as RPM does not pick it up from the
soname. (Indeed, the resulting torrent.so file does not link with
rb_libtorrent explicitly, so ldd does not find it through that.)
* Wed Jan 03 2007 Peter Gordon <peter at thecodergeek.com> - 0.3.0-1
- Initial packaging for Fedora Extras
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-libtorrent/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 28 Jan 2007 19:44:33 -0000 1.1
+++ .cvsignore 28 Jan 2007 19:45:07 -0000 1.2
@@ -0,0 +1 @@
+python-libtorrent_0.4.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-libtorrent/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 28 Jan 2007 19:44:33 -0000 1.1
+++ sources 28 Jan 2007 19:45:07 -0000 1.2
@@ -0,0 +1 @@
+1f97efce25a8c8e74026962aef2f6e91 python-libtorrent_0.4.0.tar.gz
More information about the scm-commits
mailing list