ci: Added Ubuntu packaging.
authorEd Bartosh <eduard.bartosh@intel.com>
Fri, 20 Jul 2012 07:19:07 +0000 (10:19 +0300)
committerLingchaoX Xin <lingchaox.xin@intel.com>
Wed, 25 Jul 2012 06:34:59 +0000 (14:34 +0800)
Change-Id: I56f5bbe4a9dea255590a8248b024ff275d11f063

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0644]
distfiles/gbs.spec
packaging/Makefile [new file with mode: 0644]
packaging/gbs.dsc [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..5a6e9df
--- /dev/null
@@ -0,0 +1,85 @@
+gbs (0.7) unstable; urgency=high
+
+  * Add binfmt-support depend for arm build support
+  * print the detail path of binaries RPM packages
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Wed, 6 Jun  2012 10:56:15 +0800
+
+gbs (0.6.3) unstable; urgency=high
+
+  * Add binfmt-support depend for arm build support
+  * print the detail path of binaries RPM packages
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Mon, 4 Jun  2012 10:56:15 +0800
+
+gbs (0.6.2) unstable; urgency=high
+
+  * remove extra output information for gbs build
+  * dont need sudo before gbs build
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Fri, 1 Jun  2012 10:56:15 +0800
+
+gbs (0.6) unstable; urgency=high
+
+  * Upgrade to gbs v0.6, which contains the following features:
+    * subcommand renamed:
+      * build => remotebuild
+      * localbuild => build
+    * Update tizen*1.0.conf to fix build issue for tizen.org repo
+    * Code clean up:
+      * remove useless data/build.sh
+      * remove _fall_to_shell related code
+    * Add --ccache and --incremental options for gbs 'build'
+    * fix default build server api issue.
+    * fix git archive issue for zip format
+    * more error handling support
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Sat, 12 May 2012 10:56:15 +0800
+
+gbs (0.5) unstable; urgency=high
+
+  * Upgrade to gbs v0.5, which contains the following features:
+    * arm local build supported on ubuntu 10.04/10.10
+    * use sudo to run localbuild to fix proxy issue while using
+      tsocks. examples: $ sudo tsocks gbs localbuild
+    * fix permission issue while parsing specfile.
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Fri, 13 Apr 2012 10:56:15 +0800
+
+gbs (0.4) unstable; urgency=high
+
+  * Upgrade to gbs v0.4, which contains the following features:
+    * gbs localbuild/build: more archive tar ball format support
+    * unittest added:
+      * gbs help unit test
+      * utils/guess_version for tar ball unit test
+      * spec file parser module unit test
+    * Add arch check for gbs local build
+    * Raise obs error if Base project is empty
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Thu, 5 Apr 2012 10:56:15 +0800
+
+gbs (0.3) unstable; urgency=high
+
+  * Upgrade to gbs v0.3, which contains the following features:
+    * gbs localbuild support
+    * gbs import support, which support importing src.rpm and spec
+    * gbs import-orig support, which can used to update packages
+    * More information can be avaliable from 'man gbs'
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Fri, 2 Feb 2012 10:56:15 +0800
+
+gbs (0.2) unstable; urgency=high
+
+  * Update to latest stable release version 2.0.
+    * New gbs build: build rpm package from git repository on OBS
+    * New build service module to interact with OBS
+    * New git module to wrap local git command
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com>  Fri, 2 Feb 2012 10:56:15 +0800
+
+gbs (0.1) unstable; urgency=high
+
+  * Initial release
+
+ -- Jian-feng Ding <jian-feng.ding@intel.com>  Fri, 2 Dec 2011 10:56:15 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..7488b25
--- /dev/null
@@ -0,0 +1,22 @@
+Source: gbs
+Section: devel
+Priority: extra
+Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
+Build-Depends: debhelper (>= 7.0.15), python-dev, dpatch, cdbs,
+Standards-Version: 3.8.0
+Homepage: http://www.tizen.org
+
+Package: gbs
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+ git-core,
+ osc (>= 0.131),
+ build (>= 2012.07.20),
+ rpm,
+ qemu-arm-static (>= 0.14.1) | qemu-user-static,
+ binfmt-support,
+ sudo,
+ git-buildpackage-rpm
+Description: The command line tools for Tizen package developers
+  The command line tools for Tizen package developers will
+  be used to do packaging related tasks.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..6f4f4b5
--- /dev/null
@@ -0,0 +1,40 @@
+This work was packaged for Debian by:
+
+    Ding Jianfeng <jian-feng.ding@intel.com> on Fri, 02 Dec 2011 13:00:35 +0800
+
+It was downloaded from:
+
+    http://www.tizen.org
+
+Upstream Authors:
+
+    Intel Inc.
+
+Copyright:
+
+    Copyright (C) 2011 Intel Inc.
+
+Copyright for gitbuildsys/cmdln.py:
+
+    Copyright (C) 2002-2005 ActiveState Corp.
+    Copyright (C) Trent Mick <trentm@activestate.com>
+
+    MIT License
+
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the "Software"), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
+
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..a1320b1
--- /dev/null
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100644 (file)
index 0000000..c1f1589
--- /dev/null
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+build: build-stamp
+build-stamp: patch-stamp
+       dh_testdir
+       python setup.py build
+
+clean: unpatch
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       # Installing package
+       mkdir -p $(CURDIR)/debian/gbs $(CURDIR)/debian/gbs/usr/bin $(CURDIR)/debian/gbs/usr/share/man/man1
+       #install -m644 doc/gbs.1 $(CURDIR)/debian/gbs/usr/share/man/man1
+       #make DESTDIR=$(CURDIR)/debian/gbs installman
+       #make DESTDIR=$(CURDIR)/debian/gbs installconf
+       #make DESTDIR=$(CURDIR)/debian/gbs installsymlinks
+       python setup.py install --root=$(CURDIR)/debian/gbs --prefix=/usr --install-layout=deb
+
+binary-indep: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_install
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
index b7bf9c7..84bce45 100644 (file)
@@ -7,7 +7,7 @@ Group:      Development/Tools
 License:    GPLv2
 BuildArch:  noarch
 URL:        http://www.tizen.org
-Source0:    %{name}-%{version}.tar.bz2
+Source0:    %{name}_%{version}.tar.gz
 Requires:   python >= 2.5
 Requires:   python-pycurl
 Requires:   git-core
diff --git a/packaging/Makefile b/packaging/Makefile
new file mode 100644 (file)
index 0000000..e551197
--- /dev/null
@@ -0,0 +1,14 @@
+PKG_NAME := gbs
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
+
+TARBALL := $(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+dsc:
+       @sed  -i 's/ [a-f0-9]\+ [0-9]\+ $(TARBALL)/ $(shell md5sum $(TARBALL) | sed "s/  / $(shell stat -c '%s' $(TARBALL)) /")/' $(PKG_NAME).dsc
+
+tarball:
+       @cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
+               | gzip > packaging/$(TARBALL)
+
+all: tarball dsc
diff --git a/packaging/gbs.dsc b/packaging/gbs.dsc
new file mode 100644 (file)
index 0000000..0b46538
--- /dev/null
@@ -0,0 +1,10 @@
+Format: 1.0
+Source: gbs
+Version: 0.7
+Binary: gbs
+Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
+Architecture: all
+Standards-Version: 3.7.1
+Build-Depends: debhelper (>= 4.0.0), python-dev, dpatch, cdbs
+Files:
+ 99d10f17b7021d4dac4bd55c2314c195 57387 gbs_0.7.tar.gz