tag 373464 + patch
thanks

  Hi,

  Attached is the diff for my upgrade of moin to the last python policy.
The package *looks* correct, but I've not the knowledge nor the time to
test it, and for such a complicated package, I do not feel like NMUing
it.

  So the patch is sent for review.

-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org
diff -u moin-1.5.3/debian/changelog moin-1.5.3/debian/changelog
--- moin-1.5.3/debian/changelog
+++ moin-1.5.3/debian/changelog
@@ -1,3 +1,11 @@
+moin (1.5.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package to the last python policy (Closes: #373464).
+  * Bump Standards-Version to 3.7.2.
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Thu, 31 Aug 2006 00:04:28 +0200
+
 moin (1.5.3-1) unstable; urgency=medium
 
   * New upstream release. Closes: bug#363354 (thanks to Bob Tanner
diff -u moin-1.5.3/debian/control.in moin-1.5.3/debian/control.in
--- moin-1.5.3/debian/control.in
+++ moin-1.5.3/debian/control.in
@@ -2,8 +2,8 @@
 Section: net
 Priority: optional
 Maintainer: Jonas Smedegaard <[EMAIL PROTECTED]>
-Standards-Version: 3.6.2
-Build-Depends-Indep: @cdbs@
+Standards-Version: 3.7.2
+Build-Depends: @cdbs@, python-support (>= 0.4), python-all-dev
 
 Package: moinmoin-common
 Architecture: all
@@ -27,45 +27,14 @@
 Section: python
-Depends: ${python:Depends}
-Description: Python clone of WikiWiki - dummy library package
- A WikiWikiWeb is a collaborative hypertext environment, with an
- emphasis on easy access to and modification of information. MoinMoin
- is a Python WikiClone that allows you to easily set up your own wiki,
- only requiring a Web server and a Python installation.
- .
- This package is an empty dummy package that always depends on
- a package built for Debian's default Python version.
- .
-  Homepage: http://moinmoin.wikiwikiweb.de/
-
-Package: python2.3-moinmoin
-Architecture: all
-Section: python
-Depends: python2.3, moinmoin-common (= ${Source-Version})
+Depends: ${python:Depends}, moinmoin-common (= ${Source-Version})
+Provides: ${python:Provides}
+Replaces: python2.3-moinmoin (<< 1.5.3-1.1), python2.4-moinmoin (<< 1.5.3-1.1)
+Conflicts: moin, python2.3-moinmoin (<< 1.5.3-1.1), python2.4-moinmoin (<< 
1.5.3-1.1)
 Recommends: exim4 | mail-transport-agent
-Conflicts: moin
-Suggests: apache | httpd | libapache-mod-python2.3 | libapache2-mod-python2.3 
| python2.3-twisted | libapache-mod-fastcgi, miscfiles | wordlist, 
python2.3-4suite, python2.3-gdchart | python-gdchart, python2.3-docutils (>= 
0.3.10)
-Description: Python clone of WikiWiki - library
- A WikiWikiWeb is a collaborative hypertext environment, with an
- emphasis on easy access to and modification of information. MoinMoin
- is a Python WikiClone that allows you to easily set up your own wiki,
- only requiring a Web server and a Python installation.
- .
- This package contains the libraries for Python 2.3.
- .
-  Homepage: http://moinmoin.wikiwikiweb.de/
-
-Package: python2.4-moinmoin
-Architecture: all
-Section: python
-Depends: python2.4, moinmoin-common (= ${Source-Version})
-Recommends: exim4 | mail-transport-agent
-Suggests: apache | httpd | libapache-mod-python2.4 | libapache2-mod-python2.4 
| python2.4-twisted | libapache-mod-fastcgi, miscfiles | wordlist, 
python2.4-4suite, python2.4-gdchart, python2.4-docutils (>= 0.3.10)
-Description: Python clone of WikiWiki - library
+Suggests: apache | httpd | libapache-mod-python2.3 | libapache2-mod-python2.3 
| libapache-mod-python2.4 | libapache2-mod-python2.4 | python-twisted | 
libapache-mod-fastcgi, miscfiles | wordlist, python-4suite, python-gdchart, 
python-docutils (>= 0.3.10)
+Description: Python clone of WikiWiki - dummy library package
  A WikiWikiWeb is a collaborative hypertext environment, with an
  emphasis on easy access to and modification of information. MoinMoin
  is a Python WikiClone that allows you to easily set up your own wiki,
  only requiring a Web server and a Python installation.
  .
- This package contains the libraries for Python 2.4.
- .
   Homepage: http://moinmoin.wikiwikiweb.de/
diff -u moin-1.5.3/debian/control moin-1.5.3/debian/control
--- moin-1.5.3/debian/control
+++ moin-1.5.3/debian/control
@@ -2,8 +2,8 @@
 Section: net
 Priority: optional
 Maintainer: Jonas Smedegaard <[EMAIL PROTECTED]>
-Standards-Version: 3.6.2
-Build-Depends-Indep: cdbs (>= 0.4.23-1.1), , debhelper (>= 4.1.0), 
python2.3-dev, python2.4-dev, python, debhelper (>= 4.2.28), patchutils (>= 
0.2.25), dh-buildinfo
+Standards-Version: 3.7.2
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), dh-buildinfo, 
python-support (>= 0.4), python-all-dev
 
 Package: moinmoin-common
 Architecture: all
@@ -27,45 +27,14 @@
 Section: python
-Depends: ${python:Depends}
-Description: Python clone of WikiWiki - dummy library package
- A WikiWikiWeb is a collaborative hypertext environment, with an
- emphasis on easy access to and modification of information. MoinMoin
- is a Python WikiClone that allows you to easily set up your own wiki,
- only requiring a Web server and a Python installation.
- .
- This package is an empty dummy package that always depends on
- a package built for Debian's default Python version.
- .
-  Homepage: http://moinmoin.wikiwikiweb.de/
-
-Package: python2.3-moinmoin
-Architecture: all
-Section: python
-Depends: python2.3, moinmoin-common (= ${Source-Version})
+Depends: ${python:Depends}, moinmoin-common (= ${Source-Version})
+Provides: ${python:Provides}
+Replaces: python2.3-moinmoin (<< 1.5.3-1.1), python2.4-moinmoin (<< 1.5.3-1.1)
+Conflicts: moin, python2.3-moinmoin (<< 1.5.3-1.1), python2.4-moinmoin (<< 
1.5.3-1.1)
 Recommends: exim4 | mail-transport-agent
-Conflicts: moin
-Suggests: apache | httpd | libapache-mod-python2.3 | libapache2-mod-python2.3 
| python2.3-twisted | libapache-mod-fastcgi, miscfiles | wordlist, 
python2.3-4suite, python2.3-gdchart | python-gdchart, python2.3-docutils (>= 
0.3.10)
-Description: Python clone of WikiWiki - library
- A WikiWikiWeb is a collaborative hypertext environment, with an
- emphasis on easy access to and modification of information. MoinMoin
- is a Python WikiClone that allows you to easily set up your own wiki,
- only requiring a Web server and a Python installation.
- .
- This package contains the libraries for Python 2.3.
- .
-  Homepage: http://moinmoin.wikiwikiweb.de/
-
-Package: python2.4-moinmoin
-Architecture: all
-Section: python
-Depends: python2.4, moinmoin-common (= ${Source-Version})
-Recommends: exim4 | mail-transport-agent
-Suggests: apache | httpd | libapache-mod-python2.4 | libapache2-mod-python2.4 
| python2.4-twisted | libapache-mod-fastcgi, miscfiles | wordlist, 
python2.4-4suite, python2.4-gdchart, python2.4-docutils (>= 0.3.10)
-Description: Python clone of WikiWiki - library
+Suggests: apache | httpd | libapache-mod-python2.3 | libapache2-mod-python2.3 
| libapache-mod-python2.4 | libapache2-mod-python2.4 | python-twisted | 
libapache-mod-fastcgi, miscfiles | wordlist, python-4suite, python-gdchart, 
python-docutils (>= 0.3.10)
+Description: Python clone of WikiWiki - dummy library package
  A WikiWikiWeb is a collaborative hypertext environment, with an
  emphasis on easy access to and modification of information. MoinMoin
  is a Python WikiClone that allows you to easily set up your own wiki,
  only requiring a Web server and a Python installation.
  .
- This package contains the libraries for Python 2.4.
- .
   Homepage: http://moinmoin.wikiwikiweb.de/
diff -u moin-1.5.3/debian/moinmoin-common.postinst 
moin-1.5.3/debian/moinmoin-common.postinst
--- moin-1.5.3/debian/moinmoin-common.postinst
+++ moin-1.5.3/debian/moinmoin-common.postinst
@@ -31,5 +31,2 @@
 
-# Remove byte-compiled configfile generated by dh_python
-find /usr/share/moin/server -name *.pyc -o -name *.pyo | xargs -r rm -f
-
 rename_conffile_commit /etc/moin/moinmaster.py
diff -u moin-1.5.3/debian/rules moin-1.5.3/debian/rules
--- moin-1.5.3/debian/rules
+++ moin-1.5.3/debian/rules
@@ -4,9 +4,9 @@
 
 include debian/cdbs/1/rules/auto-update.mk
 
+# python-distutils first is intentional so that we can use dh_pysupport 
ourselves.
+include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
-#include /usr/share/cdbs/1/class/python-distutils.mk
-include debian/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include debian/cdbs/1/rules/buildinfo.mk
 
@@ -18,23 +18,18 @@
 include debian/cdbs/1/rules/copyright-check.mk
 
 pkg_data = moinmoin-common
-pkg_lib = python$(DEB_PYTHON_DEFAULT_VERSION)-moinmoin
-pkg_lib_alternatives = $(filter-out $(patsubst 
%,python%%,$(DEB_PYTHON_DEFAULT_VERSION)),$(DEB_PYTHON_REAL_LIB_PACKAGES))
+pkg_lib  = python-moinmoin
 
 DEB_MAKE_CHECK_TARGET = test
 DEB_COMPRESS_EXCLUDE = .py
-DEB_INSTALL_EXAMPLES_$(pkg_data) = 
build/scripts-$(DEB_PYTHON_DEFAULT_VERSION)/* 
wiki/underlay/pages/LocalSpellingWords contrib/phpwiki_migration wiki/config 
debian/examples/*
+DEB_INSTALL_EXAMPLES_$(pkg_data) = build/scripts-*/* 
wiki/underlay/pages/LocalSpellingWords contrib/phpwiki_migration wiki/config 
debian/examples/*
 DEB_INSTALL_DOCS_ALL += debian/README.Debian
 DEB_INSTALL_DOCS_$(pkg_data) += docs/README.migration docs/INSTALL.html 
docs/CHANGES.config docs/HACKS
 DEB_INSTALL_CHANGELOGS_ALL = docs/CHANGES
 
-$(patsubst %,binary-install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) ::
-       dh_installexamples -p$(cdbs_curpkg) debian/$(cdbs_curpkg)/usr/bin/* 
debian/$(cdbs_curpkg)/usr/share/moin/server
-
 # just being lazy...
 datadir = /usr/share/moin
 spelldir= $(datadir)/underlay/pages/LocalSpellingWords
-libdir = /usr/lib/python$(cdbs_python_ver)/site-packages/MoinMoin
 
 ubuntu:
        cp -f debian/control.in.ubuntu debian/control.in
@@ -42,6 +37,12 @@
 sarge:
        cp -f debian/control.in.sarge debian/control.in
 
+binary-install/$(pkg_lib)::
+       dh_installexamples -p$(cdbs_curpkg) debian/$(cdbs_curpkg)/usr/bin/* 
debian/$(cdbs_curpkg)/usr/share/moin/server
+       dh_pysupport -p$(cdbs_curpkg)
+       egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' 
debian/$(cdbs_curpkg)/usr/share/python-support/$(cdbs_curpkg) \
+               | xargs -r -0 chmod a+x
+
 ## Force remove build dir (cdbs DEB_PYTHON_COMPILE_VERSION is slightly broken)
 #clean::
 #      rm -rf build
@@ -72,11 +73,6 @@
        egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' 
debian/$(cdbs_curpkg)$(datadir)/server/* debian/$(cdbs_curpkg)/usr/share/doc/* \
                | xargs -r -0 perl -pi -e 's,^#! ?/usr/bin/(env 
)?python[[:print:]]*$$,#!/usr/bin/python$(DEB_PYTHON_COMPILE_VERSION),'
 
-## FIXME: Avoid pkg_data if that is set to one of the lib packages
-$(patsubst %,binary-fixup/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) ::
-       egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' 
debian/$(cdbs_curpkg)$(libdir)/* debian/$(cdbs_curpkg)$(datadir)/server/* 
debian/$(cdbs_curpkg)/usr/share/doc/* \
-               | xargs -r -0 perl -pi -e 's,^#! ?/usr/bin/(env 
)?python[[:print:]]*$$,#!/usr/bin/python$(cdbs_python_ver),'
-
 # Strip notes in underlay about editing only on moinmaster
 binary-fixup/$(pkg_data)::
        egrep -r -l -Z '^## ' 
debian/$(cdbs_curpkg)$(datadir)/underlay/pages/*/revisions/* \
@@ -89,9 +85,7 @@
 
 
 # Make sure scripts are executable
-$(patsubst %,binary-fixup/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) ::
-       egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' 
debian/$(cdbs_curpkg)$(libdir)/* \
-               | xargs -r -0 chmod a+x
+binary-fixup/$(pkg_lib)::
 
 # Make sure translations are up-to-date
 common-build-indep:: debian/stamp-update-translations
@@ -113,11 +107,6 @@
        mv debian/$(pkg_lib)$(datadir)/* debian/$(pkg_data)$(datadir)
        rm -rf debian/$(pkg_lib)$(datadir)
 
-# Drop common and example files from non-default lib builds
-$(patsubst %,binary-post-install/%,$(pkg_lib_alternatives)) ::
-       rm -rf debian/$(cdbs_curpkg)$(datadir)
-       rm -rf debian/$(cdbs_curpkg)/usr/bin
-
 # Create virtually empty local dictionary
 # (default german words already provided as example files)
 binary-fixup/$(pkg_data)::
@@ -132,7 +121,7 @@
 # Use sitewide word file as main dictionary
 binary-fixup/$(pkg_data)::
        mkdir -p debian/$(cdbs_curpkg)$(datadir)/data/dict
-       ln -s /usr/share/dict/words 
debian/$(cdbs_curpkg)$(datadir)/data/dict/words
+       ln -s ../../../dict/words 
debian/$(cdbs_curpkg)$(datadir)/data/dict/words
 
 # Setup system wide farmconfig.
 binary-fixup/$(pkg_data)::
reverted:
--- moin-1.5.3/debian/cdbs/1/class/python-distutils-vars.mk
+++ moin-1.5.3.orig/debian/cdbs/1/class/python-distutils-vars.mk
@@ -1,51 +0,0 @@
-# -*- mode: makefile; coding: utf-8 -*-
-# Copyright © 2003 Colin Walters <[EMAIL PROTECTED]>
-# Copyright © 2004-2005 Jonas Smedegaard <dr$jones.dk>
-# Description: Defines useful variables for Python libraries and programs
-#
-# 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, 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., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307 USA.
-
-
-ifndef _cdbs_bootstrap
-_cdbs_scripts_path ?= /usr/lib/cdbs
-_cdbs_rules_path ?= /usr/share/cdbs/1/rules
-_cdbs_class_path ?= /usr/share/cdbs/1/class
-endif
-
-ifndef _cdbs_class_python_distutils_vars
-_cdbs_class_python_distutils_vars := 1
-
-# These should reflect the system
-DEB_PYTHON_DEFAULT_VERSION := $(shell /usr/bin/python -V 2>&1 | sed 
's/^[^0-9]*\([0-9]\+.[0-9]\+\)[^0-9].*/\1/')
-DEB_PYTHON_NEXT_VERSION := $(shell expr '$(DEB_PYTHON_DEFAULT_VERSION)' : 
'[^0-9]*\([0-9]\+\).').$(shell expr '(' '$(DEB_PYTHON_DEFAULT_VERSION)' : 
'[^0-9]*[0-9]\+.\([0-9]\+\)' ')' + 1)
-
-# Common build options
-DEB_PYTHON_SETUP_CMD = setup.py
-DEB_PYTHON_CLEAN_ARGS = -a
-DEB_PYTHON_BUILD_ARGS = --build-base="$(DEB_BUILDDIR)/build"
-DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0
-DEB_PYTHON_DESTDIR = debian/$(cdbs_curpkg)
-
-# Properly named Python libraries are preferred
-DEB_PYTHON_VERSIONS = 2.1 2.2 2.3 2.4
-DEB_PYTHON_REAL_LIB_PACKAGES := $(strip $(filter $(patsubst 
%,python%%,$(DEB_PYTHON_VERSIONS)),$(DEB_ALL_PACKAGES)))
-
-# Alternatively package simpler packages using default Python
-DEB_PYTHON_SIMPLE_PACKAGES := $(strip $(filter python-%,$(DEB_ALL_PACKAGES)))
-# Force using a non-default Python for simpler packages
-DEB_PYTHON_COMPILE_VERSION = 
-
-endif
reverted:
--- moin-1.5.3/debian/cdbs/1/class/python-distutils.mk.diff
+++ moin-1.5.3.orig/debian/cdbs/1/class/python-distutils.mk.diff
@@ -1,90 +0,0 @@
---- /usr/share/cdbs/1/class/python-distutils.mk        2005-05-23 
20:45:30.000000000 +0200
-+++ python-distutils.mk        2005-06-13 19:57:05.000000000 +0200
-@@ -1,5 +1,6 @@
- # -*- mode: makefile; coding: utf-8 -*-
- # Copyright © 2003 Colin Walters <[EMAIL PROTECTED]>
-+# Copyright © 2004-2005 Jonas Smedegaard <[EMAIL PROTECTED]>
- # Description: configure, compile, binary, and clean Python libraries and 
programs
- #  This class works for Python packages which use the Python
- #  "distutils".  Note that optionally it can also use the
-@@ -31,52 +32,56 @@
- ifndef _cdbs_class_python_distutils
- _cdbs_class_python_distutils := 1
- 
--include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix)
--
--DEB_PYTHON_COMPILE_VERSION = 
--
--DEB_PYTHON_VERSIONS = 2.1 2.2 2.3 2.4
--
--DEB_PYTHON_SETUP_CMD = setup.py
--DEB_PYTHON_CLEAN_ARGS = -a
--DEB_PYTHON_BUILD_ARGS = --build-base="$(DEB_BUILDDIR)/build"
--DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0
-+## FIXME: Correct path when included officially!!!
-+#include $(_cdbs_class_path)/python-distutils-vars.mk$(_cdbs_makefile_suffix)
-+include debian/cdbs/1/class/python-distutils-vars.mk$(_cdbs_makefile_suffix)
- 
- # make: *** No rule to make target `voodoo'.  Stop.
--DEB_PYTHON_REAL_LIB_PACKAGES := $(strip $(filter $(patsubst 
%,python%%,$(DEB_PYTHON_VERSIONS)),$(DEB_ALL_PACKAGES)))
- # If no versioned python library packages found, grab all simpler ones
- ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
--DEB_PYTHON_SIMPLE_PACKAGES := $(strip $(filter python-%,$(DEB_ALL_PACKAGES)))
-+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), python-dev (>= 
$(DEB_PYTHON_DEFAULT_VERSION)), python-dev (<< $(DEB_PYTHON_NEXT_VERSION))
-+else
-+DEB_PYTHON_REAL_VERSIONS := $(filter-out -%,$(subst -, -,$(patsubst 
python%,%,$(DEB_PYTHON_REAL_LIB_PACKAGES))))
-+comma := ,
-+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(patsubst 
%,python%-dev$(comma),$(DEB_PYTHON_REAL_VERSIONS)) python
- endif
- 
--cdbs_python_ver = $(filter-out -%,$(subst -, -,$(patsubst 
install/python%,%,$@)))
-+cdbs_python_ver = $(filter-out -%,$(subst -, -,$(patsubst 
python%,%,$(cdbs_curpkg))))
- 
- common-build-arch common-build-indep:: common-build-impl
- common-build-impl::
--      cd $(DEB_SRCDIR) && python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
-+      cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
- 
- clean::
- # Ignore errors from this rule.  In a tarball build, the file
- # may not exist.
--      -python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) clean 
$(DEB_PYTHON_CLEAN_ARGS)
--
--# See if this package doesn't appear to need to be compiled by multiple
--# Python versions.
-+# Try all flavors of Python used.
- ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
--common-install-arch common-install-indep:: common-install-impl
--common-install-impl::
--      cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-+      -/usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) 
clean $(DEB_PYTHON_CLEAN_ARGS)
- else
--$(patsubst %,install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) :: install/% :
--      cd $(DEB_SRCDIR) && /usr/bin/python$(cdbs_python_ver) 
$(DEB_PYTHON_SETUP_CMD) install --root=debian/$(cdbs_curpkg) 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-+      -$(patsubst %, /usr/bin/python% $(DEB_PYTHON_SETUP_CMD) clean 
$(DEB_PYTHON_CLEAN_ARGS);, $(DEB_PYTHON_REAL_VERSIONS))
- endif
- 
-+# Use specific Python binary if needed
-+ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
- $(patsubst %,install/%,$(DEB_PYTHON_SIMPLE_PACKAGES)) :: install/% :
--      cd $(DEB_SRCDIR) && python $(DEB_PYTHON_SETUP_CMD) install 
--root="debian/$(cdbs_curpkg)" $(DEB_PYTHON_INSTALL_ARGS_ALL) 
$(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-+      cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) install --root="$(DEB_PYTHON_DESTDIR)" 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-+else
-+$(patsubst %,install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) :: install/% :
-+      cd $(DEB_SRCDIR) && /usr/bin/python$(cdbs_python_ver) 
$(DEB_PYTHON_SETUP_CMD) install --root="$(DEB_PYTHON_DESTDIR)" 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-+endif
- 
- # This class can optionally utilize debhelper's "dh_python" command.  Just
- # be sure you include debhelper.mk before including this file.
- ifdef _cdbs_rules_debhelper
-+ifneq (,$(strip $(filter 2.4,$(DEB_PYTHON_REAL_VERSIONS))))
-+# Python 2.4 support
-+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.2.28)
-+else
-+# Python 2.3 support
-+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.1.60)
-+endif
-+
- $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
-       dh_python -p$(cdbs_curpkg)
- endif
reverted:
--- moin-1.5.3/debian/cdbs/1/class/python-distutils.mk
+++ moin-1.5.3.orig/debian/cdbs/1/class/python-distutils.mk
@@ -1,89 +0,0 @@
-# -*- mode: makefile; coding: utf-8 -*-
-# Copyright © 2003 Colin Walters <[EMAIL PROTECTED]>
-# Copyright © 2004-2005 Jonas Smedegaard <[EMAIL PROTECTED]>
-# Description: configure, compile, binary, and clean Python libraries and 
programs
-#  This class works for Python packages which use the Python
-#  "distutils".  Note that optionally it can also use the
-#  dh_python program which does some nice stuff.  See
-#  the manual page for that program for more information.
-#
-# 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, 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., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307 USA.
-
-
-ifndef _cdbs_bootstrap
-_cdbs_scripts_path ?= /usr/lib/cdbs
-_cdbs_rules_path ?= /usr/share/cdbs/1/rules
-_cdbs_class_path ?= /usr/share/cdbs/1/class
-endif
-
-ifndef _cdbs_class_python_distutils
-_cdbs_class_python_distutils := 1
-
-## FIXME: Correct path when included officially!!!
-#include $(_cdbs_class_path)/python-distutils-vars.mk$(_cdbs_makefile_suffix)
-include debian/cdbs/1/class/python-distutils-vars.mk$(_cdbs_makefile_suffix)
-
-# make: *** No rule to make target `voodoo'.  Stop.
-# If no versioned python library packages found, grab all simpler ones
-ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
-CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), python-dev (>= 
$(DEB_PYTHON_DEFAULT_VERSION)), python-dev (<< $(DEB_PYTHON_NEXT_VERSION))
-else
-DEB_PYTHON_REAL_VERSIONS := $(filter-out -%,$(subst -, -,$(patsubst 
python%,%,$(DEB_PYTHON_REAL_LIB_PACKAGES))))
-comma := ,
-CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(patsubst 
%,python%-dev$(comma),$(DEB_PYTHON_REAL_VERSIONS)) python
-endif
-
-cdbs_python_ver = $(filter-out -%,$(subst -, -,$(patsubst 
python%,%,$(cdbs_curpkg))))
-
-common-build-arch common-build-indep:: common-build-impl
-common-build-impl::
-       cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
-
-clean::
-# Ignore errors from this rule.  In a tarball build, the file
-# may not exist.
-# Try all flavors of Python used.
-ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
-       -/usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) 
clean $(DEB_PYTHON_CLEAN_ARGS)
-else
-       -$(patsubst %, /usr/bin/python% $(DEB_PYTHON_SETUP_CMD) clean 
$(DEB_PYTHON_CLEAN_ARGS);, $(DEB_PYTHON_REAL_VERSIONS))
-endif
-
-# Use specific Python binary if needed
-ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
-$(patsubst %,install/%,$(DEB_PYTHON_SIMPLE_PACKAGES)) :: install/% :
-       cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) 
$(DEB_PYTHON_SETUP_CMD) install --root="$(DEB_PYTHON_DESTDIR)" 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-else
-$(patsubst %,install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) :: install/% :
-       cd $(DEB_SRCDIR) && /usr/bin/python$(cdbs_python_ver) 
$(DEB_PYTHON_SETUP_CMD) install --root="$(DEB_PYTHON_DESTDIR)" 
$(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-endif
-
-# This class can optionally utilize debhelper's "dh_python" command.  Just
-# be sure you include debhelper.mk before including this file.
-ifdef _cdbs_rules_debhelper
-ifneq (,$(strip $(filter 2.4,$(DEB_PYTHON_REAL_VERSIONS))))
-# Python 2.4 support
-CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.2.28)
-else
-# Python 2.3 support
-CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.1.60)
-endif
-
-$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
-       dh_python -p$(cdbs_curpkg)
-endif
-
-endif
only in patch2:
unchanged:
--- moin-1.5.3.orig/debian/pyversions
+++ moin-1.5.3/debian/pyversions
@@ -0,0 +1 @@
+2.1-

Attachment: signature.asc
Description: Digital signature

Reply via email to