init rpmbuild

This commit is contained in:
Ryabin Sergey 2015-07-14 12:06:59 +03:00
parent 3954f99a39
commit 44412bc63d
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#!/bin/bash -x
octane_rpmbuild() {
local WORK_DIR=$1
(
cd $WORK_DIR
git clone https://github.com/Mirantis/octane.git
mkdir BUILD RPMS SOURCES SPECS SRPMS
(
cd octane
git archive --format=tar.gz -o ../SOURCES/octane.tar.gz master
sed "s/%TMPDIR%/$1/g" /home/ryabin/spaces/rpm-build/octane.spec > octane.spec
)
#rm -rf octane
rpmbuild --define "_topdir ${PWD}" -ba ./octane.spec
)
}
TMP_DIR=`mktemp -d /tmp/rpmbuild-octane.XXXXXX`
octane_rpmbuild $TMP_DIR

18
misc/rpmbuild/octane.spec Normal file
View File

@ -0,0 +1,18 @@
Name: octane
Version: 1
Release: 1
Summary: Mirantis openstack upgrade tool
Group: Applications/System
License: Apache License V2
URL: https://github.com/Mirantis/octane
Source0: %TMPDIR%/SOURCES/octane.tar.gz
Requires: pip
%description
Project is aimed to validate if more or less simple upgrade of MOS 5.1+
%files
%doc
%changelog