Now using openstack-pkg-tools in debian/rules

This commit is contained in:
Thomas Goirand
2012-11-16 17:43:40 +00:00
parent 4a4ecb304c
commit f529ef3dd2
2 changed files with 2 additions and 17 deletions

1
debian/control vendored
View File

@@ -4,6 +4,7 @@ Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Mehdi Abaakouk <sileht@sileht.net>
Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6),
openstack-pkg-tools,
python-setuptools,
python-nose,
python-httplib2,

18
debian/rules vendored
View File

@@ -1,13 +1,9 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#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)
include /usr/share/openstack-pkg-tools/pkgos.make
override_dh_auto_clean:
echo $(VERSION) > cinderclient/versioninfo
@@ -26,15 +22,3 @@ get-orig-source:
override_dh_auto_test:
./run_tests.sh -N
get-vcs-source:
git remote add upstream git://github.com/openstack/$(DEBPKGNAME).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