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.11 by eulisse, Wed May 24 07:55:11 2006 UTC vs.
Revision 1.19 by elmer, Fri Nov 2 19:34:28 2007 UTC

# Line 1 | Line 1
1 < ### RPM external mysql 5.0.18
1 > ### RPM external mysql 5.0.45-CMS18
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://mirror.provenscaling.com/mysql/community/source/5.0/mysql-%realversion.tar.gz
10   %endif
11  
12   Source: %source
# Line 14 | Line 14 | 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.)
# Line 26 | Line 26 | CFLAGS=-O3 CXX=gcc CXXFLAGS="-O3 -felide
26     ./configure --prefix=%i --with-extra-charsets=complex \
27        --enable-thread-safe-client --enable-local-infile
28   make %makeprocesses
29 +
30   %install
31   make install
32   perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r -e "^#!.*perl.*" %i | cut -d: -f1)
33 +
34 + # SCRAM ToolBox toolfile
35 + mkdir -p %i/etc/scram.d
36 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
37 + <doc type=BuildSystem::ToolDoc version=1.0>
38 + <Tool name=%n version=%v>
39 + <Lib name=mysqlclient>
40 + <Client>
41 + <Environment name=MYSQL_BASE default="%i"></Environment>
42 + <Environment name=LIBDIR default="$MYSQL_BASE/lib/mysql"></Environment>
43 + <Environment name=MYSQL_BINDIR default="$MYSQL_BASE/bin"></Environment>
44 + <Environment name=INCLUDE default="$MYSQL_BASE/include/mysql"></Environment>
45 + </Client>
46 + <Runtime name=PATH value="$MYSQL_BINDIR" type=path>
47 + </Tool>
48 + EOF_TOOLFILE
49 +
50   %post
51   %{relocateConfig}bin/msql2mysql
52   %{relocateConfig}bin/mysqlaccess
# Line 38 | Line 56 | perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bi
56   %{relocateConfig}bin/mysqld_safe
57   %{relocateConfig}bin/mysql_fix_privilege_tables
58   %{relocateConfig}bin/mysql_install_db
59 + %{relocateConfig}etc/scram.d/%n
60  
61  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines