From ff18f94a0e1ad4a50b9308823b3633f9dd92db26 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 18 Dec 2012 13:56:39 +0200 Subject: [PATCH] packaging: add Debian packaging Signed-off-by: Markus Lehtonen --- debian/changelog | 6 ++++++ debian/compat | 1 + debian/control | 46 +++++++++++++++++++++++++++++++++++++++++++++ debian/librpm-tizen.install | 4 ++++ debian/rules | 28 +++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/librpm-tizen.install create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..25e1af1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +librpm-tizen (4.10.91.tizen20121215) unstable; urgency=low + + * Initial packaging + + -- Markus Lehtonen Tue, 17 Dec 2012 13:22:00 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..300fef5 --- /dev/null +++ b/debian/control @@ -0,0 +1,46 @@ +Source: librpm-tizen +Section: vcs +Priority: optional +Build-Depends: debhelper, + dpkg-dev, + dh-autoreconf, + libtool, + autoconf, + automake, + autotools-dev, + autopoint, + zlib1g-dev, + libpopt-dev, + libxml2-dev, + libreadline-dev, + libsqlite3-dev, + python-all-dev, + pkg-config, + libnspr4-dev, + libnss3-dev, + liblzma-dev, + libmagic-dev, + libelf-dev, + libdw-dev, + libdb-dev +Maintainer: Markus Lehtonen +Standards-Version: 3.9.3 +Homepage: http://rpm.org/ +X-Python-Version: >= 2.6 + +Package: librpm-tizen +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Description: The RPM libraries for git-buildpackage + RPM Package Manager is the main tool for managing the software packages + of Tizen. + . + RPM can be used to install and remove software packages. With rpm, it + is easy to update packages. RPM keeps track of all these manipulations + in a central database.»·This way it is possible to get an overview of + all installed packages. RPM also supports database queries. + . + This is a special stripped-down version of RPM, only intended to be used by the + git-buildpackage tool. Doesn't interfere with the RPM libraries of the host system. + This package only contains rpmlib and rpm-python. + diff --git a/debian/librpm-tizen.install b/debian/librpm-tizen.install new file mode 100644 index 0000000..78f09f7 --- /dev/null +++ b/debian/librpm-tizen.install @@ -0,0 +1,4 @@ +usr/lib*/*/*.so.* +usr/lib*/*/rpm/* +usr/lib/python*/dist-packages/*/*.so +usr/lib/python*/dist-packages/*/*.py* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a1fdc32 --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +python_mod_name := rpm_tizen + +CPPFLAGS += $(shell pkg-config --cflags nss) + +%: + dh $@ --with python2,autoreconf,autotools_dev + +override_dh_auto_configure: + dh_auto_configure -- --disable-dependency-tracking \ + --libdir=/usr/lib/librpm-tizen \ + --without-lua \ + --without-acl \ + --without-cap \ + --enable-shared \ + --enable-python \ + --with-external-db \ + --build=${DEB_BUILD_GNU_CPU}-tizen-linux \ + PYTHON_MODULENAME=$(python_mod_name) \ + CPPFLAGS="$(CPPFLAGS)" + +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp + +override_dh_python2: + dh_python2 --no-guessing-versions + -- 2.7.4