From: wei12.jiang Date: Wed, 22 Feb 2017 04:26:27 +0000 (+0800) Subject: add debian for gerrithooks-plugins X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8a5a90a6b39384d8e658a311012690c06531282;p=services%2Fgerrithooks-plugins.git add debian for gerrithooks-plugins Change-Id: If4ca05a45755d67a70d0f150c18d150f25b1b760 Signed-off-by: wei12.jiang --- diff --git a/debian/add_reviewers.conf b/debian/add_reviewers.conf new file mode 100755 index 0000000..a4acbdd --- /dev/null +++ b/debian/add_reviewers.conf @@ -0,0 +1,31 @@ +; Don't forget to define information about your Gerrit server +; [gerrit] +; url = https://review.example.org/gerrit/ +; username = +; password = + +[add_reviewers] +; set to True if you want to try things, without really adding +dry_run = True + +[add_reviewers_rule_example] +; Enable rule +enabled=0 +; Warning: if multiple criteria specified in one rule, all must match +; Match project name +project_regexp=^platform +; Match change's branch name +branch_regexp=^master$ +; Match if some files are changed +file_regexp=^packaging/.+ +; Match author email or real name (Warning: case insensitive!) +author_regexp=^john.doe@ +; +; if all above criteria match, let's add following reviewers: +; +; List of people (email, username or real name) +reviewer=user1, user2 +; List of groups +reviewer_group=Release Engineers, SDK - Architects +; Groups from project permissions +project_groups_regexp=.+- (Maintainers|Integrators|Reviewers) diff --git a/debian/changelog b/debian/changelog new file mode 100755 index 0000000..fcb936c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +gerrithooks-plugins (0.1.0) unstable; urgency=low + + * add debian + + -- Wei Jiang Mon, 20 Feb 2017 09:28:48 +0100 diff --git a/debian/compat b/debian/compat new file mode 100755 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100755 index 0000000..5325f5c --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: gerrithooks-plugins +Section: devel +Priority: extra +Maintainer: Ubuntu Developers +Build-Depends: debhelper (>= 5.0.37.2), python-dev, python-setuptools +Standards-Version: 0 +Homepage: http://download.tizen.org/tools + +Package: gerrithooks-plugins +Architecture: all +Depends: python-dev, python-setuptools, gerritrest +Description: Expandable Gerrit hooks framework + Framework to plug several extentions into Gerrit Hooks + diff --git a/debian/gerrithooks-plugins.install b/debian/gerrithooks-plugins.install new file mode 100755 index 0000000..25495d1 --- /dev/null +++ b/debian/gerrithooks-plugins.install @@ -0,0 +1,4 @@ +README.rst /usr/share/doc/packages/gerrithooks-plugins +debian/add_reviewers.conf /usr/share/doc/packages/gerrithooks-plugins +usr/lib/python2.7/site-packages/gerrithooks_plugins/* /usr/lib/python2.7/site-packages/gerrithooks_plugins +usr/lib/python2.7/site-packages/gerrithooks_plugins-0.1.0-py2.7.egg-info/* /usr/lib/python2.7/site-packages/gerrithooks_plugins-0.1.0-py2.7.egg-info \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a22fe15 --- /dev/null +++ b/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build:build-stamp +build-stamp: + dh_testdir + python setup.py build + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py install --prefix=/usr --root=$(CURDIR) + +binary-indep:build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_python2 + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install