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.8 by eulisse, Fri May 19 10:09:27 2006 UTC vs.
Revision 1.25 by valya, Fri Jun 5 22:23:12 2009 UTC

# Line 1 | Line 1
1 < ### RPM external mysql 5.0.18
1 > ### RPM external mysql 5.1.35
2   ## INITENV +PATH LD_LIBRARY_PATH %i/lib/mysql
3 + ## INITENV SET MYSQL_HOME $MYSQL_ROOT
4  
5   #Different download locations according to the version.
6  
7 < %if "%(echo %v | cut -d. -f1)" == "4"
8 < %define source http://downloads.mysql.com/archives/mysql-4.0/%n-%v.tar.gz
7 > %if "%(echo %realversion | cut -d. -f1)" == "4"
8 > %define source http://downloads.mysql.com/archives/mysql-4.0/%n-%realversion.tar.gz
9   %else
10 < %define source http://mysql.belnet.be/Downloads/MySQL-5.0/mysql-%v.tar.gz
10 > #%define source http://mirror.provenscaling.com/mysql/community/source/5.0/mysql-%realversion.tar.gz
11 > %define source http://opensource.become.com/mysql/Downloads/MySQL-5.1/mysql-%realversion.tar.gz
12   %endif
13  
14   Source: %source
# Line 14 | Line 16 | Source: %source
16   Provides: perl(DBI)
17  
18   %prep
19 < %setup -n %n-%v
19 > %setup -n %n-%realversion
20   %ifos darwin
21   # There's for some reason a "-traditional-cpp", which breaks with GCC 3.3
22   # so remove it.  (FIXME: check if this is solved in a newer version.)
# Line 26 | Line 28 | CFLAGS=-O3 CXX=gcc CXXFLAGS="-O3 -felide
28     ./configure --prefix=%i --with-extra-charsets=complex \
29        --enable-thread-safe-client --enable-local-infile
30   make %makeprocesses
31 +
32   %install
33   make install
34 < perl -p -i -e "s|^#!.*perl|#!/usr/bin/env perl|" $(grep -r /usr/local/bin/perl . | cut -d: -f1)
34 > perl -p -i -e "s|^#!.*perl(.*)|#!/usr/bin/env perl$1|" $(grep -r -e "^#!.*perl.*" %i | cut -d: -f1)
35 > rm -fR %i/mysql-test
36 >
37 > # SCRAM ToolBox toolfile
38 > mkdir -p %i/etc/scram.d
39 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
40 > <doc type=BuildSystem::ToolDoc version=1.0>
41 > <Tool name=%n version=%v>
42 > <Lib name=mysqlclient>
43 > <Client>
44 > <Environment name=MYSQL_BASE default="%i"></Environment>
45 > <Environment name=LIBDIR default="$MYSQL_BASE/lib/mysql"></Environment>
46 > <Environment name=MYSQL_BINDIR default="$MYSQL_BASE/bin"></Environment>
47 > <Environment name=INCLUDE default="$MYSQL_BASE/include/mysql"></Environment>
48 > </Client>
49 > <Runtime name=PATH value="$MYSQL_BINDIR" type=path>
50 > </Tool>
51 > EOF_TOOLFILE
52 >
53 > cat << \EOF > %i/etc/my.cnf
54 > [mysqld]
55 > max_allowed_packet=128M
56 >
57 > max_connections = 1000
58 > connect_timeout = 60
59 >
60 > set-variable = innodb_log_file_size=512M
61 > set-variable = innodb_log_buffer_size=8M
62 > set-variable = innodb_buffer_pool_size=2G
63 > set-variable = innodb_additional_mem_pool_size=50M
64 >
65 > key_buffer=512M
66 >
67 > query_cache_type=1
68 > query_cache_limit=10M
69 > query_cache_size=128M
70 >
71 > innodb_thread_concurrency=0
72 > innodb_concurrency_tickets=10000
73 > innodb_commit_concurrency=0
74 > innodb_flush_logs_at_trx_commit=0
75 > innodb_flush_method=O_DIRECT
76 > innodb_file_io_threads = 4
77 > innodb_checksums=0
78 > innodb_doublewrite=0
79 >
80 >
81 > max_heap_table_size=1024M
82 > tmp_table_size=1024M
83 >
84 > long_query_time=5
85 > innodb_sync_spin_loops=60
86 >
87 > innodb_force_recovery = 0
88 > innodb_lock_wait_timeout = 100
89 > innodb_autoinc_lock_mode = 2
90 >
91 >
92 > [mysql.server]
93 > STRICT_TRANS_TABLES=1
94 > transaction-isolation = READ-COMMITTED
95 > EOF
96 >
97 >
98   %post
99   %{relocateConfig}bin/msql2mysql
100   %{relocateConfig}bin/mysqlaccess
# Line 38 | Line 104 | perl -p -i -e "s|^#!.*perl|#!/usr/bin/en
104   %{relocateConfig}bin/mysqld_safe
105   %{relocateConfig}bin/mysql_fix_privilege_tables
106   %{relocateConfig}bin/mysql_install_db
107 <
107 > %{relocateConfig}etc/scram.d/%n
108  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines