--- deluge-torrent-0.5.2.orig/debian/patches/00list +++ deluge-torrent-0.5.2/debian/patches/00list @@ -0,0 +1 @@ +000-Fix_CFLAGS_handling.dpatch --- deluge-torrent-0.5.2.orig/debian/patches/000-Fix_CFLAGS_handling.dpatch +++ deluge-torrent-0.5.2/debian/patches/000-Fix_CFLAGS_handling.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 000-Fix_CFLAGS_handling.dpatch +## by Adam Cécile (Le_Vert) +## (modified by Miguel Ruiz (mruiz) +## +## DP: Do not add auto-defined CFLAGS. + + +diff -u deluge-torrent-0.5.1/setup.py deluge-torrent-0.5.1/setup.py.new +--- deluge-torrent-0.5.2/setup.py 2007-07-06 11:10:19.000000000 +1000 ++++ deluge-torrent-0.5.2/setup.py.new 2007-07-08 00:38:34.000000000 +1000 +@@ -100,8 +100,10 @@ + "-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1", + "-DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1", + "-DHAVE_PTHREAD=1", "-DTORRENT_USE_OPENSSL=1", "-DHAVE_SSL=1", "-DNDEBUG"] +- if ARCH == "x64": +- EXTRA_COMPILE_ARGS.append("-DAMD64") ++ ++ # Done through debian/rules, as all arches are not handled ++ # if ARCH == "x64": ++ # EXTRA_COMPILE_ARGS.append("-DAMD64") + + includedirs = ['./libtorrent', './libtorrent/include', + './libtorrent/include/libtorrent', +@@ -140,6 +142,10 @@ + './libtorrent/include/libtorrent', + 'c:\Python25\include', 'c:\win32-build-deps\include'] + ++# We don't want any "auto-defined" FLAGS, overwrite what's been defined above ++sysconfig.get_config_vars()["CFLAGS"] = '' ++sysconfig.get_config_vars()["OPT"] = '' ++ + # NOTE: The Rasterbar Libtorrent source code is in the libtorrent/ directory + # inside of Deluge's source tarball. On several occasions, it has been + # pointed out to us that we should build against the system's installed --- deluge-torrent-0.5.2.orig/debian/manpages +++ deluge-torrent-0.5.2/debian/manpages @@ -0,0 +1 @@ +debian/deluge.1 --- deluge-torrent-0.5.2.orig/debian/deluge-torrent.desktop +++ deluge-torrent-0.5.2/debian/deluge-torrent.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Deluge BitTorrent Client +Comment=Bittorrent client written in Python/PyGTK +Exec=deluge-torrent +Icon=deluge-torrent.xpm +Terminal=false +Type=Application +Categories=Application;Network +StartupNotify=true --- deluge-torrent-0.5.2.orig/debian/deluge.1 +++ deluge-torrent-0.5.2/debian/deluge.1 @@ -0,0 +1,35 @@ +.TH DELUGE 1 "March 2007" "0.5.0" + +.SH NAME +.B deluge +is a Bittorrent client written in Python/PyGTK. + +.SH SYNOPSIS +.B deluge [options] [torrent] + +.SH DESCRIPTION +.B deluge +is a Bittorrent client, created using Python and GTK+. +.br +Deluge is intended to bring a native, full-featured client to Linux GTK desktop environments such as Gnome and XFCE. +.br +It uses Rasterbar's version of libtorrent, and python bindings writte by Kripkenstein. + +.SH OPTIONS +.TP +.I -tray +Start deluge minimized to tray. +.TP +.I [torrent] +List of ".torrent" files to add to the download queue. + +.SH SEE ALSO +.B Homepage: +http://www.deluge-torrent.org/ + +.SH AUTHOR +This manual page was written by Adam Cecile for the Debian system (but may be used by others). +.br +Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation +.br +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. --- deluge-torrent-0.5.2.orig/debian/rules +++ deluge-torrent-0.5.2/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Dpatch targets +include /usr/share/dpatch/dpatch.make + +# Available python (using debian/pyversions) and destdir +PYVERS = $(shell pyversions -rv) +#PYVERS = 2.4 2.5 +DESTDIR = $(CURDIR)/debian/deluge-torrent + +# We need to known the target arch to enable/disable amd64 hack +ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) +ARCH64 = ia64 amd64 alpha kfreebsd-amd64 ppc64 + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +# python-libtorrent need to define AMD64 to work fine on a 64 bits system +ifneq (,$(findstring $(ARCH),$(ARCH64))) + CFLAGS += -DAMD64 +endif +# Required define +CFLAGS += -DNDEBUG + +build: patch-stamp $(PYVERS:%=build-stamp%) +build-stamp%: patch-stamp + dh_testdir + CFLAGS="$(CFLAGS)" python$* setup.py build + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build/ + find . -name \*.pyc | xargs rm -f + rm -rf build-stamp* + dh_clean + +install: build install-prereq $(PYVERS:%=install-%) install-finish +install-prereq: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs +install-%: + python$* setup.py install --root=$(DESTDIR) --prefix=/usr +install-finish: + # Remove shebangs in python modules + for file in `find $(DESTDIR)/usr/lib/python*/site-packages/deluge/ -name \*.py`; do \ + grep -v '#!/usr/bin/env python' $$file > $$file.new; \ + mv $$file.new $$file; \ + done + # Do not use a versionned python shebang + sed -i 's/^#!\/usr\/bin\/python.*$$/#!\/usr\/bin\/python/' $(DESTDIR)/usr/bin/deluge + find $(DESTDIR)/usr/lib/python?.? -name \*.egg-info | xargs rm -f + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_desktop + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- deluge-torrent-0.5.2.orig/debian/menu +++ deluge-torrent-0.5.2/debian/menu @@ -0,0 +1,3 @@ +?package(deluge-torrent): needs="X11" section="Apps/Net" \ + title="Deluge BitTorrent Client" longtitle="Bittorrent client written in Python/PyGTK" \ + command="/usr/bin/deluge" icon="/usr/share/pixmaps/deluge.xpm" --- deluge-torrent-0.5.2.orig/debian/compat +++ deluge-torrent-0.5.2/debian/compat @@ -0,0 +1 @@ +5 --- deluge-torrent-0.5.2.orig/debian/watch +++ deluge-torrent-0.5.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://download.deluge-torrent.org/stable/deluge-([0-9.]+)\.tar\.gz --- deluge-torrent-0.5.2.orig/debian/changelog +++ deluge-torrent-0.5.2/debian/changelog @@ -0,0 +1,86 @@ +deluge-torrent (0.5.2-0ubuntu1) gutsy; urgency=low + + * New upstream version (LP: #124527) + * debian/control + - Updated Maintainer value to match Debian-Maintainer-Field Spec. + * debian/pyversions + - Updated to python 2.5 + * debian/patches + - 000-Fix_CFLAGS_handling patch: updated. + + -- Miguel Ruiz Sat, 08 Jul 2007 00:50:50 +1000 + +deluge-torrent (0.5.1.1-1) unstable; urgency=low + + * New upstream release (Closes: #428515, #419925, #406789). + * Add libssl-dev to build depends. + * Drop 001-Fix_FTBFS_with_libboost_1.34 and 002-Always_enable_EPOLL patches, fixed upstream. + * Update 000-Fix_CFLAGS_handling patch. + * Update debian/watch. + * Update debian/copyright. + + -- Adam Cécile (Le_Vert) Tue, 12 Jun 2007 19:51:39 +0200 + +deluge-torrent (0.5.0-3) unstable; urgency=low + + * Merge upstream patch to fix FTBFS with libboost 1.34 (Closes: #425076). + * Now build-depend on libboost*-dev (>= 1.34). + * EPOLL is now always turned on, checking at build-time is non-sense and produce FTBFS with linux-libc-dev. + + -- Adam Cécile (Le_Vert) Tue, 22 May 2007 17:54:27 +0200 + +deluge-torrent (0.5.0-2) unstable; urgency=low + + * Call dh_desktop (Closes: #408891, #415708). + + -- Adam Cécile (Le_Vert) Wed, 21 Mar 2007 17:01:09 +0100 + +deluge-torrent (0.5.0-1) unstable; urgency=low + + * New upstream release (Closes: #406790). + * Upstream do not release two separate tarballs anymore, fix rules. + * Add dpatch as patch-system. + * Use python-support to handle python modules. + * Update debian/copyright. + * Remove README.Debian-sources, README. + * Remove many useless things due to the new build system (distutils). + * Update debian/watch. + * Update manpage. + * Rename binary from deluge-torrent to deluge to match with upstream. + + -- Adam Cécile (Le_Vert) Mon, 19 Mar 2007 11:46:46 +0100 + +deluge-torrent (0.4.1-2) unstable; urgency=low + + * Really change menu entries name (Closes: #404992). + + -- Adam Cécile (Le_Vert) Wed, 17 Jan 2007 10:28:19 +0100 + +deluge-torrent (0.4.1-1) unstable; urgency=low + + * New upstream release. + * Change menu entries name from Deluge-torrent to Deluge Torrent. + + -- Adam Cécile (Le_Vert) Fri, 29 Dec 2006 11:22:54 +0100 + +deluge-torrent (0.4.0-2) unstable; urgency=low + + * Build with -DAMD64 for 64bits systems (Closes: #402257). + + -- Adam Cécile (Le_Vert) Tue, 12 Dec 2006 00:32:21 +0100 + +deluge-torrent (0.4.0-1) unstable; urgency=low + + * New upstream release + - Fix issue when no locale set (Closes: #399600). + * Update control with new dependencies. + * Remove .svn directories. + * Add debian/watch. + + -- Adam Cécile (Le_Vert) Wed, 29 Nov 2006 00:10:34 +0100 + +deluge-torrent (0.3.1.1-1) unstable; urgency=low + + * Initial release (Closes: #398916). + + -- Adam Cécile (Le_Vert) Wed, 15 Nov 2006 22:03:13 +0100 --- deluge-torrent-0.5.2.orig/debian/copyright +++ deluge-torrent-0.5.2/debian/copyright @@ -0,0 +1,103 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Wed, 15 Nov 2006 22:03:13 +0100. + +It was downloaded from http://www.deluge-torrent.org/ + +Upstream Author: Zach Tibbitts + Alon Zakai + Marcos Pinto + +Copyright: (C) 2006, Zach Tibbitts + (C) 2006, Alon Zakai + +License: + + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the OpenSSL + library. + You must obey the GNU General Public License in all respects for all of + the code used other than OpenSSL. If you modify file(s) with this + exception, you may extend this exception to your version of the file(s), + but you are not obligated to do so. If you do not wish to do so, delete + this exception statement from your version. If you delete this exception + statement from all source files in the program, then also delete it here. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +libtorrent/* are (C) 2006, A. Zakai ('Kripken') +and distributed unders term of GNU General Public License. + + This code is baded on libtorrent which is (C) 2003 Arvid Norberg and + distributed under terms of the license below : + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the distribution. + * Neither the name of the author nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + "libtorrent/include/libtorrent/asio*" are (C) 2003-2006 Christopher + M. Kohlhoff and distributed under terms of the Boost + Software License, Version 1.0 : + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +"po/*" are (C) 2006 Rosetta Contributors and Canonical Ltd 2006 and distributed +under the same license as the deluge software. + +The Debian packaging is (C) 2006-2007, Adam Cécile (Le_Vert) + and is licensed under the GPL, see above. --- deluge-torrent-0.5.2.orig/debian/pyversions +++ deluge-torrent-0.5.2/debian/pyversions @@ -0,0 +1 @@ +2.5- --- deluge-torrent-0.5.2.orig/debian/control +++ deluge-torrent-0.5.2/debian/control @@ -0,0 +1,21 @@ +Source: deluge-torrent +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.34), libboost-thread-dev (>= 1.34), libboost-date-time-dev (>= 1.34), libboost-filesystem-dev (>= 1.34), libboost-serialization-dev (>= 1.34), libboost-program-options-dev (>= 1.34), libboost-regex-dev (>= 1.34), zlib1g-dev, libssl-dev, dpatch +Standards-Version: 3.7.2 + +Package: deluge-torrent +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-gtk2, python-glade2, python-xdg, python-notify, notification-daemon +Description: A Bittorrent client written in Python/PyGTK + Deluge is a Bittorrent client, created using Python and GTK+. + . + Deluge is intended to bring a native, full-featured client to Linux GTK + desktop environments such as Gnome and XFCE. + . + It uses Rasterbar's version of libtorrent, and python bindings written + by Kripkenstein. + . + Homepage: http://www.deluge-torrent.org/