@@ -22,7 +22,7 @@ check, modify and correct any inconsistencies in the btrfs filesystem.
%prep
%setup -q -c
-sed -i s/v0.20-rc1/%{real_version}/g $RPM_BUILD_DIR/%{name}-%{version}/version.sh
+sed -i s/\$VERSION/%{real_version}/g $RPM_BUILD_DIR/%{name}-%{version}/version.sh
%build
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
@@ -6,7 +6,8 @@
# Copyright 2008, Oracle
# Released under the GNU GPLv2
-v="v0.20-rc1"
+VERSION="v0.20-rc1"
+v="$VERSION"
which git &> /dev/null
if [ $? == 0 -a -d .git ]; then