Now using openstack-pkg-tools in debian/rules
This commit is contained in:
1
debian/control
vendored
1
debian/control
vendored
@@ -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
18
debian/rules
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user