From: Ed Bartosh Date: Thu, 28 Mar 2013 16:19:39 +0000 (+0200) Subject: Moved gbs APIs to separate package X-Git-Tag: 0.15~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f14b8ed8b59262fe3ea03098512bfb80c8c44244;p=tools%2Fgbs.git Moved gbs APIs to separate package gbs APIs can be used by external software, so it's better to have them separated. It would make them installable without the need to install gbs with a lot of dependencies. Change-Id: I5ae0332973d89c552e5865217c1e0198e3497722 Signed-off-by: Ed Bartosh --- diff --git a/debian/control b/debian/control index f84aa05..fcce369 100644 --- a/debian/control +++ b/debian/control @@ -14,9 +14,22 @@ Depends: ${misc:Depends}, ${python:Depends}, sudo, osc (>= 0.139.0), git-buildpackage-rpm (>= 0.6.0git20121124-tizen20130308), + gbs-api (= ${binary:Version}), depanneur (>= 0.6), pristine-tar (>= 1.26) Recommends: librpm-tizen (>= 4.11.0.1.tizen20130304-tizen20130307) 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. + The command line tools for Tizen package developers will + be used to do packaging related tasks. + +Package: gbs-api +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, + python-pycurl, + osc (>= 0.139.0), + git-buildpackage-rpm +Conflicts: gbs (<< 0.15) +Replaces: gbs (<< 0.15) +Description: GBS API + This package contains gbs APIs, which can be used by + external software. diff --git a/debian/docs b/debian/docs index a1320b1..8f07824 100644 --- a/debian/docs +++ b/debian/docs @@ -1 +1,2 @@ README.rst +docs/RELEASE_NOTES diff --git a/debian/rules b/debian/rules index c7bb7d1..0ebbd6f 100644 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -GBS =$(shell pwd)/debian/gbs +GBS =$(shell pwd)/debian/tmp build: build-stamp build-stamp: dh_testdir diff --git a/distfiles/gbs.spec b/distfiles/gbs.spec index fbbef1d..d15342f 100644 --- a/distfiles/gbs.spec +++ b/distfiles/gbs.spec @@ -23,6 +23,7 @@ Requires: python-argparse %if ! 0%{?tizen_version:1} Requires: librpm-tizen >= 4.11.0.1.tizen20130304-tizen20130307 %endif +Requires: %{name}-api = %{version} BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -31,6 +32,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build The command line tools for Tizen package developers will be used to do packaging related tasks. +%package api +Summary: GBS APIs +Conflicts: gbs < 0.15 +Requires: python +Requires: python-pycurl +Requires: osc >= 0.139.0 +Requires: git-buildpackage-rpm + +%description api +This package contains gbs APIs, which can be used by +external software. %prep %setup -q -n %{name}-%{version} @@ -57,6 +69,19 @@ install -pm 644 data/gbs-completion.bash %{buildroot}%{_sysconfdir}/bash_complet %defattr(-,root,root,-) %doc README.rst docs/RELEASE_NOTES #%{_mandir}/man1/* -%{python_sitelib}/* +%{python_sitelib}/gitbuildsys/cmd_*.py* +%{python_sitelib}/gitbuildsys/conf.py* +%{python_sitelib}/gitbuildsys/parsing.py* %{_bindir}/* %{_sysconfdir}/bash_completion.d + +%files api +%defattr(-,root,root,-) +%dir %{python_sitelib}/gitbuildsys +%{python_sitelib}/gitbuildsys/__init__.py* +%{python_sitelib}/gitbuildsys/oscapi.py* +%{python_sitelib}/gitbuildsys/errors.py* +%{python_sitelib}/gitbuildsys/log.py* +%{python_sitelib}/gitbuildsys/safe_url.py* +%{python_sitelib}/gitbuildsys/utils.py* +%{python_sitelib}/gbs-*-py*.egg-info diff --git a/packaging/gbs.dsc b/packaging/gbs.dsc index 39a574b..cb92394 100644 --- a/packaging/gbs.dsc +++ b/packaging/gbs.dsc @@ -1,7 +1,7 @@ Format: 1.0 Source: gbs Version: 0.15 -Binary: gbs +Binary: gbs, gbs-api Maintainer: Jian-feng Ding Architecture: all Standards-Version: 3.7.1