Add debian package
authorshuai.fu <shuai01.fu@samsung.com>
Sat, 22 Oct 2016 05:23:40 +0000 (13:23 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Sat, 25 Mar 2017 02:05:16 +0000 (11:05 +0900)
Change-Id: I94c6746447a7c061b0bfc35760193381a71b7e8f
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Conflicts:
AUTHORS

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/createrepo-c-devel.install [new file with mode: 0644]
debian/createrepo-c.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..682de31
--- /dev/null
@@ -0,0 +1,6 @@
+createrepo-c (0.10.0) unstable; urgency=low
+
+  * add debian 
+
+ -- Shuai Fu <shuai01.fu@samsung.com> Wed, 09 Jul 2014 10:09:30 +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..996850d
--- /dev/null
@@ -0,0 +1,35 @@
+Source: createrepo-c
+Section: devel
+Priority: extra
+Maintainer: Jian-feng Ding <jian-feng.ding@intel.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
+Standards-Version: 0.10.0
+Homepage: http://www.tizen.org
+
+Package: createrepo-c
+Architecture: i386 amd64
+Depends:  ${python:Depends},
+ rpm,
+ python-rpm,
+ python-urlgrabber,
+ cpio,
+ bzip2,
+ libpython2.7,
+ libcurl3,
+ libxml2,
+ gzip
+Description: image creator for Linux distributions
+  The tool createrep is used to ppfarm test
+
+Package: createrepo-c-devel
+Architecture: i386 amd64
+Depends:  ${python:Depends},
+ rpm,
+ python-rpm,
+ python-urlgrabber,
+ cpio,
+ bzip2,
+ createrepo-c,
+ gzip
+Description: image creator for Linux distributions
+  The tool createrep is used to ppfarm test
diff --git a/debian/createrepo-c-devel.install b/debian/createrepo-c-devel.install
new file mode 100644 (file)
index 0000000..8ceb093
--- /dev/null
@@ -0,0 +1,5 @@
+usr/include/createrepo_c /usr/include/
+usr/lib/libcreaterepo_c.so /usr/lib/
+usr/lib/pkgconfig/createrepo_c.pc /usr/lib/pkgconfig/
+src/python/createrepo_c/_createrepo_cmodule.so /usr/lib/python2.7/createrepo_c/
+src/python/__init__.py /usr/lib/python2.7/createrepo_c/
diff --git a/debian/createrepo-c.install b/debian/createrepo-c.install
new file mode 100644 (file)
index 0000000..de267da
--- /dev/null
@@ -0,0 +1,7 @@
+etc/bash_completion.d /etc/
+usr/bin/createrepo_c /usr/bin/
+usr/bin/mergerepo_c /usr/bin/
+usr/bin/modifyrepo_c /usr/bin/
+usr/lib/libcreaterepo_c.so.* /usr/lib/
+usr/share/man/man8/createrepo_c.8.gz /usr/share/man/man8/
+usr/share/man/man8/mergerepo_c.8.gz /usr/share/man/man8/
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..33f8460
--- /dev/null
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+
+
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+       cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr
+       make
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       # Installing package
+       make DESTDIR=$(CURDIR) sysconfdir=$(CURDIR)/etc install
+       if [ -e usr/lib64 ]; then cp -arf  usr/lib64/* usr/lib/; fi     
+#      cat src/python/__init__.py
+#      ls -R
+binary-indep: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_install
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_pysupport
+       dh_installdeb
+#      dh_shlibdeps -l/$(CURDIR)/usr/lib
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install