summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-06-11 09:33:59 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-06-11 09:33:59 +0200
commitfca6e52853c1262378112bef00e2ec21db14357d (patch)
tree7583c0790d28bd8ed4656871e9b422e5afb8b1a0
parentdbe662cb8b2cc253d30ecab22853fd9110a7f8ff (diff)
downloadseabios-fca6e52853c1262378112bef00e2ec21db14357d.tar.gz
tag builds
-rw-r--r--seabios.git.spec9
1 files changed, 4 insertions, 5 deletions
diff --git a/seabios.git.spec b/seabios.git.spec
index f7b35a6..d2a2b7d 100644
--- a/seabios.git.spec
+++ b/seabios.git.spec
@@ -47,9 +47,8 @@ SeaBIOS open-source VGABIOS implementation
%setup -q -n %{name}
%build
-if test -f /opt/rh/devtoolset-2/enable; then
- source /opt/rh/devtoolset-2/enable
-fi
+versionbanner="seabios-git-%{version}-%{release}-by-kraxel.org"
+
function do_build() {
local cfg="$1"
local target="$2"
@@ -57,8 +56,8 @@ function do_build() {
rm -rf out
cp "$cfg" ".config"
yes "" | make oldconfig
- make
- make $target
+ make VERSION="$versionbanner"
+ make VERSION="$versionbanner" $target
}
echo "%{version}-%{release}" > .version