]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
calamari-clients-setup: Do install in setup phase 480/head
authorBoris Ranto <branto@redhat.com>
Wed, 14 Sep 2016 10:49:12 +0000 (12:49 +0200)
committerBoris Ranto <branto@redhat.com>
Wed, 14 Sep 2016 11:17:53 +0000 (13:17 +0200)
We already do it like this downstream, we only re-package the pre-built
tarball there. This makes the upstream workflow more similar to the one
downstream (and actually possible).

Signed-off-by: Boris Ranto <branto@redhat.com>
calamari-clients-setup/build/build

index d958af5142da4a2488702ce485194192e3893053..0e870ded37d40715e122cd9c8f349a7775d19ff6 100644 (file)
@@ -19,8 +19,8 @@ echo "Cleaning up the repo"
 git clean -fxd
 
 # Make sure the dist directory is clean
-rm -rf dist
-mkdir -p dist
+rm -rf dist build
+mkdir -p dist build
 
 echo "Building version $(git describe) Branch $BRANCH"
 
@@ -29,9 +29,6 @@ if [ -x install-deps.sh ]; then
   echo "Ensuring dependencies are installed"
   ./install-deps.sh
 fi
-# These two should be in install-deps.sh
-sudo yum -y install npm
-sudo npm install --global grunt-cli
 
 # Get the version
 eval $(./get-versions.sh)
@@ -39,8 +36,8 @@ RPM_RELEASE=$(echo $REVISION | tr '-' '_')
 
 # Create the source tarball and move it to dist
 echo "Building source distribution"
-make dist
-mv ../calamari-clients_*.tar.gz dist/
+make DESTDIR=build/ REAL_BUILD=y VERSION=$VERSION REVISION=$REVISION RPM_REVISION=$RPM_RELEASE install
+tar -cvzf dist/calamari-clients-$VERSION-$RPM_RELEASE.tar.gz -C build opt
 
 # Prepare the spec file for build
 sed -e "s/@VERSION@/${VERSION}/g" -e "s/@RELEASE@/${RPM_RELEASE}/g" < calamari-clients.spec.in > dist/calamari-clients.spec
@@ -56,5 +53,6 @@ EOF
 
 cat > dist/version << EOF
 VERSION=${VERSION}
+REVISION=${REVISION}
 RPM_RELEASE=${RPM_RELEASE}
 EOF