[Python-apps-commits] r250 - in /packages/spe/trunk/debian: patches/ patches/00list patches/01_setup.py.patch.dpatch rules

sc-guest at users.alioth.debian.org sc-guest at users.alioth.debian.org
Sat Nov 24 13:28:40 UTC 2007


Author: sc-guest
Date: Sat Nov 24 13:28:40 2007
New Revision: 250

URL: http://svn.debian.org/wsvn/python-apps/?sc=1&rev=250
Log:
Updated to use dpatch to provide missing setup.py

Added:
    packages/spe/trunk/debian/patches/
    packages/spe/trunk/debian/patches/00list
    packages/spe/trunk/debian/patches/01_setup.py.patch.dpatch
Modified:
    packages/spe/trunk/debian/rules

Added: packages/spe/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-apps/packages/spe/trunk/debian/patches/00list?rev=250&op=file
==============================================================================
--- packages/spe/trunk/debian/patches/00list (added)
+++ packages/spe/trunk/debian/patches/00list Sat Nov 24 13:28:40 2007
@@ -1,0 +1,1 @@
+01_setup.py.patch.dpatch

Added: packages/spe/trunk/debian/patches/01_setup.py.patch.dpatch
URL: http://svn.debian.org/wsvn/python-apps/packages/spe/trunk/debian/patches/01_setup.py.patch.dpatch?rev=250&op=file
==============================================================================
--- packages/spe/trunk/debian/patches/01_setup.py.patch.dpatch (added)
+++ packages/spe/trunk/debian/patches/01_setup.py.patch.dpatch Sat Nov 24 13:28:40 2007
@@ -1,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 00_setyp.py.dpatch by  <sc at localhost>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Create a setup.py file
+
+ at DPATCH@
+
+Common subdirectories: spe-0.8.4b.orig/debian and spe-0.8.4b/debian
+diff -Nu spe-0.8.4b.orig/setup.py spe-0.8.4b/setup.py
+--- spe-0.8.4b.orig/setup.py	2007-11-24 11:35:15.000000000 +0100
++++ spe-0.8.4b/setup.py	1970-01-01 01:00:00.000000000 +0100
+@@ -1,15 +0,0 @@
+-from distutils.core import setup
+-
+-setup(name          = "spe",
+-      version       = "0.8.4b",
+-      description   = "If you enjoy SPE, consider a (small) donation.",
+-      author        = "http://pythonide.stani.be",
+-      author_email  = "spe.stani.be at gmail.com",
+-      url           = "http://pythonide.stani.be",
+-      license       = "GPL",
+-      scripts       = ['_spe/spe'],
+-      packages      = ['_spe', '_spe.dialogs', '_spe.examples', '_spe.plugins', '_spe.shortcuts', '_spe.sidebar', '_spe.skins', '_spe.sm', '_spe.tabs', '_spe.view', '_spe.plugins.kiki', '_spe.plugins.pychecker', '_spe.plugins.pychecker2', '_spe.plugins.winpdb', '_spe.plugins.wxGlade', '_spe.plugins.wxGlade.edit_sizers', '_spe.plugins.wxGlade.widgets', '_spe.plugins.wxGlade.widgets.bitmap_button', '_spe.plugins.wxGlade.widgets.button', '_spe.plugins.wxGlade.widgets.checkbox', '_spe.plugins.wxGlade.widgets.choice', '_spe.plugins.wxGlade.widgets.combo_box', '_spe.plugins.wxGlade.widgets.custom_widget', '_spe.plugins.wxGlade.widgets.dialog', '_spe.plugins.wxGlade.widgets.frame', '_spe.plugins.wxGlade.widgets.gauge', '_spe.plugins.wxGlade.widgets.grid', '_spe.plugins.wxGlade.widgets.list_box', '_spe.plugins.wxGlade.widgets.list_ctrl', '_spe.plugins.wxGlade.widgets.menubar', '_spe.plugins.wxGlade.widgets.notebook', '_spe.plugins.wxGlade.widgets.panel', '_spe.plugins.wxGlade.widgets.radio_box', '_spe.plugins.wxGlade.widgets.radio_button', '_spe.plugins.wxGlade.widgets.slider', '_spe.plugins.wxGlade.widgets.spacer', '_spe.plugins.wxGlade.widgets.spin_button', '_spe.plugins.wxGlade.widgets.spin_ctrl', '_spe.plugins.wxGlade.widgets.splitter_window', '_spe.plugins.wxGlade.widgets.static_bitmap', '_spe.plugins.wxGlade.widgets.static_line', '_spe.plugins.wxGlade.widgets.static_text', '_spe.plugins.wxGlade.widgets.text_ctrl', '_spe.plugins.wxGlade.widgets.toggle_button', '_spe.plugins.wxGlade.widgets.toolbar', '_spe.plugins.wxGlade.widgets.tree_ctrl', '_spe.skins.default', '_spe.sm.wxp'],
+-      data_files=[('doc', ['_spe/spe_changes.txt'])],
+-      package_data={'_spe': ['defaults.cfg']},
+-)
+-
+Common subdirectories: spe-0.8.4b.orig/_spe and spe-0.8.4b/_spe

Modified: packages/spe/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-apps/packages/spe/trunk/debian/rules?rev=250&op=diff
==============================================================================
--- packages/spe/trunk/debian/rules (original)
+++ packages/spe/trunk/debian/rules Sat Nov 24 13:28:40 2007
@@ -5,20 +5,33 @@
 #export DH_VERBOSE=1
 
 PV := $(shell python -c 'import sys; print sys.version[:3]')
+include /usr/share/dpatch/dpatch.make
 
-build: build-stamp
+build: patch build-stamp
 
 build-stamp:
 	dh_testdir
 	python setup.py build
 	touch build-stamp
 
-clean:
+clean: clean-patched unpatch
+
+clean-patched:
+
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp
 	-find _spe -name '*.py[co]' | xargs rm -f
 	dh_clean 
+
+patch: patch-stamp
+patch-stamp:
+	dpatch apply-all
+	dpatch cat-all >patch-stamp
+
+unpatch:
+	dpatch deapply-all
+	rm -rf patch-stamp debian/patched
 
 install: build
 	dh_testdir




More information about the Python-apps-commits mailing list