--- python-fam-1.1.1.orig/debian/compat +++ python-fam-1.1.1/debian/compat @@ -0,0 +1 @@ +4 --- python-fam-1.1.1.orig/debian/control +++ python-fam-1.1.1/debian/control @@ -0,0 +1,18 @@ +Source: python-fam +Section: python +Priority: optional +Maintainer: Martin v. Loewis +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), + python-support (>= 0.3), libfam-dev (>= 2.7.0-7.1) +Standards-Version: 3.7.3 +XS-Python-Version: all + +Package: python-fam +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Provides: ${python:Provides} +Replaces: python2.3-fam (<< 1.1.1-2.1), python2.4-fam (<< 1.1.1-2.1) +Conflicts: python2.3-fam (<< 1.1.1-2.1), python2.4-fam (<< 1.1.1-2.1) +Description: Python interface to FAM + This library exposes FAM, the File Alteration Monitor, + to Python scripts. --- python-fam-1.1.1.orig/debian/copyright +++ python-fam-1.1.1/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Martin v. Loewis on +Sat, 5 Mar 2005 11:58:29 +0100. + +It was downloaded from http://prdownloads.sourceforge.net/python-fam/python-fam-1.1.1.tar.gz + + Copyright (C) 2002 Robert Sander + Copyright (C) 2005 Martin v. Loewis + +License: + +You are free to distribute this software under the terms of +the GNU Lesser General Public License. +On Debian systems, the complete text of the Lesser General Public +License can be found in /usr/share/common-licenses/LGPL. --- python-fam-1.1.1.orig/debian/changelog +++ python-fam-1.1.1/debian/changelog @@ -0,0 +1,37 @@ +python-fam (1.1.1-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Add XS-Python-Source: all header. + * Fix use of Python API for memory management. Closes: #468998 + * Fix debian/copyright. + * Bump standards (no changes except the above). + + -- Thomas Viehmann Wed, 05 Mar 2008 20:09:23 +0100 + +python-fam (1.1.1-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Update package to last python policy (Closes: #373533). + * Package is no more arch:all (Closes: #313172). + + -- Pierre Habouzit Sun, 2 Jul 2006 00:49:35 +0200 + +python-fam (1.1.1-2) unstable; urgency=low + + * Rebuild for C++ API change. + + -- Martin v. Loewis Tue, 12 Jul 2005 15:23:34 +0200 + +python-fam (1.1.1-1) unstable; urgency=medium + + * New upstream release. + * Clarify that python-fam is under LGPL. + + -- Martin v. Loewis Sun, 10 Apr 2005 10:04:55 +0200 + +python-fam (1.1-1) unstable; urgency=low + + * Initial Release (Closes: #183150). + + -- Martin v. Loewis Sun, 10 Apr 2005 10:04:28 +0200 + --- python-fam-1.1.1.orig/debian/rules +++ python-fam-1.1.1/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PYTHON_VERSIONS=$(shell pyversions -rv) + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp +build-stamp: $(patsubst %,build-stamp-%,$(PYTHON_VERSIONS)) + touch build-stamp + +build-stamp-%: + dh_testdir + + python$* setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp build-stamp-* + + rm -rf build + + dh_clean + +install: build $(patsubst %,install-%,$(PYTHON_VERSIONS)) + +install-%: + dh_testdir + dh_testroot + dh_installdirs + + python$* setup.py install --no-compile \ + --root=$(CURDIR)/debian/python-fam + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples test.py + dh_install + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_shlibdeps -a + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- python-fam-1.1.1.orig/debian/pycompat +++ python-fam-1.1.1/debian/pycompat @@ -0,0 +1 @@ +2 --- python-fam-1.1.1.orig/_fam.c +++ python-fam-1.1.1/_fam.c @@ -112,7 +112,7 @@ fprintf(stderr, "_fam: deleting connection object.\n"); #endif _fam_close(self, NULL); - PyMem_DEL(self); + PyObject_Del(self); } static PyTypeObject _fam_connection_type = { @@ -215,7 +215,7 @@ fprintf(stderr, "_fam: deleting request object.\n"); #endif _fam_cancel_monitor(self, NULL); - PyMem_DEL(self); + PyObject_Del(self); } static PyTypeObject _fam_request_type = { @@ -357,7 +357,7 @@ fe_obj->fc_obj = NULL; } Py_XDECREF(fe_obj->attr); - PyMem_DEL(fe_obj); + PyObject_Del(fe_obj); } } @@ -435,7 +435,7 @@ int rc; - _fam_connection_object *fc_obj = PyObject_NEW(_fam_connection_object, &_fam_connection_type); + _fam_connection_object *fc_obj = PyObject_New(_fam_connection_object, &_fam_connection_type); if (!fc_obj) return NULL; @@ -498,7 +498,7 @@ if (!PyArg_ParseTuple(args, "sO", &filename, &userData)) return NULL; - fr_obj = PyObject_NEW(_fam_request_object, &_fam_request_type); + fr_obj = PyObject_New(_fam_request_object, &_fam_request_type); if (!fr_obj) return NULL; @@ -545,7 +545,7 @@ if (!PyArg_ParseTuple(args, "sO", &filename, &userData)) return NULL; - fr_obj = PyObject_NEW(_fam_request_object, &_fam_request_type); + fr_obj = PyObject_New(_fam_request_object, &_fam_request_type); if (!fr_obj) return NULL; @@ -647,7 +647,7 @@ if (fc_obj->fc) { - fe_obj = PyObject_NEW(_fam_event_object, &_fam_event_type); + fe_obj = PyObject_New(_fam_event_object, &_fam_event_type); if (!fe_obj) return NULL;