packaging: add Debian packaging
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 18 Dec 2012 11:56:39 +0000 (13:56 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 11 Jun 2014 14:48:02 +0000 (17:48 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/librpm-tizen.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..25e1af1
--- /dev/null
@@ -0,0 +1,6 @@
+librpm-tizen (4.10.91.tizen20121215) unstable; urgency=low
+
+  * Initial packaging
+
+ -- Markus Lehtonen <markus.lehtonen@linux.intel.com>  Tue, 17 Dec 2012 13:22:00 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..300fef5
--- /dev/null
@@ -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 <markus.lehtonen@linux.intel.com>
+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 (file)
index 0000000..78f09f7
--- /dev/null
@@ -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 (executable)
index 0000000..a1fdc32
--- /dev/null
@@ -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
+