From 725873de0a6c1cdb15099d071b6fab6fd64047ae Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 3 Jun 2013 17:06:19 +0200 Subject: [PATCH] in the planetlab environment, we do not use create_rpm_from_here as the PL build takes care of all this --- rpm/create_rpm_from_here | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 rpm/create_rpm_from_here diff --git a/rpm/create_rpm_from_here b/rpm/create_rpm_from_here deleted file mode 100755 index a6dfd59..0000000 --- a/rpm/create_rpm_from_here +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# This script will build a RPM from the files in the current directory, given that there is a rpm/file.spec -# Its primary purpose is to be used by Jenkins - -set -e -set -x - -specfile=`find rpm -name \*.spec |head -1` -test -z "$specfile" && exit -1 - -specfile=`basename $specfile` - -name=`grep -P '^Name:\s+' rpm/$specfile |awk '{print $2}'` -commitdate=`git log -1 --format="%ct"` -version=`grep -P '^Version:\s+' rpm/$specfile |awk '{print $2}'`.$commitdate -#release=`grep -P '^Release:\s+' rpm/$specfile |awk '{print $2}'` - -rm -rf rpmbuild -mkdir -p rpmbuild/{BUILD,RPMS,SOURCES/$name-$version,SPECS,SRPMS,tmp} -cp -a rpm/$specfile rpmbuild/SPECS -sed -i "s/^[\t ]*Version:.*\$/Version: ${version}/" rpmbuild/SPECS/$specfile -#tar --exclude-vcs --exclude='rpmbuild' --exclude='rpm' -cp * | (cd rpmbuild/SOURCES/$name-$version ; tar xp) - -pushd rpmbuild/SOURCES -#tar cf $name-$version.tar $name-$version # Best not to use cpu on our small ec2 instances -#sed -i "s/^[\t ]*Source0:.*/Source0: $name-$version.tar/g" rpmbuild/SPECS/*.spec -#sed -i "s/^[\t ]*%setup[\t ]\+-n[\t ]\+.*/%setup -n $name-$version/g" rpmbuild/SPECS/*.spec -popd - -rpmbuild --define "_topdir %(pwd)/rpmbuild" -ba rpmbuild/SPECS/$specfile -- 2.43.0