ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mysql.spec
(Generate patch)

Comparing COMP/CMSDIST/mysql.spec (file contents):
Revision 1.1 by argiro, Fri Feb 17 04:27:30 2006 UTC vs.
Revision 1.16 by eulisse, Wed Jun 27 15:20:46 2007 UTC

# Line 1 | Line 1
1 < ### RPM external mysql 4.0.24
2 < # Source: ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-4.0/%n-%v.tar.gz
3 < Source: http://downloads.mysql.com/archives/mysql-4.0/%n-%v.tar.gz
1 > ### RPM external mysql 5.0.18
2 > ## INITENV +PATH LD_LIBRARY_PATH %i/lib/mysql
3 >
4 > #Different download locations according to the version.
5 >
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://mi.mirror.garr.it/mirrors/MySQL/Downloads/MySQL-5.0/%n-%realversion.tar.gz
10 > %endif
11 >
12 > Source: %source
13 > # Let's fake the fact that we have perl (DBI) so that rpm does not complain.
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.)
# Line 14 | Line 25 | perl -p -i -e 's/-traditional-cpp/-no-cp
25   CFLAGS=-O3 CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \
26     ./configure --prefix=%i --with-extra-charsets=complex \
27        --enable-thread-safe-client --enable-local-infile
28 < make
28 > make %makeprocesses
29 > %install
30 > make install
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
35 > %{relocateConfig}bin/mysqlbug
36 > %{relocateConfig}bin/mysql_config
37 > %{relocateConfig}bin/mysqld_multi
38 > %{relocateConfig}bin/mysqld_safe
39 > %{relocateConfig}bin/mysql_fix_privilege_tables
40 > %{relocateConfig}bin/mysql_install_db
41 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines