Updated Branches:
  refs/heads/master 5f52bfe7a -> 73f381278

BIGTOP-1150. update Spark debian packaging to the latest format


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/2850fd88
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/2850fd88
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/2850fd88

Branch: refs/heads/master
Commit: 2850fd8871d02193b9c518167b4deeef751ed3aa
Parents: 5f52bfe
Author: Roman Shaposhnik <[email protected]>
Authored: Thu Nov 21 14:54:30 2013 -0800
Committer: Roman Shaposhnik <[email protected]>
Committed: Thu Nov 21 14:54:30 2013 -0800

----------------------------------------------------------------------
 bigtop-packages/src/deb/spark/compat        |  2 +-
 bigtop-packages/src/deb/spark/rules         | 67 +++---------------------
 bigtop-packages/src/deb/spark/source/format |  1 +
 3 files changed, 8 insertions(+), 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/2850fd88/bigtop-packages/src/deb/spark/compat
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/spark/compat 
b/bigtop-packages/src/deb/spark/compat
index 1e8b314..7f8f011 100644
--- a/bigtop-packages/src/deb/spark/compat
+++ b/bigtop-packages/src/deb/spark/compat
@@ -1 +1 @@
-6
+7

http://git-wip-us.apache.org/repos/asf/bigtop/blob/2850fd88/bigtop-packages/src/deb/spark/rules
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/spark/rules 
b/bigtop-packages/src/deb/spark/rules
index 63df086..d319b33 100644
--- a/bigtop-packages/src/deb/spark/rules
+++ b/bigtop-packages/src/deb/spark/rules
@@ -22,71 +22,16 @@ export DH_VERBOSE=1
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-patch: patch-stamp
-patch-stamp:   
-       touch $@
+%:
+       dh $@
 
-clean: 
-       dh_testdir
-       dh_testroot
-       rm -f *-stamp
-       dh_clean
-       rm -Rf debian/tmp debian/spark
-       find debian -name .\*swp -exec rm -f {} \;
-
-build-indep: build-indep-stamp
-build-indep-stamp: patch-stamp
+override_dh_auto_build:
        # we'll just use the build from the tarball.
-       bash debian/do-component-build
-       mkdir -p debian/tmp
-       touch $@
+       env FULL_VERSION=${SPARK_PATCHED_VERSION} bash 
debian/do-component-build -Divy.home=${HOME}/.ivy2
 
-install: install-indep
-install-indep: 
-       dh_testdir
-       dh_testroot
-       sh -x debian/install_spark.sh \
+override_dh_auto_install:
+       bash -x debian/install_spark.sh \
          --build-dir=`pwd` \
           --doc-dir=/usr/share/doc/spark \
           --source-dir=debian \
          --prefix=debian/spark
-       dh_install -i
-       (dh_lintian) || /bin/true
-
-binary-common: 
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-#      dh_installexamples
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms
-#      dh_perl
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary-indep: build-indep install-indep
-       $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-binary-arch:   
-
-
-binary: binary-indep
-.PHONY: build clean binary-indep binary install-indep binary-arch

http://git-wip-us.apache.org/repos/asf/bigtop/blob/2850fd88/bigtop-packages/src/deb/spark/source/format
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/spark/source/format 
b/bigtop-packages/src/deb/spark/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/bigtop-packages/src/deb/spark/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

Reply via email to