Skip to content

Commit 6e9b852

Browse files
committed
Fine tune specfile
Signed-off-by: David Cassany <[email protected]>
1 parent e80f20c commit 6e9b852

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.obs/specfile/elemental-operator/elemental-operator.spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,20 @@ if [ "$(uname)" = "Linux" ]; then
101101
OTHER_LINKFLAGS="-extldflags -static -s"
102102
fi
103103

104-
if [ "%{commit}" = "0" ]; then
104+
if [ "%{commit}" = "_replaceme_" ]; then
105105
echo "No commit hash provided"
106106
exit 1
107107
fi
108108

109-
if [ "%{c_date}" = "0" ]; then
109+
if [ "%{c_date}" = "_replaceme_" ]; then
110110
echo "No commit date provided"
111111
exit 1
112112
fi
113113

114-
export GIT_TAG=`echo "%{version}" | cut -d "+" -f 1`
115-
GIT_COMMIT=`echo "%{commit}"`
114+
export GIT_TAG=$(echo "%{version}" | cut -d "+" -f 1)
115+
GIT_COMMIT=$(echo "%{commit}")
116116
export GIT_COMMIT=${GIT_COMMIT:0:8}
117-
export MTIME=`echo "%{c_date}"`
117+
export COMMITDATE="%{c_date}"
118118

119119
# build binaries
120120
CGO_ENABLED=0 make operator

0 commit comments

Comments
 (0)