From c94857ef5efcac75ef78dc15996718f6b96ebe04 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 20 Jul 2012 10:19:07 +0300 Subject: [PATCH] ci: Added Ubuntu packaging. Change-Id: I56f5bbe4a9dea255590a8248b024ff275d11f063 --- debian/changelog | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 22 ++++++++++++++ debian/copyright | 40 +++++++++++++++++++++++++ debian/docs | 1 + debian/rules | 52 +++++++++++++++++++++++++++++++++ distfiles/gbs.spec | 2 +- packaging/Makefile | 14 +++++++++ packaging/gbs.dsc | 10 +++++++ 9 files changed, 226 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/rules create mode 100644 packaging/Makefile create mode 100644 packaging/gbs.dsc diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5a6e9df --- /dev/null +++ b/debian/changelog @@ -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 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 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 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 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 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 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 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 Fri, 2 Feb 2012 10:56:15 +0800 + +gbs (0.1) unstable; urgency=high + + * Initial release + + -- Jian-feng Ding Fri, 2 Dec 2011 10:56:15 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7488b25 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: gbs +Section: devel +Priority: extra +Maintainer: Jian-feng Ding +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 index 0000000..6f4f4b5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,40 @@ +This work was packaged for Debian by: + + Ding Jianfeng 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 + + 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 index 0000000..a1320b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..c1f1589 --- /dev/null +++ b/debian/rules @@ -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 diff --git a/distfiles/gbs.spec b/distfiles/gbs.spec index b7bf9c7..84bce45 100644 --- a/distfiles/gbs.spec +++ b/distfiles/gbs.spec @@ -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 index 0000000..e551197 --- /dev/null +++ b/packaging/Makefile @@ -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 index 0000000..0b46538 --- /dev/null +++ b/packaging/gbs.dsc @@ -0,0 +1,10 @@ +Format: 1.0 +Source: gbs +Version: 0.7 +Binary: gbs +Maintainer: Jian-feng Ding +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 -- 2.7.4