summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorEd Bartosh <eduard.bartosh@intel.com>2012-05-24 16:16:12 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-05 14:20:05 +0300
commitbb0241a66d6f2d46bf990bec48fc7728df2ef8b4 (patch)
treedb048e35722a4960142a40ee1e003e8c07554e58 /debian
parent9f1a9e6a421f7c1d7543764b7e43d254df5b6205 (diff)
downloadgit-buildpackage-bb0241a66d6f2d46bf990bec48fc7728df2ef8b4.tar.gz
git-buildpackage-bb0241a66d6f2d46bf990bec48fc7728df2ef8b4.tar.bz2
git-buildpackage-bb0241a66d6f2d46bf990bec48fc7728df2ef8b4.zip
debian packaging: split Debian package into subpackages
Split Debian package into three packages, following the introduction of RPM tools. Now the Debian packaging resembles the default RPM packaging: - 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 Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/control39
-rw-r--r--debian/git-buildpackage-common.doc-base (renamed from debian/doc-base)4
-rw-r--r--debian/git-buildpackage-common.docs (renamed from debian/docs)0
-rw-r--r--debian/git-buildpackage-common.examples (renamed from debian/examples)0
-rw-r--r--debian/git-buildpackage-common.install13
-rw-r--r--debian/git-buildpackage-common.links1
-rw-r--r--debian/git-buildpackage-common.manpages5
-rw-r--r--debian/git-buildpackage-rpm.install3
-rw-r--r--debian/git-buildpackage.install16
-rw-r--r--debian/git-buildpackage.manpages8
-rw-r--r--debian/manpages2
-rwxr-xr-xdebian/rules5
12 files changed, 85 insertions, 11 deletions
diff --git a/debian/control b/debian/control
index c29d6ebc..7964b5c3 100644
--- a/debian/control
+++ b/debian/control
@@ -32,20 +32,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,
-# For rpm
- python-rpm,
- rpm2cpio
-Recommends: pristine-tar (>= 0.5), cowbuilder
+ python-pkg-resources
+Recommends: pristine-tar (>= 0.5)
Suggests: python-notify, unzip
+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
@@ -57,3 +65,20 @@ Description: Suite to help with Debian packages in Git repositories
* gbp {pull,clone}: clone and pull from remote repos
* gbp pq: manage debian/patches easily
* gbp create-remote-repo: create remote repositories
+
+Package: git-buildpackage-rpm
+Architecture: all
+Depends: ${python:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends},
+ python-rpm,
+ rpm2cpio,
+ git-buildpackage-common (= ${binary:Version})
+Description: Suite to help with rpm packages in Git repositories
+ This package contains the following tools:
+ * git-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
index a7d60d01..b377b272 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
index ce06068d..ce06068d 100644
--- a/debian/docs
+++ b/debian/git-buildpackage-common.docs
diff --git a/debian/examples b/debian/git-buildpackage-common.examples
index e39721e2..e39721e2 100644
--- a/debian/examples
+++ b/debian/git-buildpackage-common.examples
diff --git a/debian/git-buildpackage-common.install b/debian/git-buildpackage-common.install
new file mode 100644
index 00000000..5283d546
--- /dev/null
+++ b/debian/git-buildpackage-common.install
@@ -0,0 +1,13 @@
+usr/bin/gbp
+usr/bin/gbp-clone
+usr/bin/gbp-pull
+usr/lib/python*/dist-packages/gbp/*.py*
+usr/lib/python*/dist-packages/gbp/scripts/__init__.py*
+usr/lib/python*/dist-packages/gbp/scripts/clone.py*
+usr/lib/python*/dist-packages/gbp/scripts/config.py*
+usr/lib/python*/dist-packages/gbp/scripts/pull.py*
+usr/lib/python*/dist-packages/gbp/scripts/supercommand.py*
+usr/lib/python*/dist-packages/gbp/scripts/common/*.py*
+usr/lib/python*/dist-packages/gbp/git/*.py*
+usr/lib/python*/dist-packages/gbp/pkg/*.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
new file mode 100644
index 00000000..8c49491e
--- /dev/null
+++ b/debian/git-buildpackage-rpm.install
@@ -0,0 +1,3 @@
+usr/bin/*rpm*
+usr/lib/python*/dist-packages/gbp/rpm/*.py*
+usr/lib/python*/dist-packages/gbp/scripts/*rpm*.py*
diff --git a/debian/git-buildpackage.install b/debian/git-buildpackage.install
new file mode 100644
index 00000000..7a276d7e
--- /dev/null
+++ b/debian/git-buildpackage.install
@@ -0,0 +1,16 @@
+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/python*/dist-packages/gbp/deb/*.py*
+usr/lib/python*/dist-packages/gbp/scripts/pq.py*
+usr/lib/python*/dist-packages/gbp/scripts/buildpackage.py*
+usr/lib/python*/dist-packages/gbp/scripts/dch.py*
+usr/lib/python*/dist-packages/gbp/scripts/import_dsc.py*
+usr/lib/python*/dist-packages/gbp/scripts/import_dscs.py*
+usr/lib/python*/dist-packages/gbp/scripts/import_orig.py*
+usr/lib/python*/dist-packages/gbp/scripts/create_remote_repo.py*
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