[Python-apps-commits] r12720 - in packages/plainbox-provider-checkbox/trunk/debian (rules)
spineau-guest at users.alioth.debian.org
spineau-guest at users.alioth.debian.org
Fri Jan 15 20:20:40 UTC 2016
Date: Friday, January 15, 2016 @ 20:20:39
Author: spineau-guest
Revision: 12720
Simplify debian/rules since installation directories are all named plainbox-provider-checkbox
Modified:
packages/plainbox-provider-checkbox/trunk/debian/rules
Modified: packages/plainbox-provider-checkbox/trunk/debian/rules
===================================================================
--- packages/plainbox-provider-checkbox/trunk/debian/rules 2016-01-15 20:18:33 UTC (rev 12719)
+++ packages/plainbox-provider-checkbox/trunk/debian/rules 2016-01-15 20:20:39 UTC (rev 12720)
@@ -13,28 +13,10 @@
override_dh_auto_test:
python3 manage.py validate --loose --legacy
-pkg_name=plainbox-provider-checkbox
-verbose_id=2013.com.canonical.certification:checkbox
-terse_id=$(pkg_name)
-
override_dh_auto_install:
python3 manage.py install \
--prefix=/usr --layout=unix \
- --root=$(CURDIR)/debian/$(pkg_name)/
- # Rename provider directory to avoid having colon in the PATH
- mv $(CURDIR)/debian/$(pkg_name)/usr/lib/$(verbose_id) \
- $(CURDIR)/debian/$(pkg_name)/usr/lib/$(terse_id)
- mv $(CURDIR)/debian/$(pkg_name)/usr/share/$(verbose_id) \
- $(CURDIR)/debian/$(pkg_name)/usr/share/$(terse_id)
- # Rename the .provider file, mind the mangling of : done by manage.py install!
- mv $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(subst :,.,$(verbose_id)).provider \
- $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider
- # Reflect changes in the .provider meta-data
- sed -i -e 's!$(verbose_id)!$(terse_id)!g' \
- $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider
- # But don't modify the name, it has to be exactly as before
- sed -i -e 's!name = $(terse_id)!name = $(verbose_id)!g' \
- $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider
+ --root=$(CURDIR)/debian/plainbox-provider-checkbox/
override_dh_gencontrol:
python3 manage.py packaging
More information about the Python-apps-commits
mailing list