From: shuai.fu Date: Sat, 22 Oct 2016 05:23:40 +0000 (+0800) Subject: Add debian package X-Git-Tag: upstream/0.10.1~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7f62e2b4c43d5b5900f48ef32af0ab0a1de7d66;p=services%2Fcreaterepo_c.git Add debian package Change-Id: I94c6746447a7c061b0bfc35760193381a71b7e8f Signed-off-by: shuai.fu Conflicts: AUTHORS --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..682de31 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +createrepo-c (0.10.0) unstable; urgency=low + + * add debian + + -- Shuai Fu Wed, 09 Jul 2014 10:09:30 +0800 + 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..996850d --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: createrepo-c +Section: devel +Priority: extra +Maintainer: Jian-feng Ding +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 index 0000000..8ceb093 --- /dev/null +++ b/debian/createrepo-c-devel.install @@ -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 index 0000000..de267da --- /dev/null +++ b/debian/createrepo-c.install @@ -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 index 0000000..33f8460 --- /dev/null +++ b/debian/rules @@ -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