diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..5f13cc0c8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +deluge-torrent (0.6.0-svn3235-1) lenny; urgency=low + + * Daily Build + + -- Andrew Resch (andar) Tue, 17 Jun 2008 16:31:14 -0800 diff --git a/debian/changelog.debian-lenny b/debian/changelog.debian-lenny new file mode 100644 index 000000000..5f13cc0c8 --- /dev/null +++ b/debian/changelog.debian-lenny @@ -0,0 +1,5 @@ +deluge-torrent (0.6.0-svn3235-1) lenny; urgency=low + + * Daily Build + + -- Andrew Resch (andar) Tue, 17 Jun 2008 16:31:14 -0800 diff --git a/debian/changelog.debian-sid b/debian/changelog.debian-sid new file mode 100644 index 000000000..e2f25877f --- /dev/null +++ b/debian/changelog.debian-sid @@ -0,0 +1,5 @@ +deluge-torrent (0.6.0-svn3235-1) sid; urgency=low + + * Daily Build + + -- Andrew Resch (andar) Tue, 17 Jun 2008 16:31:14 -0800 diff --git a/debian/changelog.ubuntu-gutsy b/debian/changelog.ubuntu-gutsy new file mode 100644 index 000000000..2417763b4 --- /dev/null +++ b/debian/changelog.ubuntu-gutsy @@ -0,0 +1,5 @@ +deluge-torrent (0.6.0-svn3235-1) gutsy; urgency=low + + * Daily Build + + -- Andrew Resch (andar) Tue, 17 Jun 2008 16:31:14 -0800 diff --git a/debian/changelog.ubuntu-hardy b/debian/changelog.ubuntu-hardy new file mode 100644 index 000000000..1ecb8d6a2 --- /dev/null +++ b/debian/changelog.ubuntu-hardy @@ -0,0 +1,5 @@ +deluge-torrent (0.6.0-svn3235-1) hardy; urgency=low + + * Daily Build + + -- Andrew Resch (andar) Tue, 17 Jun 2008 16:31:14 -0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..a9eaaf67c --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: deluge-torrent +Section: net +Priority: optional +Maintainer: Andrew Resch (andar) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.33.1), libboost-thread-dev (>= 1.33.1), libboost-date-time-dev (>= 1.33.1), libboost-filesystem-dev (>= 1.33.1), libboost-serialization-dev (>= 1.33.1), libboost-program-options-dev (>= 1.33.1), libboost-regex-dev (>= 1.33.1), libboost-python-dev (>= 1.33.1), zlib1g-dev, libssl-dev, dpatch, python-setuptools +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, python-dbus, librsvg2-common, python-pyopenssl, python-setuptools +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. + . + Homepage: http://www.deluge-torrent.org/ diff --git a/debian/control.debian-lenny b/debian/control.debian-lenny new file mode 100644 index 000000000..a9eaaf67c --- /dev/null +++ b/debian/control.debian-lenny @@ -0,0 +1,19 @@ +Source: deluge-torrent +Section: net +Priority: optional +Maintainer: Andrew Resch (andar) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.33.1), libboost-thread-dev (>= 1.33.1), libboost-date-time-dev (>= 1.33.1), libboost-filesystem-dev (>= 1.33.1), libboost-serialization-dev (>= 1.33.1), libboost-program-options-dev (>= 1.33.1), libboost-regex-dev (>= 1.33.1), libboost-python-dev (>= 1.33.1), zlib1g-dev, libssl-dev, dpatch, python-setuptools +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, python-dbus, librsvg2-common, python-pyopenssl, python-setuptools +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. + . + Homepage: http://www.deluge-torrent.org/ diff --git a/debian/control.debian-sid b/debian/control.debian-sid new file mode 100644 index 000000000..a9eaaf67c --- /dev/null +++ b/debian/control.debian-sid @@ -0,0 +1,19 @@ +Source: deluge-torrent +Section: net +Priority: optional +Maintainer: Andrew Resch (andar) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.33.1), libboost-thread-dev (>= 1.33.1), libboost-date-time-dev (>= 1.33.1), libboost-filesystem-dev (>= 1.33.1), libboost-serialization-dev (>= 1.33.1), libboost-program-options-dev (>= 1.33.1), libboost-regex-dev (>= 1.33.1), libboost-python-dev (>= 1.33.1), zlib1g-dev, libssl-dev, dpatch, python-setuptools +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, python-dbus, librsvg2-common, python-pyopenssl, python-setuptools +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. + . + Homepage: http://www.deluge-torrent.org/ diff --git a/debian/control.ubuntu-gutsy b/debian/control.ubuntu-gutsy new file mode 100644 index 000000000..cc679ffb7 --- /dev/null +++ b/debian/control.ubuntu-gutsy @@ -0,0 +1,19 @@ +Source: deluge-torrent +Section: universe/net +Priority: optional +Maintainer: Andrew Resch (andar) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.33.1), libboost-thread-dev (>= 1.33.1), libboost-date-time-dev (>= 1.33.1), libboost-filesystem-dev (>= 1.33.1), libboost-serialization-dev (>= 1.33.1), libboost-program-options-dev (>= 1.33.1), libboost-regex-dev (>= 1.33.1), libboost-python-dev (>= 1.33.1), zlib1g-dev, libssl-dev, dpatch, python-setuptools +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, python-dbus, librsvg2-common, python-pyopenssl, python-setuptools +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. + . + Homepage: http://www.deluge-torrent.org/ diff --git a/debian/control.ubuntu-hardy b/debian/control.ubuntu-hardy new file mode 100644 index 000000000..cc679ffb7 --- /dev/null +++ b/debian/control.ubuntu-hardy @@ -0,0 +1,19 @@ +Source: deluge-torrent +Section: universe/net +Priority: optional +Maintainer: Andrew Resch (andar) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.33.1), libboost-thread-dev (>= 1.33.1), libboost-date-time-dev (>= 1.33.1), libboost-filesystem-dev (>= 1.33.1), libboost-serialization-dev (>= 1.33.1), libboost-program-options-dev (>= 1.33.1), libboost-regex-dev (>= 1.33.1), libboost-python-dev (>= 1.33.1), zlib1g-dev, libssl-dev, dpatch, python-setuptools +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, python-dbus, librsvg2-common, python-pyopenssl, python-setuptools +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. + . + Homepage: http://www.deluge-torrent.org/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..9a76a5798 --- /dev/null +++ b/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. diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 000000000..cf243e191 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/deluge.1 diff --git a/debian/menu b/debian/menu new file mode 100644 index 000000000..d7c2ea5d1 --- /dev/null +++ b/debian/menu @@ -0,0 +1,3 @@ +?package(deluge-torrent): needs="X11" section="Applications/Network/File Transfer" \ + title="Deluge BitTorrent Client" longtitle="Bittorrent client written in Python/PyGTK" \ + command="/usr/bin/deluge" icon="/usr/share/pixmaps/deluge.png" diff --git a/debian/patches/00list b/debian/patches/00list new file mode 100644 index 000000000..e69de29bb diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 000000000..6b4950e3d --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.4 diff --git a/debian/pyversions.debian-lenny b/debian/pyversions.debian-lenny new file mode 100644 index 000000000..6b4950e3d --- /dev/null +++ b/debian/pyversions.debian-lenny @@ -0,0 +1 @@ +2.4 diff --git a/debian/pyversions.debian-sid b/debian/pyversions.debian-sid new file mode 100644 index 000000000..6b4950e3d --- /dev/null +++ b/debian/pyversions.debian-sid @@ -0,0 +1 @@ +2.4 diff --git a/debian/pyversions.ubuntu-gutsy b/debian/pyversions.ubuntu-gutsy new file mode 100644 index 000000000..95e3ba819 --- /dev/null +++ b/debian/pyversions.ubuntu-gutsy @@ -0,0 +1 @@ +2.5 diff --git a/debian/pyversions.ubuntu-hardy b/debian/pyversions.ubuntu-hardy new file mode 100644 index 000000000..95e3ba819 --- /dev/null +++ b/debian/pyversions.ubuntu-hardy @@ -0,0 +1 @@ +2.5 diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..7c4baf16a --- /dev/null +++ b/debian/rules @@ -0,0 +1,75 @@ +#!/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 = 2.4 +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 + +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 --no-compile +install-finish: + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/deluge/data/share/applications/deluge.desktop $(DESTDIR)/usr/share/applications/deluge.desktop + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + 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 diff --git a/debian/rules.debian-lenny b/debian/rules.debian-lenny new file mode 100755 index 000000000..7c4baf16a --- /dev/null +++ b/debian/rules.debian-lenny @@ -0,0 +1,75 @@ +#!/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 = 2.4 +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 + +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 --no-compile +install-finish: + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/deluge/data/share/applications/deluge.desktop $(DESTDIR)/usr/share/applications/deluge.desktop + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + 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 diff --git a/debian/rules.debian-sid b/debian/rules.debian-sid new file mode 100755 index 000000000..7c4baf16a --- /dev/null +++ b/debian/rules.debian-sid @@ -0,0 +1,75 @@ +#!/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 = 2.4 +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 + +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 --no-compile +install-finish: + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/deluge/data/share/applications/deluge.desktop $(DESTDIR)/usr/share/applications/deluge.desktop + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + 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 diff --git a/debian/rules.ubuntu-gutsy b/debian/rules.ubuntu-gutsy new file mode 100755 index 000000000..4ec9733c7 --- /dev/null +++ b/debian/rules.ubuntu-gutsy @@ -0,0 +1,75 @@ +#!/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 = 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 + +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 --no-compile +install-finish: + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/deluge/data/share/applications/deluge.desktop $(DESTDIR)/usr/share/applications/deluge.desktop + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + 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 diff --git a/debian/rules.ubuntu-hardy b/debian/rules.ubuntu-hardy new file mode 100755 index 000000000..4ec9733c7 --- /dev/null +++ b/debian/rules.ubuntu-hardy @@ -0,0 +1,75 @@ +#!/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 = 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 + +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 --no-compile +install-finish: + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/deluge/data/share/applications/deluge.desktop $(DESTDIR)/usr/share/applications/deluge.desktop + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + 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