From: Ed Bartosh Date: Thu, 24 May 2012 13:16:12 +0000 (+0300) Subject: debian packaging: introduce -common subpackage X-Git-Tag: tizen/0.6.22-20150206~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc30d408b984555489e3466c2eb2b0d3212219a0;p=tools%2Fgit-buildpackage.git 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 --- diff --git a/debian/control b/debian/control index e9cc893..c7347fa 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/git-buildpackage-common.doc-base similarity index 69% rename from debian/doc-base rename to debian/git-buildpackage-common.doc-base index a7d60d0..b377b27 100644 --- a/debian/doc-base +++ b/debian/git-buildpackage-common.doc-base @@ -7,5 +7,5 @@ Abstract: git-buildpackage is a suite to help with Debian packages in Git Section: Programming Format: HTML -Index: /usr/share/doc/git-buildpackage/manual-html/index.html -Files: /usr/share/doc/git-buildpackage/manual-html/*.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/docs b/debian/git-buildpackage-common.docs similarity index 100% rename from debian/docs rename to debian/git-buildpackage-common.docs diff --git a/debian/examples b/debian/git-buildpackage-common.examples similarity index 100% rename from debian/examples rename to debian/git-buildpackage-common.examples diff --git a/debian/git-buildpackage-common.install b/debian/git-buildpackage-common.install new file mode 100644 index 0000000..722eab6 --- /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 0000000..e74ac0b --- /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 0000000..3280f63 --- /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 67c0309..f243ebb 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 1a25e1d..291cb15 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 0000000..fc93745 --- /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 09c93b1..0000000 --- a/debian/manpages +++ /dev/null @@ -1,2 +0,0 @@ -docs/*.1 -docs/*.5 diff --git a/debian/rules b/debian/rules index a80bd52..3584c7a 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