File percona-xtrabackup-2.1.x-nodoc.patch of Package xtrabackup

The rpm spec file extracts the MySQL sources during %setup, 
make the build script work with that.

---
 utils/build.sh |    4 ----
 1 file changed, 4 deletions(-)

Index: percona-xtrabackup-2.1.4/utils/build.sh
===================================================================
--- percona-xtrabackup-2.1.4.orig/utils/build.sh	2013-08-01 14:26:37.000000000 +0100
+++ percona-xtrabackup-2.1.4/utils/build.sh	2013-08-09 20:34:14.000000000 +0100
@@ -126,7 +126,6 @@ AUTO_DOWNLOAD to \"yes\""
 function unpack_and_patch()
 {
     local dirname=`basename "$1" ".tar.gz"`
-    tar xzf $top_dir/$1
     cd $dirname
     patch -p1 < $top_dir/patches/$2
     cd -
@@ -220,9 +219,6 @@ function build_all()
 
     innodb_dir=$server_dir/storage/$innodb_name
 
-    echo "Downloading sources"
-    auto_download $server_tarball
-
     test -d $server_dir && rm -r $server_dir
 
     echo "Preparing sources"
openSUSE Build Service is sponsored by