RPMBUILD - MYSQL 5.6 - Unable to make an rpm file from script

The RPM BUILD TREE is on /local/002_rpmbuild/rpmbuild/SOURCES, SPECS, …
The process is run under normal user ( not root ) from a script named rpmbuild_project_mysql.

Here somme screen logs :
user@asus:~> rpmbuild_project_mysql
MAIN - 2 parametres
MAIN - PARAM0 : /home/user/bin/rpmbuild_project
MAIN - PARAM1 : mysql-5.6.14.tar.gz
MAIN - PARAM2 : .tar.gz
CMD : cd /local/002_rpmbuild/rpmbuild/SOURCES
CMD : tar -vzxf ./mysql-5.6.14.tar.gz > /tmp/000_rpmbuild_mysql_untar.txt
tar: mysql-5.6.14/Docs: Cannot utime: Operation not permitted
tar: mysql-5.6.14/Docs: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14/packaging/rpm-uln: Cannot utime: Operation not permitted
tar: mysql-5.6.14/packaging/rpm-uln: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14/packaging/solaris: Cannot utime: Operation not permitted
tar: mysql-5.6.14/packaging/solaris: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14/packaging/WiX/ca: Cannot utime: Operation not permitted
tar: mysql-5.6.14/packaging/WiX/ca: Cannot change mode to rwxr-xr-x: Operation not permitted





tar: mysql-5.6.14/mysql-test/lib/My: Cannot utime: Operation not permitted
tar: mysql-5.6.14/mysql-test/lib/My: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14/mysql-test/lib: Cannot utime: Operation not permitted
tar: mysql-5.6.14/mysql-test/lib: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14/mysql-test: Cannot utime: Operation not permitted
tar: mysql-5.6.14/mysql-test: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: mysql-5.6.14: Cannot utime: Operation not permitted
tar: mysql-5.6.14: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
SOURCE_NAME : mysql-5.6.14
EXT_NAME : .tar.gz
CMD : cd /local/002_rpmbuild/rpmbuild/SOURCES/mysql-5.6.14/support-files
CMD : cp -v mysql-5.6.14.spec /local/002_rpmbuild/rpmbuild/SPECS
‘mysql-5.6./m.14.spec’ → ‘/local/002_rpmbuild/rpmbuild/SPECS/mysql-5.6.14.spec’
CMD : cd /local/002_rpmbuild/rpmbuild/SPECS/
CMD : rpmbuild -vv -bb --clean mysql-5.6.14.spec
error: line 246: Tag takes single token only: Release: 1.linux_glibcse version 2.17 (git c758a6861537)

Here is line 256 of mysql-5.6.14.spec :

Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}

and here line 33 of mysql-5.6.14.spec

%global release 1


by the way the file mysql-5.6.14/support-files/mysql.5.6.14.spec should be named
mysql-5.6.14.spec

Any help is welcome.

Thank you for helping

It looks as if you do not have the privileges to do what you want to do. In which case, you probably shouldn’t be doing what you are trying to do.

You’re running rpmbuild as a user.

BTW, why not use OBS, it’s so easy. Specially since you already have knowledge about specfiles.