Moved gbs APIs to separate package
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 28 Mar 2013 16:19:39 +0000 (18:19 +0200)
committerEd Bartosh <eduard.bartosh@intel.com>
Thu, 28 Mar 2013 16:19:39 +0000 (18:19 +0200)
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 <eduard.bartosh@intel.com>
debian/control
debian/docs
debian/rules
distfiles/gbs.spec
packaging/gbs.dsc

index f84aa05..fcce369 100644 (file)
@@ -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.
index a1320b1..8f07824 100644 (file)
@@ -1 +1,2 @@
 README.rst
+docs/RELEASE_NOTES
index c7bb7d1..0ebbd6f 100644 (file)
@@ -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
index fbbef1d..d15342f 100644 (file)
@@ -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
index 39a574b..cb92394 100644 (file)
@@ -1,7 +1,7 @@
 Format: 1.0
 Source: gbs
 Version: 0.15
-Binary: gbs
+Binary: gbs, gbs-api
 Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
 Architecture: all
 Standards-Version: 3.7.1