From: Zhang Qiang Date: Thu, 3 Jul 2014 01:57:30 +0000 (+0800) Subject: Add packaging files (deb) X-Git-Tag: submit/devel/20190730.074505~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Frelease-test-0.1;p=tools%2Fdeltarpm.git Add packaging files (deb) Change-Id: Ie09a97c1b8a9c1d0cc79e8e607865f1f3998f62e --- diff --git a/.gbp.conf b/.gbp.conf new file mode 100644 index 0000000..d207f4f --- /dev/null +++ b/.gbp.conf @@ -0,0 +1,15 @@ +[DEFAULT] +upstream-tag = upstream/%(version)s +patch-export = True +patch-export-ignore-path = (.gbp.conf|.gbs.conf|packaging/.*|debian/.*|.gitignore) +packaging-dir = packaging + +[git-buildpackage] +upstream-tag = upstream/%(version)s +packaging-dir = packaging + +[git-dch] +upstream-tag = upstream/%(version)s + +[gbp-pq-rpm] +pq-branch = patch-queue/%(branch)s diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..63686e0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +deltarpm (3.5.git) unstable; urgency=low + + * First cut for ubuntu + + -- Gui Chen Wed, 1 Aug 2012 09:28:48 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..68a8455 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: deltarpm +Section: admin +Priority: optional +Maintainer: Gui Chen +Build-Depends: debhelper (>= 4.0.0), dpatch, cdbs, python-dev, python-support, libbz2-dev, librpm-dev, liblzma-dev +Standards-Version: 3.7.3 +Homepage: ftp://ftp.suse.com/pub/projects/deltarpm + +Package: deltarpm +Architecture: any +Depends: ${python:Depends}, python-rpm, rpm (>= 4.1.1) +Description: This package contains tools to create and apply deltarpms. A deltarpm contains the difference between an old and a new version of an RPM, which makes it possible to recreate the new RPM from the deltarpm and the old one. You do not need to have a copy of the old RPM, because deltarpms can also work with installed RPMs. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..aa8c994 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,43 @@ +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +The library (dumpMetadata.py, genpkgmetadata.py and readMetadata.py) is +released under terms of GNU Lesser General Public License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + + +The Debian packaging is (C) 2006, Adam Cécile (Le_Vert) +and is licensed under the GPL, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..57a7586 --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.3- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fa83201 --- /dev/null +++ b/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make +unexport LDFLAGS + +build: + dh_testdir + + $(MAKE) CC="gcc" + $(MAKE) CC="gcc" python + +clean: + dh_testdir + dh_testroot + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/deltarpm prefix=/usr mandir=/usr/share/man/man1 install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman + dh_pysupport + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install diff --git a/rpm/.stage b/rpm/.stage new file mode 100644 index 0000000..e69de29