add debian for gerrithooks-plugins spin_devel
authorwei12.jiang <wei12.jiang@samsung.com>
Wed, 22 Feb 2017 04:26:27 +0000 (12:26 +0800)
committerwei12.jiang <wei12.jiang@samsung.com>
Tue, 28 Feb 2017 08:24:53 +0000 (16:24 +0800)
Change-Id: If4ca05a45755d67a70d0f150c18d150f25b1b760
Signed-off-by: wei12.jiang <wei12.jiang@samsung.com>
debian/add_reviewers.conf [new file with mode: 0755]
debian/changelog [new file with mode: 0755]
debian/compat [new file with mode: 0755]
debian/control [new file with mode: 0755]
debian/gerrithooks-plugins.install [new file with mode: 0755]
debian/rules [new file with mode: 0755]

diff --git a/debian/add_reviewers.conf b/debian/add_reviewers.conf
new file mode 100755 (executable)
index 0000000..a4acbdd
--- /dev/null
@@ -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 (executable)
index 0000000..fcb936c
--- /dev/null
@@ -0,0 +1,5 @@
+gerrithooks-plugins (0.1.0) unstable; urgency=low
+
+  * add debian
+
+ -- Wei Jiang <wei12.jiang@intel.com>  Mon, 20 Feb 2017 09:28:48 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100755 (executable)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100755 (executable)
index 0000000..5325f5c
--- /dev/null
@@ -0,0 +1,14 @@
+Source: gerrithooks-plugins
+Section: devel
+Priority: extra
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+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 (executable)
index 0000000..25495d1
--- /dev/null
@@ -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 (executable)
index 0000000..a22fe15
--- /dev/null
@@ -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