init rpmbuild
This commit is contained in:
parent
3954f99a39
commit
44412bc63d
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue