From 94b4dccb285342cab3831603647625d52f96fab9 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 17 Dec 2012 10:55:53 +0000 Subject: Switching to openstack-pkg-tools packaging. --- debian/changelog | 1 + debian/control | 2 +- debian/rules | 19 +++---------------- 3 files changed, 5 insertions(+), 17 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 9593e28..44c8d24 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ factory-boy (1.1.5-1) experimental; urgency=low * New upstream release. * Added a get-vcs-source and debian/gbp.conf file. * Added everyone in the team as uploaders. + * Switching to openstack-pkg-tools unified packaging. -- Thomas Goirand Sun, 14 Oct 2012 12:06:03 +0000 diff --git a/debian/control b/debian/control index c14716e..fc7666a 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Uploaders: Loic Dachary (OuoU) , Thomas Goirand , Ghe Rivero , Mehdi Abaakouk -Build-Depends: debhelper (>= 7.0.50), python-dev (>=2.6.6-3~) +Build-Depends: debhelper (>= 7.0.50), python-dev (>=2.6.6-3~), openstack-pkg-tools Standards-Version: 3.9.3 Homepage: https://github.com/rbarrois/factory_boy Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/factory-boy.git;a=summary diff --git a/debian/rules b/debian/rules index 8f89ae3..137b5c6 100755 --- a/debian/rules +++ b/debian/rules @@ -2,22 +2,9 @@ # export DH_VERBOSE=1 -DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') -VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//') -DEBFLAVOR :=$(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2) -DEBPKGNAME :=$(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2) +UPSTREAM_GIT = git://github.com/rbarrois/factory_boy.git + +include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --with python2 - -get-vcs-source: - git remote add upstream git://github.com/rbarrois/factory_boy.git || true - git fetch upstream - if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \ - git archive --prefix=$(DEBPKGNAME)-$(VERSION)/ $(VERSION) | xz >../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \ - fi - if ! git checkout master ; then \ - echo "No upstream branch: checking out" ; \ - git checkout -b master upstream/master ; \ - fi - git checkout debian/experimental -- cgit v1.2.3