diff --git a/debian/control b/debian/control index 2e798a8..105e904 100644 --- a/debian/control +++ b/debian/control @@ -23,8 +23,11 @@ ${misc:Depends}, libfuse2 Description: simple Python interface to FUSE (Python 2) - fusepy is a Python module that provides a simple interface to FUSE and + fusepy is a Python module that provides a simple interface to FUSE and MacFUSE. It's just one file and is implemented using ctypes. + Due to a name clash with the existing API-incompatible python-fuse package, + the importable module name for fusepy in Debian is 'fusepy' instead of + upstream's 'fuse'. . This package installs the Python 2 version. @@ -36,5 +39,8 @@ Description: simple Python interface to FUSE (Python 3) fusepy is a Python module that provides a simple interface to FUSE and MacFUSE. It's just one file and is implemented using ctypes. + Due to a name clash with the existing API-incompatible python-fuse package, + the importable module name for fusepy in Debian is 'fusepy' instead of + upstream's 'fuse'. . This package installs the Python 3 version. diff --git a/debian/patches/0001-rename-to-fusepy.patch b/debian/patches/0001-rename-to-fusepy.patch new file mode 100644 index 0000000..e6b6f86 --- /dev/null +++ b/debian/patches/0001-rename-to-fusepy.patch @@ -0,0 +1,21 @@ +From: Sascha Steinbiss +Date: Thu, 2 Feb 2017 14:13:38 +0100 +Subject: rename to 'fusepy' + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 23d1664..a42f777 100755 +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ setup( + maintainer = 'Terence Honles', + maintainer_email = 'terence@honles.com', + license = 'ISC', +- py_modules=['fuse'], ++ py_modules=['fusepy'], + url = 'http://github.com/terencehonles/fusepy', + + classifiers = [ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7bcd7f0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-rename-to-fusepy.patch diff --git a/debian/rules b/debian/rules index e2c8224..7e545da 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,9 @@ %: dh $@ --with python2,python3 --buildsystem=pybuild -override_dh_auto_test: - python2 setup.py test - python3 setup.py test +override_dh_auto_clean: + rm -f fusepy.py + +override_dh_auto_build: + cp -pv fuse.py fusepy.py + dh_auto_build