Fix rpm spec
@@ -14,7 +14,7 @@ BuildRequires: upx golang make
MongoDB backup tool
%prep
-%setup -q -n mongodb-backup
+%setup -q -n mongodb-backup-%{version}
%build
@@ -25,8 +25,8 @@ export GOPATH=$(pwd)/
export PATH="/usr/local/go/bin:$PATH:$GOPATH"
export GOBINPATH="/usr/local/go/bin"
mkdir -p src/github.com/percona/
-mv mongodb-backup src/github.com/percona/
-ln -s src/github.com/percona/mongodb-backup mongodb-backup
+mv mongodb-backup-%{version} src/github.com/percona/mongodb-backup
+ln -s src/github.com/percona/mongodb-backup mongodb-backup-%{version}
cd src/github.com/percona/mongodb-backup
make %{?_smp_mflags}
cd %{_builddir}
