1 |
|
### RPM external mysql 5.0.18 |
2 |
+ |
Requires: gcc-wrapper |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib/mysql |
4 |
|
|
5 |
|
#Different download locations according to the version. |
23 |
|
%endif |
24 |
|
|
25 |
|
%build |
26 |
+ |
## IMPORT gcc-wrapper |
27 |
|
CFLAGS=-O3 CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \ |
28 |
|
./configure --prefix=%i --with-extra-charsets=complex \ |
29 |
|
--enable-thread-safe-client --enable-local-infile |
30 |
|
make %makeprocesses |
31 |
|
%install |
32 |
|
make install |
33 |
< |
perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r /usr/local/bin/perl %i | cut -d: -f1) |
33 |
> |
perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r -e "^#!.*perl.*" %i | cut -d: -f1) |
34 |
|
%post |
35 |
|
%{relocateConfig}bin/msql2mysql |
36 |
|
%{relocateConfig}bin/mysqlaccess |