[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gphoto2 package name problem



Hi Damon,

On Wed, Mar 30, 2016 at 06:19:58PM +0500, Damon Lynch wrote:
> I'd like the help of a Debian packager / developer to rename a Debian
> package before Ubuntu 16.04 is released. Very likely also required is
> changing the name of the package's python module. The Debian package
> maintainer and upstream developer are in full agreement regarding the
> changes; all that is lacking is implementing it.
>
> Specifically, via email, I have confirmed that the Debian maintainer of the
> project "gphoto2-cffi"[1] agrees that its Debian package should be renamed
> to "python-gphoto2cffi" and that it's python module should be "gphoto2cffi".
> However the Debian maintainer says he/she been unable to make the changes
> himself because he/she is too busy. Meanwhile the next Ubuntu release is
> drawing ever closer.

This was not difficult — a debdiff is attached.

If you want this in Ubuntu 16.04, you need to file a feature freeze exception
request first (and preferably get the Debian maintainer to upload it first, so
that it can be synced).

--
Dmitry Shachnev
diff -ruN gphoto2-cffi-0.2/debian/changelog gphoto2-cffi-0.3a1/debian/changelog
--- gphoto2-cffi-0.2/debian/changelog	2015-10-25 08:11:12.000000000 +0100
+++ gphoto2-cffi-0.3a1/debian/changelog	2016-03-30 22:40:41.000000000 +0200
@@ -1,3 +1,13 @@
+gphoto2-cffi (0.3~a1~20160330-1) UNRELEASED; urgency=medium
+
+  * New upstream snapshot.
+  * Drop add-datafiles.diff, applied upstream.
+  * Binary packages renamed to python[3]-gphoto2cffi, following upstream.
+  * Do not attempt to run tests, as there are none.
+  * Remove unused code in debian/rules.
+
+ -- Dmitry Shachnev <mitya57@debian.org>  Wed, 30 Mar 2016 22:22:09 +0200
+
 gphoto2-cffi (0.2-3) unstable; urgency=low
 
   * Python 3.5 support (Closes: #793328)
diff -ruN gphoto2-cffi-0.2/debian/control gphoto2-cffi-0.3a1/debian/control
--- gphoto2-cffi-0.2/debian/control	2015-10-25 08:09:23.000000000 +0100
+++ gphoto2-cffi-0.3a1/debian/control	2016-03-30 22:37:55.000000000 +0200
@@ -5,18 +5,20 @@
 Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-enum34, python-all (>= 2.6.6-3), python3-all, debhelper (>= 9), dh-python, python-cffi, python3-cffi, python-all-dev, python3-all-dev, libgphoto2-dev
 Standards-Version: 3.9.6
 
-Package: python-gphoto2
+Package: python-gphoto2cffi
 Architecture: any
 Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Replaces: python-gphoto2
 Description: GPhoto2 bindings with simpler API
  Python bindings for libgphoto2 with an interface that strives to be idiomatic.
  In contrast to other bindings for Python, gphoto2-cffi hides most of the
  lower-level abstractions and reduces the API surface while still offering
  access to most of the library's features.
 
-Package: python3-gphoto2
+Package: python3-gphoto2cffi
 Architecture: any
 Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
+Replaces: python3-gphoto2
 Description: GPhoto2 bindings with simpler API
  Python bindings for libgphoto2 with an interface that strives to be idiomatic.
  In contrast to other bindings for Python, gphoto2-cffi hides most of the
diff -ruN gphoto2-cffi-0.2/debian/patches/add-datafiles.diff gphoto2-cffi-0.3a1/debian/patches/add-datafiles.diff
--- gphoto2-cffi-0.2/debian/patches/add-datafiles.diff	2015-06-25 20:58:52.000000000 +0200
+++ gphoto2-cffi-0.3a1/debian/patches/add-datafiles.diff	1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-Index: gphoto2-cffi-0.2/setup.py
-===================================================================
---- gphoto2-cffi-0.2.orig/setup.py
-+++ gphoto2-cffi-0.2/setup.py
-@@ -58,6 +58,7 @@ setup(
-     license='LGPLv3',
-     packages=['gphoto2'],
-     include_package_data=True,
-+    package_data={'':['gphoto2.cdef']},
-     distclass=BinaryDistribution,
-     setup_requires=['cffi'],
-     install_requires=REQUIRES,
diff -ruN gphoto2-cffi-0.2/debian/patches/series gphoto2-cffi-0.3a1/debian/patches/series
--- gphoto2-cffi-0.2/debian/patches/series	2015-06-25 20:57:42.000000000 +0200
+++ gphoto2-cffi-0.3a1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-add-datafiles.diff
diff -ruN gphoto2-cffi-0.2/debian/rules gphoto2-cffi-0.3a1/debian/rules
--- gphoto2-cffi-0.2/debian/rules	2015-06-25 21:02:24.000000000 +0200
+++ gphoto2-cffi-0.3a1/debian/rules	2016-03-30 22:42:43.000000000 +0200
@@ -1,26 +1,6 @@
 #!/usr/bin/make -f
 
-# This file was automatically generated by stdeb 0.8.2 at
-# Thu, 09 Oct 2014 22:55:33 +0300
-PYTHONS:=$(shell pyversions -vr)
-PYTHON3S:=$(shell py3versions -vr)
-export PYBUILD_NAME=gphoto2
+export PYBUILD_NAME=gphoto2cffi
+export PYBUILD_DISABLE=test
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
-
-override_dh_clean:
-	dh_clean -O--buildsystem=pybuild
-	rm -rf build
-	rm -rf gphoto2/__pycache__
-
-override_dh_install:
-	set -e ; for pyvers in $(PYTHONS); do \
-		python$$pyvers setup.py install --install-layout=deb \
-			--root $(CURDIR)/debian/python-gphoto2; \
-	done
-	set -e ; for pyvers in $(PYTHON3S); do \
-		python$$pyvers setup.py install --install-layout=deb \
-			--root $(CURDIR)/debian/python3-gphoto2; \
-	done
-	rm -rf $(CURDIR)/debian/python*-gphoto2/usr/lib/python*/dist-packages/*.pth
-	rm -rf $(CURDIR)/debian/python*-gphoto2/usr/lib/python3.*

Attachment: signature.asc
Description: PGP signature


Reply to: