1 |
< |
### RPM external mysql 5.0.18 |
1 |
> |
### RPM external mysql 5.0.18-XXXX |
2 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib/mysql |
3 |
|
|
4 |
|
#Different download locations according to the version. |
5 |
|
|
6 |
< |
%if "%(echo %v | cut -d. -f1)" == "4" |
7 |
< |
%define source http://downloads.mysql.com/archives/mysql-4.0/%n-%v.tar.gz |
6 |
> |
%if "%(echo %realversion | cut -d. -f1)" == "4" |
7 |
> |
%define source http://downloads.mysql.com/archives/mysql-4.0/%n-%realversion.tar.gz |
8 |
|
%else |
9 |
< |
%define source http://mysql.belnet.be/Downloads/MySQL-5.0/mysql-%v.tar.gz |
9 |
> |
%define source http://mysql.belnet.be/Downloads/MySQL-5.0/mysql-%realversion.tar.gz |
10 |
|
%endif |
11 |
|
|
12 |
|
Source: %source |
14 |
|
Provides: perl(DBI) |
15 |
|
|
16 |
|
%prep |
17 |
< |
%setup -n %n-%v |
17 |
> |
%setup -n %n-%realversion |
18 |
|
%ifos darwin |
19 |
|
# There's for some reason a "-traditional-cpp", which breaks with GCC 3.3 |
20 |
|
# so remove it. (FIXME: check if this is solved in a newer version.) |
28 |
|
make %makeprocesses |
29 |
|
%install |
30 |
|
make install |
31 |
< |
perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r /usr/local/bin/perl . | cut -d: -f1) |
31 |
> |
perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r -e "^#!.*perl.*" %i | cut -d: -f1) |
32 |
|
%post |
33 |
|
%{relocateConfig}bin/msql2mysql |
34 |
|
%{relocateConfig}bin/mysqlaccess |