--- python-yenc-0.3+debian.orig/debian/compat +++ python-yenc-0.3+debian/debian/compat @@ -0,0 +1 @@ +5 --- python-yenc-0.3+debian.orig/debian/changelog +++ python-yenc-0.3+debian/debian/changelog @@ -0,0 +1,26 @@ +python-yenc (0.3+debian-2ubuntu2) natty; urgency=low + + * Rebuild to add support for python 2.7. + + -- Matthias Klose Fri, 03 Dec 2010 00:13:04 +0000 + +python-yenc (0.3+debian-2ubuntu1) jaunty; urgency=low + + * Python 2.6 transition (lp: #336395). + + -- Michael Bienia Mon, 02 Mar 2009 16:56:35 +0100 + +python-yenc (0.3+debian-2) unstable; urgency=low + + * Add debian/watch. + * Move to section python. + * Move homepage to new dpkg standard field. + * Bump Standards-Version: to 3.7.3. + + -- Adam Cécile (Le_Vert) Mon, 28 Jan 2008 20:45:23 +0100 + +python-yenc (0.3+debian-1) unstable; urgency=low + + * Initial release (Closes: #418745). + + -- Adam Cécile (Le_Vert) Wed, 11 Apr 2007 17:04:29 +0200 --- python-yenc-0.3+debian.orig/debian/watch +++ python-yenc-0.3+debian/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+debian// \ +http://www.hellanzb.com/hellanzb-content/yenc-(.*).tar.gz --- python-yenc-0.3+debian.orig/debian/copyright +++ python-yenc-0.3+debian/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Wed, 11 Apr 2007 17:04:29 +0200. + +It was downloaded from http://www.hellanzb.com/ + +Upstream Author: Author: Hellanzb Team + Alessandro Duca + +Copyright: (C) 2003, 2004 Alessandro Duca + +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 + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Adam Cécile (Le_Vert) +and is licensed under the GPL, see above. + +Upstream sources have been repacked to remove a "debian/" subdirectory +containing out-dated Debian packaging. --- python-yenc-0.3+debian.orig/debian/rules +++ python-yenc-0.3+debian/debian/rules @@ -0,0 +1,60 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# I *love* dpatch +include /usr/share/dpatch/dpatch.make + +include /usr/share/python/python.mk + +PYVERS = $(shell pyversions -rv) +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: $(PYVERS:%=build-stamp-py%) +build-stamp-py%: patch-stamp + dh_testdir + CFLAGS="$(CFLAGS)" python$* setup.py build + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build build-stamp* + dh_clean + +install: install-prereqs $(PYVERS:%=install-stamp-py%) +install-prereqs: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs +install-stamp-py%: + python$* setup.py install --root $(CURDIR)/debian/python-yenc $(py_setup_install_args) + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_pysupport + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- python-yenc-0.3+debian.orig/debian/examples +++ python-yenc-0.3+debian/debian/examples @@ -0,0 +1 @@ +test/test.py --- python-yenc-0.3+debian.orig/debian/pyversions +++ python-yenc-0.3+debian/debian/pyversions @@ -0,0 +1 @@ +2.3- --- python-yenc-0.3+debian.orig/debian/control +++ python-yenc-0.3+debian/debian/control @@ -0,0 +1,20 @@ +Source: python-yenc +Section: python +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5), dpatch, python-support (>= 0.4), python-all-dev +Standards-Version: 3.7.3 +Homepage: http://www.hellanzb.com/ + +Package: python-yenc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +Description: yEnc encoding/decoding extension for Python + The yEnc module provide a simple API for doing raw encoding/decoding of + yencoded binaries, mainly for retrieving or posting to the usenet. + This implementation is really simple and intended mainly as an exercise + to the author but is also significatively faster than any possible pure + Python implementation and it's being actually used by some Python nntp + clients out there. --- python-yenc-0.3+debian.orig/debian/docs +++ python-yenc-0.3+debian/debian/docs @@ -0,0 +1,3 @@ +README +TODO +doc/* --- python-yenc-0.3+debian.orig/debian/patches/00list +++ python-yenc-0.3+debian/debian/patches/00list @@ -0,0 +1 @@ +000-Handle_env_CFLAGS_var --- python-yenc-0.3+debian.orig/debian/patches/000-Handle_env_CFLAGS_var.dpatch +++ python-yenc-0.3+debian/debian/patches/000-Handle_env_CFLAGS_var.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 000-Handle_env_CFLAGS_var.dpatch +## by Adam Cécile (Le_Vert) +## +## DP: Do not auto-probe CFLAGS, and use which are passed in environment. + +@DPATCH@ + +diff -u python-yenc-0.3~debian/setup.py python-yenc-0.3~debian/setup.py.new +--- python-yenc-0.3~debian/setup.py 2007-04-11 17:30:42.000000000 +0200 ++++ python-yenc-0.3~debian/setup.py.new 2007-04-11 17:35:25.000000000 +0200 +@@ -28,6 +28,11 @@ + + from distutils.core import setup, Extension + ++# We don't want any "auto-defined" CFLAGS ++from distutils import sysconfig ++sysconfig.get_config_vars()["CFLAGS"] = '' ++sysconfig.get_config_vars()["OPT"] = '' ++ + setup( + name = "yenc", + version = "0.3", +@@ -38,6 +43,6 @@ + license = "GPL", + package_dir = { '': 'lib' }, + py_modules = ["yenc"], +- ext_modules = [Extension("_yenc",["src/_yenc.c"],extra_compile_args=["-O2","-g"])] ++ ext_modules = [Extension("_yenc",["src/_yenc.c"],extra_compile_args=[])] + ) +