Add debian packaging for support Ubuntu distro 64/168564/3 release-20180330
authorfushuai <shuai01.fu@samsung.com>
Mon, 29 Jan 2018 08:51:47 +0000 (16:51 +0800)
committerfushuai <shuai01.fu@samsung.com>
Mon, 29 Jan 2018 09:27:55 +0000 (17:27 +0800)
Change-Id: I98653b267cc802de600af90f61d1ddf389aed2d4
Signed-off-by: fushuai <shuai01.fu@samsung.com>
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [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..37799b3
--- /dev/null
@@ -0,0 +1,6 @@
+perl-bssolv (0.28.0) unstable; urgency=low
+
+  * Add debian packaging for support Ubuntu distro
+
+ -- Shuai Fu <shuai01.fu@samsung.com> Thu, 25 Jan 2018 21:23:23 +0800
+
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..f20ffdb
--- /dev/null
@@ -0,0 +1,28 @@
+Source: perl-bssolv
+Section: devel
+Priority: extra
+Maintainer: Shuai Fu <shuai01.fu@samsung.com>
+Build-Depends: debhelper (>= 7.0.15), cdbs, libpython2.7, python-dev, python-support, python-docutils, cmake, dpatch, libbz2-dev, librpm-dev, liblzma-dev, libcurl3, libcurl4-openssl-dev, libmagic-dev, libexpat1, doxygen, pkg-config, libglib2.0-dev, libssl-dev
+Standards-Version: 0.28.0
+Homepage: http://www.tizen.org
+
+Package: perl-bssolv
+Architecture: i386 amd64
+Depends:  ${python:Depends},
+ rpm,
+ python-rpm,
+ python-urlgrabber,
+ cpio,
+ bzip2,
+ gzip,
+ python-setuptools,
+ git-core,
+ git-buildpackage-rpm,
+ python-cheetah,
+ python-redis,
+ python-requests,
+ python-snapdiff,
+ python-yaml,
+ python-lxml,
+Description: image creator for Linux distributions
+  The tool perl-bssolv is used to gbs
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..1486e87
--- /dev/null
@@ -0,0 +1,53 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       ln -s libsolv-* libsolv
+       cd /usr/src/packages/BUILD/libsolv && ls
+       export CFLAGS="-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables"
+       export CXXFLAGS="$(CFLAGS)"
+       cd libsolv && cmake -DDISABLE_SHARED=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=1 -DENABLE_RPMDB=1 -DENABLE_DEBIAN=1 -DENABLE_ARCHREPO=1 -DENABLE_LZMA_COMPRESSION=1 -DMULTI_SEMANTICS=1
+       cd libsolv/src && make
+       cd libsolv/ext && make
+       perl Makefile.PL --bundled-libsolv && make
+
+binary-indep: build install
+       dh_testdir
+       mkdir -p debian/perl-bssolv
+       make DESTDIR=./debian/perl-bssolv install_vendor
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_install
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_python2
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install