diff -uN original/libtorrent-rasterbar-0.13-2264svn/debian/control modificat/libtorrent-rasterbar-0.13-2264svn/debian/control --- original/libtorrent-rasterbar-0.13-2264svn/debian/control 2008-05-14 18:52:26.000000000 +0200 +++ modificat/libtorrent-rasterbar-0.13-2264svn/debian/control 2008-05-14 18:08:31.000000000 +0200 @@ -2,7 +2,7 @@ Section: libs Priority: extra Maintainer: Roman Rybalko -Build-Depends: debhelper (>= 5), automake, libboost-thread-dev, libboost-date-time-dev, libboost-filesystem-dev, libboost-regex-dev, libboost-program-options-dev +Build-Depends: debhelper (>= 5), automake, libboost-thread-dev, libboost-date-time-dev, libboost-filesystem-dev, libboost-regex-dev, libboost-program-options-dev, bjam, boost-build, python2.5-dev Standards-Version: 3.7.3 Package: libtorrent-rasterbar-0.13-dev @@ -27,3 +27,15 @@ full featured client, although it comes with a working example client. . Built for the BTG project. + +Package: python-libtorrent-rasterbar +Section: devel +Architecture: amd64 i386 i586 i686 +Depends: libtorrent-rasterbar-0.13, python2.5 +Conflicts: libtorrent, libtorrent12, libtorrent-0.12, libtorrent13, libtorrent-0.13, libtorrent-rasterbar +Description: Torrent library, python bindings. + libtorrent is a C++ library that aims to be a good alternative to all + the other bittorrent implementations around. It is a library and not a + full featured client, although it comes with a working example client. + . + This package contains the python bindings for libtorrent-rasterbar-0.13. diff -uN original/libtorrent-rasterbar-0.13-2264svn/debian/python-libtorrent-rasterbar.install modificat/libtorrent-rasterbar-0.13-2264svn/debian/python-libtorrent-rasterbar.install --- original/libtorrent-rasterbar-0.13-2264svn/debian/python-libtorrent-rasterbar.install 1970-01-01 01:00:00.000000000 +0100 +++ modificat/libtorrent-rasterbar-0.13-2264svn/debian/python-libtorrent-rasterbar.install 2008-05-14 18:24:57.000000000 +0200 @@ -0,0 +1 @@ +usr/lib/python2.5/site-packages/libtorrent-rasterbar.so diff -uN original/libtorrent-rasterbar-0.13-2264svn/debian/rules modificat/libtorrent-rasterbar-0.13-2264svn/debian/rules --- original/libtorrent-rasterbar-0.13-2264svn/debian/rules 2008-05-14 18:52:26.000000000 +0200 +++ modificat/libtorrent-rasterbar-0.13-2264svn/debian/rules 2008-05-14 18:54:23.000000000 +0200 @@ -5,12 +5,25 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +BJAM = bjam -q dht-support=on toolset=gcc boost=system release -j3 +PYVER = 2.5 + build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) + # Build python bindings + [ ! -e bindings/python/Jamfile.ori ] || mv bindings/python/Jamfile.ori bindings/python/Jamfile + echo "using python : $(PYVER) ;" \ + > Jamfile.debuild + cat bindings/python/Jamfile >> Jamfile.debuild + mv bindings/python/Jamfile bindings/python/Jamfile.ori + mv Jamfile.debuild bindings/python/Jamfile + cd bindings/python ;\ + $(BJAM) + mv bindings/python/Jamfile.ori bindings/python/Jamfile touch build-stamp @@ -41,6 +54,9 @@ # Add here commands to install the package into debian/ #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install $(MAKE) DESTDIR=`pwd`/debian/.install install + mkdir -p debian/tmp/usr/lib/python2.5/site-packages + install -s -D bindings/python/bin/*/release/libtorrent.so \ + debian/.install/usr/lib/python2.5/site-packages/libtorrent-rasterbar.so # Build architecture-independent files here. binary-indep: build install