mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Move Genesis builder to git based scheme
This commit is contained in:
parent
dea4f9b707
commit
ed776435cf
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
VER=`cat Version`
|
||||
VER=`git describe`
|
||||
VER=${VER/-/.post}
|
||||
VER=${VER/-/.}
|
||||
rpmbuild --version > /dev/null
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
@ -20,4 +22,4 @@ cp LICENSE.html $RPMROOT/BUILD
|
||||
cp xCAT-genesis-builder.spec $RPMROOT/SOURCES
|
||||
cd -
|
||||
rm -f $RPMROOT/SRPMS/xCAT-genesis-builder-$VER*rpm $RPMROOT/RPMS/*/xCAT-genesis-builder-$VER*rpm
|
||||
rpmbuild -ba xCAT-genesis-builder/xCAT-genesis-builder.spec
|
||||
rpmbuild -ba xCAT-genesis-builder/xCAT-genesis-builder.spec --define "version $VER" --define "release 1"
|
||||
|
@ -16,7 +16,6 @@ BuildArch: noarch
|
||||
%define __prelink_undo_cmd %{nil}
|
||||
# To fix the issue error: Arch dependent binaries in noarch package, the following line is needed on Fedora 23 ppc64
|
||||
%define _binaries_in_noarch_packages_terminate_build 0
|
||||
Release: snap%(date +"%Y%m%d%H%M")
|
||||
Epoch: 1
|
||||
AutoReq: false
|
||||
Prefix: /opt/xcat
|
||||
@ -25,7 +24,6 @@ AutoProv: false
|
||||
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Group: System/Utilities
|
||||
License: Various (see individual packages for details)
|
||||
Vendor: IBM Corp.
|
||||
|
@ -11,7 +11,6 @@ AutoProv: false
|
||||
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Group: System/Utilities
|
||||
License: EPL
|
||||
Vendor: IBM Corp.
|
||||
|
Loading…
x
Reference in New Issue
Block a user