Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ce34f3d8
Commit
ce34f3d8
authored
May 27, 2010
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split OEL/RHEL
parent
3dec34f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
23 deletions
+42
-23
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+42
-23
No files found.
support-files/mysql.spec.sh
View file @
ce34f3d8
...
...
@@ -121,43 +121,62 @@
%define distro_specific 0
%endif
%if %
{
distro_specific
}
%if %
(
test
-f
/etc/
redhat
-release
&&
echo
1
||
echo
0
)
%define
elver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat
-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%elver"
==
"4"
%define distro_description Enterprise Linux 4
%define distro_releasetag el4
%if %
(
test
-f
/etc/
enterprise
-release
&&
echo
1
||
echo
0
)
%define
oelver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/enterprise
-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
o
elver"
==
"4"
%define distro_description
Oracle
Enterprise Linux 4
%define distro_releasetag
o
el4
%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
"%elver"
==
"5"
%define distro_description Enterprise Linux 5
%define distro_releasetag el5
%if
"%
o
elver"
==
"5"
%define distro_description
Oracle
Enterprise Linux 5
%define distro_releasetag
o
el5
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires chkconfig coreutils
grep
procps shadow-utils
%else
%
{
error:
Enterprise Linux %
{
elver
}
is unsupported
}
%
{
error:
Oracle Enterprise Linux %
{
o
elver
}
is unsupported
}
%endif
%endif
%else
%if %
(
test
-f
/etc/
SuSE
-release
&&
echo
1
||
echo
0
)
%define
susever %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/SuSE-release
)
%if
"%
susever"
==
"10
"
%define distro_description
SUSE Linux Enterprise Server 10
%define distro_releasetag
sles10
%define distro_buildreq gcc-c++ g
dbm-devel gperf ncurses-devel openldap2-client readline-devel
zlib-devel
%define distro_requires
aaa_base coreutils
grep
procps pwd
utils
%if %
(
test
-f
/etc/
redhat
-release
&&
echo
1
||
echo
0
)
%define
rhelver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
rhelver"
==
"4
"
%define distro_description
Red Hat Enterprise Linux 4
%define distro_releasetag
rhel4
%define distro_buildreq gcc-c++ g
perf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires
chkconfig coreutils
grep
procps shadow-
utils
%else
%if
"%
susever"
==
"11
"
%define distro_description
SUSE Linux Enterprise Server 11
%define distro_releasetag
sles11
%define distro_buildreq gcc-c++ g
dbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel
zlib-devel
%define distro_requires
aaa_base coreutils
grep
procps pwd
utils
%if
"%
rhelver"
==
"5
"
%define distro_description
Red Hat Enterprise Linux 5
%define distro_releasetag
rhel5
%define distro_buildreq gcc-c++ g
perf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires
chkconfig coreutils
grep
procps shadow-
utils
%else
%
{
error:
SuSE %
{
suse
ver
}
is unsupported
}
%
{
error:
Red Hat Enterprise Linux %
{
rhel
ver
}
is unsupported
}
%endif
%endif
%else
%
{
error:Unsupported distribution
}
%if %
(
test
-f
/etc/SuSE-release
&&
echo
1
||
echo
0
)
%define susever %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/SuSE-release
)
%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
%else
%
{
error:SuSE %
{
susever
}
is unsupported
}
%endif
%endif
%else
%
{
error:Unsupported distribution
}
%endif
%endif
%endif
%else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment