aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorThomas Goirand <thomas@goirand.fr>2012-12-17 10:55:53 +0000
committerThomas Goirand <thomas@goirand.fr>2012-12-17 10:56:23 +0000
commit94b4dccb285342cab3831603647625d52f96fab9 (patch)
treeeba1fbfd87a8b102c472601b96dbdc692b70c1a9 /debian
parent9836e013b4494b5e320c81ec4e3f766522639be2 (diff)
downloadfactory-boy-94b4dccb285342cab3831603647625d52f96fab9.tar
factory-boy-94b4dccb285342cab3831603647625d52f96fab9.tar.gz
Switching to openstack-pkg-tools packaging.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog1
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules19
3 files changed, 5 insertions, 17 deletions
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 <zigo@debian.org> 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) <loic@debian.org>,
Thomas Goirand <zigo@debian.org>,
Ghe Rivero <ghe.rivero@stackops.com>,
Mehdi Abaakouk <sileht@sileht.net>
-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