[debian] Rework split of cubicweb-ctl package 3.24
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 17 Nov 2016 17:08:29 +0100
branch3.24
changeset 11836 21c72857178f
parent 11835 fafdb7f1e888
child 11837 90c5449a7910
[debian] Rework split of cubicweb-ctl package It does not appear simple to have the .install files work. So just copy cubicweb-ctl script in DESDIR of cubicweb-ctl binary package and remove .install files. Related to #16133259.
debian/cubicweb-ctl.install
debian/python-cubicweb.install
debian/rules
--- a/debian/cubicweb-ctl.install	Fri Nov 18 09:14:25 2016 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/bin/cubicweb-ctl
--- a/debian/python-cubicweb.install	Fri Nov 18 09:14:25 2016 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-usr/lib/python2*/*-packages/cubicweb/*
-usr/share/cubicweb/cubes/
--- a/debian/rules	Fri Nov 18 09:14:25 2016 +0100
+++ b/debian/rules	Thu Nov 17 17:08:29 2016 +0100
@@ -19,8 +19,10 @@
 	PYTHONPATH=. sphinx-build -N -bhtml doc/ debian/cubicweb-doc/html
 endif
 
-override_dh_install:
-	dh_install --sourcedir=debian/python-${PYBUILD_NAME}
+override_dh_auto_install:
+	dh_auto_install
+	mv debian/python-${PYBUILD_NAME}/usr/bin/cubicweb-ctl \
+		debian/cubicweb-ctl/usr/bin/cubicweb-ctl
 
 override_dh_installchangelogs:
 	dh_installchangelogs -Xdoc/changes