diff options
author | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-04-13 15:03:54 +0200 |
---|---|---|
committer | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-04-13 15:03:54 +0200 |
commit | 80a2c1a3eb3abc1e57f8f6f4fb9631a52776892b (patch) | |
tree | d95f18940fc55532b77d012d547e5b772a4aa40c /support-files | |
parent | 5d1774947a56193d2ea7fa713a57864c4470c85c (diff) | |
download | mariadb-git-80a2c1a3eb3abc1e57f8f6f4fb9631a52776892b.tar.gz |
fix
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mysql.spec.sh | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 1099c8e1f29..6d40fe0dc05 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -133,44 +133,44 @@ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel %define distro_requires chkconfig coreutils grep procps shadow-utils %else - %if %redhatver == 5 - %define distro_description Red Hat Enterprise Linux 5 - %define distro_releasetag rhel5 - %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel - %define distro_requires chkconfig coreutils grep procps shadow-utils - %endif + %if %redhatver == 5 + %define distro_description Red Hat Enterprise Linux 5 + %define distro_releasetag rhel5 + %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel + %define distro_requires chkconfig coreutils grep procps shadow-utils + %endif %endif %else - %if %(test -f /etc/SuSE-release && echo 1 || echo 0) - %define susever %(rpm -qf --qf '%%{version}' /etc/SuSE-release) - %{echo:Found SuSE version %{susever}} - %if %susever == 10 - %define distro_description SUSE Linux Enterprise Server 10 - %define distro_releasetag sles10 - %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel - %define distro_requires aaa_base coreutils grep procps pwdutils - %else - %if %susever == 11 - %define distro_description SUSE Linux Enterprise Server 11 - %define distro_releasetag sles11 - %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel - %define distro_requires aaa_base coreutils grep procps pwdutils - %endif + %if %(test -f /etc/SuSE-release && echo 1 || echo 0) + %define susever %(rpm -qf --qf '%%{version}' /etc/SuSE-release) + %{echo:Found SuSE version %{susever}} + %if %susever == 10 + %define distro_description SUSE Linux Enterprise Server 10 + %define distro_releasetag sles10 + %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel + %define distro_requires aaa_base coreutils grep procps pwdutils + %else + %if %susever == 11 + %define distro_description SUSE Linux Enterprise Server 11 + %define distro_releasetag sles11 + %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel + %define distro_requires aaa_base coreutils grep procps pwdutils + %endif + %endif %endif %endif - %endif %if %{undefined distro_description} %{error:Unsupported distribution} %endif %else %define generic_kernel %(uname -r | cut -d. -f1-2) - %define distro_description Generic Linux %{generic_kernel} - %define distro_releasetag linux%{generic_kernel} - %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel - %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd + %define distro_description Generic Linux (kernel %{generic_kernel}) + %define distro_releasetag linux%{generic_kernel} + %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel + %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd %endif -%{echo:Building for %{distro_description} +%{echo:Building for %{distro_description}} # ---------------------------------------------------------------------------- # Support optional "tcmalloc" library (experimental) |