From fc30d408b984555489e3466c2eb2b0d3212219a0 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 24 May 2012 16:16:12 +0300 Subject: debian packaging: introduce -common subpackage Split the git-buildpackage into git-buildpackage and git-buildpackage-common. Now there are three binary packages: - git-buildpackage-common contains the common code for Deb and RPM tools - git-buildpackage contains the Debian-specific modules/tools - git-buildpackage-rpm contains the RPM-specific modules/tools After this change the Debian packaging resembles the RPM side packaging. Signed-off-by: Zhang Qiang Signed-off-by: Ed Bartosh Signed-off-by: Markus Lehtonen --- debian/control | 27 ++++++++++++++++++++------- debian/doc-base | 11 ----------- debian/docs | 3 --- debian/examples | 1 - debian/git-buildpackage-common.doc-base | 11 +++++++++++ debian/git-buildpackage-common.docs | 3 +++ debian/git-buildpackage-common.examples | 1 + debian/git-buildpackage-common.install | 24 ++++++++++++++++++++++++ debian/git-buildpackage-common.links | 1 + debian/git-buildpackage-common.manpages | 5 +++++ debian/git-buildpackage-rpm.install | 2 +- debian/git-buildpackage.install | 30 ++++++++---------------------- debian/git-buildpackage.manpages | 8 ++++++++ debian/manpages | 2 -- debian/rules | 5 +++++ 15 files changed, 87 insertions(+), 47 deletions(-) delete mode 100644 debian/doc-base delete mode 100644 debian/docs delete mode 100644 debian/examples create mode 100644 debian/git-buildpackage-common.doc-base create mode 100644 debian/git-buildpackage-common.docs create mode 100644 debian/git-buildpackage-common.examples create mode 100644 debian/git-buildpackage-common.install create mode 100644 debian/git-buildpackage-common.links create mode 100644 debian/git-buildpackage-common.manpages create mode 100644 debian/git-buildpackage.manpages delete mode 100644 debian/manpages (limited to 'debian') diff --git a/debian/control b/debian/control index e9cc8932..c7347fa6 100644 --- a/debian/control +++ b/debian/control @@ -33,17 +33,28 @@ Vcs-Browser: https://honk.sigxcpu.org/gitweb/?p=git-buildpackage.git Homepage: https://honk.sigxcpu.org/piki/projects/git-buildpackage/ X-Python-Version: >= 2.6 -Package: git-buildpackage + +Package: git-buildpackage-common Architecture: all Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, - devscripts (>= 2.13.5~), git (>= 1:1.7.9.1-1~), man-db, - python-pkg-resources, -Recommends: pristine-tar (>= 0.5), cowbuilder + python-pkg-resources +Recommends: pristine-tar (>= 0.5) Suggests: python-notify, unzip, zipmerge +Description: Suite to help with packaging in Git repositories + This package contains the common API and scripts for Debian and rpm packaging + +Package: git-buildpackage +Architecture: all +Depends: ${python:Depends}, + ${shlibs:Depends}, + ${misc:Depends}, + devscripts (>= 2.13.5~), + git-buildpackage-common (= ${binary:Version}) +Recommends: cowbuilder Description: Suite to help with Debian packages in Git repositories This package contains the following tools: * gbp import-{dsc,dscs}: import existing Debian source packages into a git @@ -60,12 +71,14 @@ Package: git-buildpackage-rpm Architecture: all Depends: ${python:Depends}, ${misc:Depends}, - git-buildpackage (= ${binary:Version}), + git-buildpackage-common (= ${binary:Version}), python-rpm, rpm, -Recommends: pristine-tar (>= 0.5) -Suggests: python-notify, unzip Description: Suite to help with RPM packages in Git repositories This package contains the following tools: * gbp import-srpm: import existing RPM source packages into a git repository + * git-import-orig-rpm: import a new upstream version into the git repository + * git-buildpackage-rpm: build a package out of a git repository, check for local + modifications and tag appropriately + * gbp-pq-rpm: manage separate development and packaging branches diff --git a/debian/doc-base b/debian/doc-base deleted file mode 100644 index a7d60d01..00000000 --- a/debian/doc-base +++ /dev/null @@ -1,11 +0,0 @@ -Document: git-buildpackage -Title: Git-Buildpackage Manual -Author: Guido Guenther -Abstract: git-buildpackage is a suite to help with Debian packages in Git - repositories. This manual describes the utilities in this package, their - configuration and possible workflows. -Section: Programming - -Format: HTML -Index: /usr/share/doc/git-buildpackage/manual-html/index.html -Files: /usr/share/doc/git-buildpackage/manual-html/*.html diff --git a/debian/docs b/debian/docs deleted file mode 100644 index ce06068d..00000000 --- a/debian/docs +++ /dev/null @@ -1,3 +0,0 @@ -README -docs/manual-html/ -build/apidocs/ diff --git a/debian/examples b/debian/examples deleted file mode 100644 index e39721e2..00000000 --- a/debian/examples +++ /dev/null @@ -1 +0,0 @@ -examples/* diff --git a/debian/git-buildpackage-common.doc-base b/debian/git-buildpackage-common.doc-base new file mode 100644 index 00000000..b377b272 --- /dev/null +++ b/debian/git-buildpackage-common.doc-base @@ -0,0 +1,11 @@ +Document: git-buildpackage +Title: Git-Buildpackage Manual +Author: Guido Guenther +Abstract: git-buildpackage is a suite to help with Debian packages in Git + repositories. This manual describes the utilities in this package, their + configuration and possible workflows. +Section: Programming + +Format: HTML +Index: /usr/share/doc/git-buildpackage-common/manual-html/index.html +Files: /usr/share/doc/git-buildpackage-common/manual-html/*.html diff --git a/debian/git-buildpackage-common.docs b/debian/git-buildpackage-common.docs new file mode 100644 index 00000000..ce06068d --- /dev/null +++ b/debian/git-buildpackage-common.docs @@ -0,0 +1,3 @@ +README +docs/manual-html/ +build/apidocs/ diff --git a/debian/git-buildpackage-common.examples b/debian/git-buildpackage-common.examples new file mode 100644 index 00000000..e39721e2 --- /dev/null +++ b/debian/git-buildpackage-common.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/git-buildpackage-common.install b/debian/git-buildpackage-common.install new file mode 100644 index 00000000..722eab68 --- /dev/null +++ b/debian/git-buildpackage-common.install @@ -0,0 +1,24 @@ +usr/bin/gbp +usr/bin/gbp-clone +usr/bin/gbp-pull +usr/lib/python2.?/dist-packages/gbp-* +usr/lib/python2.?/dist-packages/gbp/command_wrappers.py +usr/lib/python2.?/dist-packages/gbp/config.py +usr/lib/python2.?/dist-packages/gbp/errors.py +usr/lib/python2.?/dist-packages/gbp/format.py +usr/lib/python2.?/dist-packages/gbp/git/ +usr/lib/python2.?/dist-packages/gbp/__init__.py +usr/lib/python2.?/dist-packages/gbp/log.py +usr/lib/python2.?/dist-packages/gbp/notifications.py +usr/lib/python2.?/dist-packages/gbp/patch_series.py +usr/lib/python2.?/dist-packages/gbp/pkg/ +usr/lib/python2.?/dist-packages/gbp/scripts/clone.py +usr/lib/python2.?/dist-packages/gbp/scripts/common/ +usr/lib/python2.?/dist-packages/gbp/scripts/config.py +usr/lib/python2.?/dist-packages/gbp/scripts/__init__.py +usr/lib/python2.?/dist-packages/gbp/scripts/pull.py +usr/lib/python2.?/dist-packages/gbp/scripts/supercommand.py +usr/lib/python2.?/dist-packages/gbp/tmpfile.py +usr/lib/python2.?/dist-packages/gbp/tristate.py +usr/lib/python2.?/dist-packages/gbp/version.py +etc/git-buildpackage/gbp.conf diff --git a/debian/git-buildpackage-common.links b/debian/git-buildpackage-common.links new file mode 100644 index 00000000..e74ac0b9 --- /dev/null +++ b/debian/git-buildpackage-common.links @@ -0,0 +1 @@ +/usr/share/doc/git-buildpackage-common/manual-html/gbp.html /usr/share/doc/git-buildpackage-common/manual-html/index.html diff --git a/debian/git-buildpackage-common.manpages b/debian/git-buildpackage-common.manpages new file mode 100644 index 00000000..3280f63c --- /dev/null +++ b/debian/git-buildpackage-common.manpages @@ -0,0 +1,5 @@ +docs/gbp.1 +docs/gbp-clone.1 +docs/gbp-config.1 +docs/gbp-pull.1 +docs/*.5 diff --git a/debian/git-buildpackage-rpm.install b/debian/git-buildpackage-rpm.install index 67c03097..f243ebb9 100644 --- a/debian/git-buildpackage-rpm.install +++ b/debian/git-buildpackage-rpm.install @@ -1,2 +1,2 @@ usr/lib/python2.?/dist-packages/gbp/rpm/ -usr/lib/python2.7/dist-packages/gbp/scripts/import_srpm.py +usr/lib/python2.?/dist-packages/gbp/scripts/*rpm*.py* diff --git a/debian/git-buildpackage.install b/debian/git-buildpackage.install index 1a25e1dc..291cb15a 100644 --- a/debian/git-buildpackage.install +++ b/debian/git-buildpackage.install @@ -1,31 +1,17 @@ -usr/bin/ -usr/lib/python2.?/dist-packages/gbp-* -usr/lib/python2.?/dist-packages/gbp/command_wrappers.py -usr/lib/python2.?/dist-packages/gbp/config.py +usr/bin/gbp-pq +usr/bin/git-buildpackage +usr/bin/git-dch +usr/bin/git-import-dsc +usr/bin/git-import-dscs +usr/bin/git-import-orig +usr/bin/git-pbuilder +usr/bin/gbp-create-remote-repo usr/lib/python2.?/dist-packages/gbp/dch.py usr/lib/python2.?/dist-packages/gbp/deb/ -usr/lib/python2.?/dist-packages/gbp/errors.py -usr/lib/python2.?/dist-packages/gbp/format.py -usr/lib/python2.?/dist-packages/gbp/git/ -usr/lib/python2.?/dist-packages/gbp/__init__.py -usr/lib/python2.?/dist-packages/gbp/log.py -usr/lib/python2.?/dist-packages/gbp/notifications.py -usr/lib/python2.?/dist-packages/gbp/patch_series.py -usr/lib/python2.?/dist-packages/gbp/pkg/ usr/lib/python2.?/dist-packages/gbp/scripts/buildpackage.py -usr/lib/python2.?/dist-packages/gbp/scripts/clone.py -usr/lib/python2.?/dist-packages/gbp/scripts/common/ -usr/lib/python2.?/dist-packages/gbp/scripts/config.py usr/lib/python2.?/dist-packages/gbp/scripts/create_remote_repo.py usr/lib/python2.?/dist-packages/gbp/scripts/dch.py usr/lib/python2.?/dist-packages/gbp/scripts/import_dsc.py usr/lib/python2.?/dist-packages/gbp/scripts/import_dscs.py usr/lib/python2.?/dist-packages/gbp/scripts/import_orig.py -usr/lib/python2.?/dist-packages/gbp/scripts/__init__.py usr/lib/python2.?/dist-packages/gbp/scripts/pq.py -usr/lib/python2.?/dist-packages/gbp/scripts/pull.py -usr/lib/python2.?/dist-packages/gbp/scripts/supercommand.py -usr/lib/python2.?/dist-packages/gbp/tmpfile.py -usr/lib/python2.?/dist-packages/gbp/tristate.py -usr/lib/python2.?/dist-packages/gbp/version.py -etc/git-buildpackage/gbp.conf diff --git a/debian/git-buildpackage.manpages b/debian/git-buildpackage.manpages new file mode 100644 index 00000000..fc937453 --- /dev/null +++ b/debian/git-buildpackage.manpages @@ -0,0 +1,8 @@ +docs/gbp-buildpackage.1 +docs/gbp-create-remote-repo.1 +docs/gbp-dch.1 +docs/gbp-import-dsc.1 +docs/gbp-import-dscs.1 +docs/gbp-import-orig.1 +docs/gbp-pq.1 +docs/git-pbuilder.1 diff --git a/debian/manpages b/debian/manpages deleted file mode 100644 index 09c93b1d..00000000 --- a/debian/manpages +++ /dev/null @@ -1,2 +0,0 @@ -docs/*.1 -docs/*.5 diff --git a/debian/rules b/debian/rules index a80bd520..3584c7a4 100755 --- a/debian/rules +++ b/debian/rules @@ -46,6 +46,11 @@ override_dh_auto_install: override_dh_auto_clean: dh_auto_clean + # Remove renamed files - renames are not correctly expressed in debian.diff + rm -f debian/doc-base + rm -f debian/docs + rm -f debian/examples + rm -f debian/manpages rm -rf build/ make -C docs/ clean -rm gbp/version.py -- cgit v1.2.3