Merge lp:~percona-dev/percona-server/release-5.1.46-11-spec into lp:percona-server/release-5.1.47-11
- release-5.1.46-11-spec
- Merge into release-5.1.47-11
Proposed by
Aleksandr Kuzminsky
Status: | Merged |
---|---|
Approved by: | Vadim Tkachenko |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16 |
Proposed branch: | lp:~percona-dev/percona-server/release-5.1.46-11-spec |
Merge into: | lp:percona-server/release-5.1.47-11 |
Diff against target: |
1463 lines (+1446/-1) 2 files modified
build/percona-server.spec (+1445/-0) innodb_fix_misc.patch (+1/-1) |
To merge this branch: | bzr merge lp:~percona-dev/percona-server/release-5.1.46-11-spec |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vadim Tkachenko | Approve | ||
Review via email: mp+26181@code.launchpad.net |
Commit message
Description of the change
Added RPM .spec file
Changed Percona Server version to 11.0
To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) : | # |
review:
Approve
Revision history for this message
Vadim Tkachenko (vadim-tk) : | # |
review:
Needs Fixing
Revision history for this message
Vadim Tkachenko (vadim-tk) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'build' | |||
2 | === added file 'build/percona-server.spec' | |||
3 | --- build/percona-server.spec 1970-01-01 00:00:00 +0000 | |||
4 | +++ build/percona-server.spec 2010-05-27 20:37:26 +0000 | |||
5 | @@ -0,0 +1,1445 @@ | |||
6 | 1 | ############################################################################# | ||
7 | 2 | # | ||
8 | 3 | # This is the spec file for the distribution specific RPM files | ||
9 | 4 | # | ||
10 | 5 | ############################################################################## | ||
11 | 6 | |||
12 | 7 | ############################################################################## | ||
13 | 8 | # Some common macro definitions | ||
14 | 9 | ############################################################################## | ||
15 | 10 | |||
16 | 11 | # Required arguments | ||
17 | 12 | # gotrevision - Revision in BZR branch | ||
18 | 13 | |||
19 | 14 | %define mysql_vendor Percona, Inc | ||
20 | 15 | %define redhatversion %(lsb_release -rs | awk -F. '{ print $1}') | ||
21 | 16 | %define community 1 | ||
22 | 17 | %define mysqlversion 5.1.46 | ||
23 | 18 | %define majorversion 11 | ||
24 | 19 | %define minorversion 0 | ||
25 | 20 | %define distribution rhel%{redhatversion} | ||
26 | 21 | %define release rel%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution} | ||
27 | 22 | |||
28 | 23 | %define mysqld_user mysql | ||
29 | 24 | %define mysqld_group mysql | ||
30 | 25 | %define mysqldatadir /var/lib/mysql | ||
31 | 26 | %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com | ||
32 | 27 | |||
33 | 28 | # ------------------------------------------------------------------------------ | ||
34 | 29 | # Meta information, don't remove! | ||
35 | 30 | # ------------------------------------------------------------------------------ | ||
36 | 31 | # norootforbuild | ||
37 | 32 | |||
38 | 33 | # ------------------------------------------------------------------------------ | ||
39 | 34 | # On SuSE 9 no separate "debuginfo" package is built. To enable basic | ||
40 | 35 | # debugging on that platform, we don't strip binaries on SuSE 9. We | ||
41 | 36 | # disable the strip of binaries by redefining the RPM macro | ||
42 | 37 | # "__os_install_post" leaving out the script calls that normally does | ||
43 | 38 | # this. We do this in all cases, as on platforms where "debuginfo" is | ||
44 | 39 | # created, a script "find-debuginfo.sh" will be called that will do | ||
45 | 40 | # the strip anyway, part of separating the executable and debug | ||
46 | 41 | # information into separate files put into separate packages. | ||
47 | 42 | # | ||
48 | 43 | # Some references (shows more advanced conditional usage): | ||
49 | 44 | # http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html | ||
50 | 45 | # http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html | ||
51 | 46 | # http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html | ||
52 | 47 | # http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html | ||
53 | 48 | # ------------------------------------------------------------------------------ | ||
54 | 49 | %define __os_install_post /usr/lib/rpm/brp-compress | ||
55 | 50 | |||
56 | 51 | # ------------------------------------------------------------------------------ | ||
57 | 52 | # We don't package all files installed into the build root by intention - | ||
58 | 53 | # See BUG#998 for details. | ||
59 | 54 | # ------------------------------------------------------------------------------ | ||
60 | 55 | %define _unpackaged_files_terminate_build 0 | ||
61 | 56 | |||
62 | 57 | # ------------------------------------------------------------------------------ | ||
63 | 58 | # RPM build tools now automatically detects Perl module dependencies. This | ||
64 | 59 | # detection gives problems as it is broken in some versions, and it also | ||
65 | 60 | # give unwanted dependencies from mandatory scripts in our package. | ||
66 | 61 | # Might not be possible to disable in all RPM tool versions, but here we | ||
67 | 62 | # try. We keep the "AutoReqProv: no" for the "test" sub package, as disabling | ||
68 | 63 | # here might fail, and that package has the most problems. | ||
69 | 64 | # See http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides | ||
70 | 65 | # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html | ||
71 | 66 | # ------------------------------------------------------------------------------ | ||
72 | 67 | %undefine __perl_provides | ||
73 | 68 | %undefine __perl_requires | ||
74 | 69 | |||
75 | 70 | ############################################################################## | ||
76 | 71 | # Command line handling | ||
77 | 72 | ############################################################################## | ||
78 | 73 | |||
79 | 74 | # ---------------------------------------------------------------------- | ||
80 | 75 | # use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) | ||
81 | 76 | # to build with yaSSL support (off by default) | ||
82 | 77 | # ---------------------------------------------------------------------- | ||
83 | 78 | %{?_with_yassl:%define YASSL_BUILD 1} | ||
84 | 79 | %{!?_with_yassl:%define YASSL_BUILD 0} | ||
85 | 80 | |||
86 | 81 | # ---------------------------------------------------------------------- | ||
87 | 82 | # use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) | ||
88 | 83 | # to include libgcc (as libmygcc) (on by default) | ||
89 | 84 | # ---------------------------------------------------------------------- | ||
90 | 85 | %{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} | ||
91 | 86 | %{?_with_libgcc:%define WITH_LIBGCC 1} | ||
92 | 87 | %{?_without_libgcc:%define WITH_LIBGCC 0} | ||
93 | 88 | |||
94 | 89 | |||
95 | 90 | # On SuSE 9 no separate "debuginfo" package is built. To enable basic | ||
96 | 91 | # debugging on that platform, we don't strip binaries on SuSE 9. We | ||
97 | 92 | # disable the strip of binaries by redefining the RPM macro | ||
98 | 93 | # "__os_install_post" leaving out the script calls that normally does | ||
99 | 94 | # this. We do this in all cases, as on platforms where "debuginfo" is | ||
100 | 95 | # created, a script "find-debuginfo.sh" will be called that will do | ||
101 | 96 | # the strip anyway, part of separating the executable and debug | ||
102 | 97 | # information into separate files put into separate packages. | ||
103 | 98 | # | ||
104 | 99 | # Some references (shows more advanced conditional usage): | ||
105 | 100 | # http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html | ||
106 | 101 | # http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html | ||
107 | 102 | # http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html | ||
108 | 103 | # http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html | ||
109 | 104 | |||
110 | 105 | %define __os_install_post /usr/lib/rpm/brp-compress | ||
111 | 106 | |||
112 | 107 | %define server_suffix -rel%{majorversion}.%{minorversion} | ||
113 | 108 | %define package_suffix -51 | ||
114 | 109 | %define ndbug_comment Percona Server (GPL), %{majorversion}.%{minorversion}, Revision %{gotrevision} | ||
115 | 110 | %define debug_comment Percona Server - Debug (GPL), %{majorversion}.%{minorversion}, Revision %{gotrevision} | ||
116 | 111 | %define NORMAL_TEST_MODE test-bt | ||
117 | 112 | %define DEBUG_TEST_MODE test-bt-debug | ||
118 | 113 | |||
119 | 114 | %define BUILD_DEBUG 0 | ||
120 | 115 | |||
121 | 116 | %define lic_type GNU GPL v2 | ||
122 | 117 | %define lic_files COPYING README | ||
123 | 118 | %define src_dir Percona-Server | ||
124 | 119 | |||
125 | 120 | Source1: Percona-Server.tar.gz | ||
126 | 121 | |||
127 | 122 | ############################################################################## | ||
128 | 123 | # Main spec file section | ||
129 | 124 | ############################################################################## | ||
130 | 125 | |||
131 | 126 | Name: Percona-Server%{package_suffix} | ||
132 | 127 | Summary: Percona-Server: a very fast and reliable SQL database server | ||
133 | 128 | Group: Applications/Databases | ||
134 | 129 | Version: %{mysqlversion} | ||
135 | 130 | Release: %{release} | ||
136 | 131 | Distribution: Red Hat Enterprise Linux %{redhatversion} | ||
137 | 132 | License: GPL version 2 http://www.gnu.org/licenses/gpl-2.0.html | ||
138 | 133 | Source: Percona-Server.tar.gz | ||
139 | 134 | URL: http://www.percona.com/ | ||
140 | 135 | Packager: %{mysql_vendor} Development Team <mysql-dev@percona.com> | ||
141 | 136 | Vendor: %{mysql_vendor} | ||
142 | 137 | Provides: msqlormysql MySQL-server Percona-XtraDB-server | ||
143 | 138 | BuildRequires: gperf perl readline-devel gcc-c++ ncurses-devel zlib-devel libtool automake autoconf time ccache bison | ||
144 | 139 | |||
145 | 140 | # Think about what you use here since the first step is to | ||
146 | 141 | # run a rm -rf | ||
147 | 142 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
148 | 143 | |||
149 | 144 | # From the manual | ||
150 | 145 | %description | ||
151 | 146 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
152 | 147 | and robust SQL (Structured Query Language) database server. Percona Server | ||
153 | 148 | is intended for mission-critical, heavy-load production systems as well | ||
154 | 149 | as for embedding into mass-deployed software. | ||
155 | 150 | |||
156 | 151 | Percona Inc. provides commercial support of Percona Server. | ||
157 | 152 | For more information visist our web site http://www.percona.com/ | ||
158 | 153 | |||
159 | 154 | ############################################################################## | ||
160 | 155 | # Sub package definition | ||
161 | 156 | ############################################################################## | ||
162 | 157 | |||
163 | 158 | %package -n Percona-Server-server%{package_suffix} | ||
164 | 159 | Summary: %{ndbug_comment} for Red Hat Enterprise Linux %{redhatversion} | ||
165 | 160 | Group: Applications/Databases | ||
166 | 161 | Requires: chkconfig coreutils shadow-utils grep procps | ||
167 | 162 | Provides: msqlormysql mysql-server MySQL-server Percona-XtraDB-server | ||
168 | 163 | |||
169 | 164 | %description -n Percona-Server-server%{package_suffix} | ||
170 | 165 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
171 | 166 | and robust SQL (Structured Query Language) database server. Percona Server | ||
172 | 167 | is intended for mission-critical, heavy-load production systems as well | ||
173 | 168 | as for embedding into mass-deployed software. | ||
174 | 169 | |||
175 | 170 | Percona Inc. provides commercial support of Percona Server. | ||
176 | 171 | For more information visist our web site http://www.percona.com/ | ||
177 | 172 | |||
178 | 173 | This package includes the Percona-XtraDB server binary | ||
179 | 174 | (configured including XtraDB) | ||
180 | 175 | as well as related utilities to run and administer a Percona Server. | ||
181 | 176 | |||
182 | 177 | If you want to access and work with the database, you have to install | ||
183 | 178 | package "Percona-Server-client%{package_suffix}" as well! | ||
184 | 179 | |||
185 | 180 | # ------------------------------------------------------------------------------ | ||
186 | 181 | |||
187 | 182 | %package -n Percona-Server-client%{package_suffix} | ||
188 | 183 | Summary: Percona-Server - Client | ||
189 | 184 | Group: Applications/Databases | ||
190 | 185 | Provides: mysql-client MySQL-client Percona-XtraDB-client mysql MySQL | ||
191 | 186 | |||
192 | 187 | %description -n Percona-Server-client%{package_suffix} | ||
193 | 188 | This package contains the standard Percona Serverclients and administration tools. | ||
194 | 189 | |||
195 | 190 | %{see_base} | ||
196 | 191 | |||
197 | 192 | |||
198 | 193 | # ------------------------------------------------------------------------------ | ||
199 | 194 | |||
200 | 195 | %package -n Percona-Server-test%{package_suffix} | ||
201 | 196 | Requires: mysql-client perl | ||
202 | 197 | Summary: Percona-Server - Test suite | ||
203 | 198 | Group: Applications/Databases | ||
204 | 199 | Provides: mysql-test MySQL-test Percona-XtraDB-test | ||
205 | 200 | AutoReqProv: no | ||
206 | 201 | |||
207 | 202 | %description -n Percona-Server-test%{package_suffix} | ||
208 | 203 | This package contains the Percona-Server regression test suite. | ||
209 | 204 | |||
210 | 205 | %{see_base} | ||
211 | 206 | |||
212 | 207 | # ------------------------------------------------------------------------------ | ||
213 | 208 | |||
214 | 209 | %package -n Percona-Server-devel%{package_suffix} | ||
215 | 210 | Summary: Percona-Server - Development header files and libraries | ||
216 | 211 | Group: Applications/Databases | ||
217 | 212 | Provides: mysql-devel MySQL-devel Percona-XtraDB-devel | ||
218 | 213 | |||
219 | 214 | %description -n Percona-Server-devel%{package_suffix} | ||
220 | 215 | This package contains the development header files and libraries | ||
221 | 216 | necessary to develop Percona Server client applications. | ||
222 | 217 | |||
223 | 218 | %{see_base} | ||
224 | 219 | |||
225 | 220 | # ------------------------------------------------------------------------------ | ||
226 | 221 | |||
227 | 222 | %package -n Percona-Server-shared%{package_suffix} | ||
228 | 223 | Summary: Percona-Server - Shared libraries | ||
229 | 224 | Group: Applications/Databases | ||
230 | 225 | Provides: mysql-shared MySQL-shared Percona-XtraDB-shared | ||
231 | 226 | |||
232 | 227 | %description -n Percona-Server-shared%{package_suffix} | ||
233 | 228 | This package contains the shared libraries (*.so*) which certain | ||
234 | 229 | languages and applications need to dynamically load and use MySQL. | ||
235 | 230 | |||
236 | 231 | # ------------------------------------------------------------------------------ | ||
237 | 232 | |||
238 | 233 | |||
239 | 234 | ############################################################################## | ||
240 | 235 | # | ||
241 | 236 | ############################################################################## | ||
242 | 237 | |||
243 | 238 | %prep | ||
244 | 239 | |||
245 | 240 | %setup -n %{src_dir} | ||
246 | 241 | |||
247 | 242 | |||
248 | 243 | ############################################################################## | ||
249 | 244 | # The actual build | ||
250 | 245 | ############################################################################## | ||
251 | 246 | |||
252 | 247 | %build | ||
253 | 248 | |||
254 | 249 | BuildMySQL() { | ||
255 | 250 | # Get flags from environment. RPM_OPT_FLAGS seems not to be set anywhere. | ||
256 | 251 | CFLAGS=${CFLAGS:-$RPM_OPT_FLAGS} | ||
257 | 252 | CXXFLAGS=${CXXFLAGS:-$RPM_OPT_FLAGS} | ||
258 | 253 | # Evaluate current setting of $DEBUG | ||
259 | 254 | if [ $DEBUG -gt 0 ] ; then | ||
260 | 255 | OPT_COMMENT='--with-comment="%{debug_comment}"' | ||
261 | 256 | OPT_DEBUG='--with-debug' | ||
262 | 257 | CFLAGS=`echo " $CFLAGS " | \ | ||
263 | 258 | sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ | ||
264 | 259 | -e 's/^ //' -e 's/ $//'` | ||
265 | 260 | CXXFLAGS=`echo " $CXXFLAGS " | \ | ||
266 | 261 | sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ | ||
267 | 262 | -e 's/^ //' -e 's/ $//'` | ||
268 | 263 | else | ||
269 | 264 | OPT_COMMENT='--with-comment="%{ndbug_comment}"' | ||
270 | 265 | OPT_DEBUG='' | ||
271 | 266 | fi | ||
272 | 267 | |||
273 | 268 | echo "BUILD ==================" | ||
274 | 269 | echo $* | ||
275 | 270 | |||
276 | 271 | # The --enable-assembler simply does nothing on systems that does not | ||
277 | 272 | # support assembler speedups. | ||
278 | 273 | sh -c "CFLAGS=\"$CFLAGS\" \ | ||
279 | 274 | CXXFLAGS=\"$CXXFLAGS\" \ | ||
280 | 275 | AM_CPPFLAGS=\"$AM_CPPFLAGS\" \ | ||
281 | 276 | LDFLAGS=\"$LDFLAGS\" \ | ||
282 | 277 | ./configure \ | ||
283 | 278 | $* \ | ||
284 | 279 | --enable-assembler \ | ||
285 | 280 | --enable-local-infile \ | ||
286 | 281 | --with-mysqld-user=%{mysqld_user} \ | ||
287 | 282 | --with-unix-socket-path=/var/lib/mysql/mysql.sock \ | ||
288 | 283 | --with-pic \ | ||
289 | 284 | --prefix=/ \ | ||
290 | 285 | --with-extra-charsets=complex \ | ||
291 | 286 | %if %{YASSL_BUILD} | ||
292 | 287 | --with-ssl \ | ||
293 | 288 | %else | ||
294 | 289 | --without-ssl \ | ||
295 | 290 | %endif | ||
296 | 291 | --exec-prefix=%{_exec_prefix} \ | ||
297 | 292 | --libexecdir=%{_sbindir} \ | ||
298 | 293 | --libdir=%{_libdir} \ | ||
299 | 294 | --sysconfdir=%{_sysconfdir} \ | ||
300 | 295 | --datadir=%{_datadir} \ | ||
301 | 296 | --localstatedir=%{mysqldatadir} \ | ||
302 | 297 | --infodir=%{_infodir} \ | ||
303 | 298 | --includedir=%{_includedir} \ | ||
304 | 299 | --mandir=%{_mandir} \ | ||
305 | 300 | --enable-thread-safe-client \ | ||
306 | 301 | --enable-profiling \ | ||
307 | 302 | %if %{?ndbug_comment:1}0 | ||
308 | 303 | $OPT_COMMENT \ | ||
309 | 304 | %endif | ||
310 | 305 | $OPT_DEBUG \ | ||
311 | 306 | --with-readline \ | ||
312 | 307 | ; make " | ||
313 | 308 | } | ||
314 | 309 | # end of function definition "BuildMySQL" | ||
315 | 310 | |||
316 | 311 | |||
317 | 312 | BuildServer() { | ||
318 | 313 | BuildMySQL "--enable-shared \ | ||
319 | 314 | --with-server-suffix='%{server_suffix}' \ | ||
320 | 315 | --without-plugin-innobase \ | ||
321 | 316 | --with-plugin-innodb_plugin \ | ||
322 | 317 | --with-plugin-partition \ | ||
323 | 318 | --with-plugin-csv \ | ||
324 | 319 | --with-plugin-archive \ | ||
325 | 320 | --with-plugin-blackhole \ | ||
326 | 321 | --with-plugin-federated \ | ||
327 | 322 | --without-embedded-server \ | ||
328 | 323 | --without-bench \ | ||
329 | 324 | --with-zlib-dir=bundled \ | ||
330 | 325 | --with-big-tables" | ||
331 | 326 | |||
332 | 327 | if [ -n "$MYSQL_CONFLOG_DEST" ] ; then | ||
333 | 328 | cp -fp config.log "$MYSQL_CONFLOG_DEST" | ||
334 | 329 | fi | ||
335 | 330 | |||
336 | 331 | #if [ -f sql/.libs/mysqld ] ; then | ||
337 | 332 | # nm --numeric-sort sql/.libs/mysqld > sql/mysqld.sym | ||
338 | 333 | #else | ||
339 | 334 | # nm --numeric-sort sql/mysqld > sql/mysqld.sym | ||
340 | 335 | #fi | ||
341 | 336 | } | ||
342 | 337 | # end of function definition "BuildServer" | ||
343 | 338 | |||
344 | 339 | |||
345 | 340 | RBR=$RPM_BUILD_ROOT | ||
346 | 341 | MBD=$RPM_BUILD_DIR/%{src_dir} | ||
347 | 342 | |||
348 | 343 | # Clean up the BuildRoot first | ||
349 | 344 | [ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR; | ||
350 | 345 | mkdir -p $RBR%{_libdir}/mysql $RBR%{_sbindir} | ||
351 | 346 | |||
352 | 347 | # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and | ||
353 | 348 | # including exceptions into the code | ||
354 | 349 | if [ -z "$CXX" -a -z "$CC" ] ; then | ||
355 | 350 | export CC="gcc" CXX="gcc" | ||
356 | 351 | fi | ||
357 | 352 | |||
358 | 353 | # Create the shared libs seperately to avoid a dependency for the client utilities | ||
359 | 354 | DEBUG=0 | ||
360 | 355 | BuildMySQL "--enable-shared" | ||
361 | 356 | |||
362 | 357 | # Install shared libraries | ||
363 | 358 | cp -av libmysql/.libs/*.so* $RBR/%{_libdir} | ||
364 | 359 | cp -av libmysql_r/.libs/*.so* $RBR/%{_libdir} | ||
365 | 360 | |||
366 | 361 | ############################################################################## | ||
367 | 362 | |||
368 | 363 | # Include libgcc.a in the devel subpackage (BUG 4921) | ||
369 | 364 | %if %{WITH_LIBGCC} | ||
370 | 365 | libgcc=`$CC $CFLAGS --print-libgcc-file` | ||
371 | 366 | install -m 644 "$libgcc" $RBR%{_libdir}/mysql/libmygcc.a | ||
372 | 367 | %endif | ||
373 | 368 | |||
374 | 369 | ############################################################################## | ||
375 | 370 | |||
376 | 371 | # Now create a debug server | ||
377 | 372 | %if %{BUILD_DEBUG} | ||
378 | 373 | DEBUG=1 | ||
379 | 374 | make clean | ||
380 | 375 | |||
381 | 376 | ( BuildServer ) # subshell, so that CFLAGS + CXXFLAGS are modified only locally | ||
382 | 377 | |||
383 | 378 | if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then | ||
384 | 379 | MTR_BUILD_THREAD=auto make %{DEBUG_TEST_MODE} | ||
385 | 380 | fi | ||
386 | 381 | |||
387 | 382 | # Get the debug server and its .sym file from the build tree | ||
388 | 383 | #if [ -f sql/.libs/mysqld ] ; then | ||
389 | 384 | # cp sql/.libs/mysqld $RBR%{_sbindir}/mysqld-debug | ||
390 | 385 | #else | ||
391 | 386 | # cp sql/mysqld $RBR%{_sbindir}/mysqld-debug | ||
392 | 387 | #fi | ||
393 | 388 | #cp libmysqld/libmysqld.a $RBR%{_libdir}/mysql/libmysqld-debug.a | ||
394 | 389 | #cp sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld-debug.sym | ||
395 | 390 | |||
396 | 391 | %endif | ||
397 | 392 | |||
398 | 393 | # Now, the default server | ||
399 | 394 | DEBUG=0 | ||
400 | 395 | make clean | ||
401 | 396 | |||
402 | 397 | BuildServer | ||
403 | 398 | |||
404 | 399 | if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then | ||
405 | 400 | MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE} | ||
406 | 401 | fi | ||
407 | 402 | |||
408 | 403 | # Now, build plugin | ||
409 | 404 | #BUILDSO=0 | ||
410 | 405 | #make clean | ||
411 | 406 | |||
412 | 407 | #BuildServer | ||
413 | 408 | |||
414 | 409 | #if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then | ||
415 | 410 | # MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE} | ||
416 | 411 | #fi | ||
417 | 412 | |||
418 | 413 | %install | ||
419 | 414 | RBR=$RPM_BUILD_ROOT | ||
420 | 415 | MBD=$RPM_BUILD_DIR/%{src_dir} | ||
421 | 416 | |||
422 | 417 | # Ensure that needed directories exists | ||
423 | 418 | install -d $RBR%{_sysconfdir}/{logrotate.d,init.d} | ||
424 | 419 | install -d $RBR%{mysqldatadir}/mysql | ||
425 | 420 | install -d $RBR%{_datadir}/mysql-test | ||
426 | 421 | install -d $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
427 | 422 | install -d $RBR%{_includedir} | ||
428 | 423 | install -d $RBR%{_libdir} | ||
429 | 424 | install -d $RBR%{_mandir} | ||
430 | 425 | install -d $RBR%{_sbindir} | ||
431 | 426 | install -d $RBR%{_libdir}/mysql/plugin | ||
432 | 427 | |||
433 | 428 | make DESTDIR=$RBR benchdir_root=%{_datadir} install | ||
434 | 429 | |||
435 | 430 | # install symbol files ( for stack trace resolution) | ||
436 | 431 | #install -m644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym | ||
437 | 432 | |||
438 | 433 | # Install logrotate and autostart | ||
439 | 434 | install -m644 $MBD/support-files/mysql-log-rotate \ | ||
440 | 435 | $RBR%{_sysconfdir}/logrotate.d/mysql | ||
441 | 436 | install -m755 $MBD/support-files/mysql.server \ | ||
442 | 437 | $RBR%{_sysconfdir}/init.d/mysql | ||
443 | 438 | |||
444 | 439 | # in RPMs, it is unlikely that anybody should use "sql-bench" | ||
445 | 440 | rm -fr $RBR%{_datadir}/sql-bench | ||
446 | 441 | |||
447 | 442 | # Create a symlink "rcmysql", pointing to the init.script. SuSE users | ||
448 | 443 | # will appreciate that, as all services usually offer this. | ||
449 | 444 | ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql | ||
450 | 445 | |||
451 | 446 | # Touch the place where the my.cnf config file and mysqlmanager.passwd | ||
452 | 447 | # (MySQL Instance Manager password file) might be located | ||
453 | 448 | # Just to make sure it's in the file list and marked as a config file | ||
454 | 449 | touch $RBR%{_sysconfdir}/my.cnf | ||
455 | 450 | touch $RBR%{_sysconfdir}/mysqlmanager.passwd | ||
456 | 451 | |||
457 | 452 | # Install SELinux files in datadir | ||
458 | 453 | install -m600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \ | ||
459 | 454 | $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
460 | 455 | |||
461 | 456 | |||
462 | 457 | ############################################################################## | ||
463 | 458 | # Post processing actions, i.e. when installed | ||
464 | 459 | ############################################################################## | ||
465 | 460 | |||
466 | 461 | %pre -n Percona-Server-server%{package_suffix} | ||
467 | 462 | # Check if we can safely upgrade. An upgrade is only safe if it's from one | ||
468 | 463 | # of our RPMs in the same version family. | ||
469 | 464 | |||
470 | 465 | installed=`rpm -q --whatprovides mysql-server 2> /dev/null` | ||
471 | 466 | if [ $? -eq 0 -a -n "$installed" ]; then | ||
472 | 467 | vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1` | ||
473 | 468 | version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1` | ||
474 | 469 | myvendor='%{mysql_vendor}' | ||
475 | 470 | myversion='%{mysqlversion}' | ||
476 | 471 | |||
477 | 472 | old_family=`echo $version | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
478 | 473 | new_family=`echo $myversion | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
479 | 474 | |||
480 | 475 | [ -z "$vendor" ] && vendor='<unknown>' | ||
481 | 476 | [ -z "$old_family" ] && old_family="<unrecognized version $version>" | ||
482 | 477 | [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>" | ||
483 | 478 | |||
484 | 479 | error_text= | ||
485 | 480 | # if [ "$vendor" != "$myvendor" ]; then | ||
486 | 481 | # error_text="$error_text | ||
487 | 482 | #The current MySQL server package is provided by a different | ||
488 | 483 | #vendor ($vendor) than $myvendor. Some files may be installed | ||
489 | 484 | #to different locations, including log files and the service | ||
490 | 485 | #startup script in %{_sysconfdir}/init.d/. | ||
491 | 486 | #" | ||
492 | 487 | # fi | ||
493 | 488 | |||
494 | 489 | if [ "$old_family" != "$new_family" ]; then | ||
495 | 490 | error_text="$error_text | ||
496 | 491 | Upgrading directly from MySQL $old_family to MySQL $new_family may not | ||
497 | 492 | be safe in all cases. A manual dump and restore using mysqldump is | ||
498 | 493 | recommended. It is important to review the MySQL manual's Upgrading | ||
499 | 494 | section for version-specific incompatibilities. | ||
500 | 495 | " | ||
501 | 496 | fi | ||
502 | 497 | |||
503 | 498 | if [ -n "$error_text" ]; then | ||
504 | 499 | cat <<HERE >&2 | ||
505 | 500 | |||
506 | 501 | ****************************************************************** | ||
507 | 502 | A MySQL package ($installed) is installed. | ||
508 | 503 | $error_text | ||
509 | 504 | A manual upgrade is required. | ||
510 | 505 | |||
511 | 506 | - Ensure that you have a complete, working backup of your data and my.cnf | ||
512 | 507 | files | ||
513 | 508 | - Shut down the MySQL server cleanly | ||
514 | 509 | - Remove the existing MySQL packages. Usually this command will | ||
515 | 510 | list the packages you should remove: | ||
516 | 511 | rpm -qa | grep -i '^mysql-' | ||
517 | 512 | |||
518 | 513 | You may choose to use 'rpm --nodeps -ev <package-name>' to remove | ||
519 | 514 | the package which contains the mysqlclient shared library. The | ||
520 | 515 | library will be reinstalled by the Percona-shared-compat package. | ||
521 | 516 | - Install the new Percona Server packages supplied by $myvendor | ||
522 | 517 | - Ensure that the Percona Server is started | ||
523 | 518 | - Run the 'mysql_upgrade' program | ||
524 | 519 | |||
525 | 520 | This is a brief description of the upgrade process. Important details | ||
526 | 521 | can be found in the MySQL manual, in the Upgrading section. | ||
527 | 522 | For additional details please visit Percona Documentation page | ||
528 | 523 | at http://www.percona.com/software/documentation/ | ||
529 | 524 | |||
530 | 525 | ****************************************************************** | ||
531 | 526 | HERE | ||
532 | 527 | exit 1 | ||
533 | 528 | fi | ||
534 | 529 | fi | ||
535 | 530 | |||
536 | 531 | # Shut down a previously installed server first | ||
537 | 532 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
538 | 533 | %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1 | ||
539 | 534 | echo "Giving mysqld 5 seconds to exit nicely" | ||
540 | 535 | sleep 5 | ||
541 | 536 | fi | ||
542 | 537 | |||
543 | 538 | %post -n Percona-Server-server%{package_suffix} | ||
544 | 539 | mysql_datadir=%{mysqldatadir} | ||
545 | 540 | |||
546 | 541 | # ---------------------------------------------------------------------- | ||
547 | 542 | # Create data directory | ||
548 | 543 | # ---------------------------------------------------------------------- | ||
549 | 544 | mkdir -p $mysql_datadir/{mysql,test} | ||
550 | 545 | |||
551 | 546 | # ---------------------------------------------------------------------- | ||
552 | 547 | # Make MySQL start/shutdown automatically when the machine does it. | ||
553 | 548 | # ---------------------------------------------------------------------- | ||
554 | 549 | if [ -x /sbin/chkconfig ] ; then | ||
555 | 550 | /sbin/chkconfig --add mysql | ||
556 | 551 | fi | ||
557 | 552 | |||
558 | 553 | # ---------------------------------------------------------------------- | ||
559 | 554 | # Create a MySQL user and group. Do not report any problems if it already | ||
560 | 555 | # exists. | ||
561 | 556 | # ---------------------------------------------------------------------- | ||
562 | 557 | groupadd -r %{mysqld_group} 2> /dev/null || true | ||
563 | 558 | useradd -M -r -d $mysql_datadir -s /bin/bash -c "Percona Server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
564 | 559 | # The user may already exist, make sure it has the proper group nevertheless (BUG#12823) | ||
565 | 560 | usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
566 | 561 | |||
567 | 562 | # ---------------------------------------------------------------------- | ||
568 | 563 | # Change permissions so that the user that will run the MySQL daemon | ||
569 | 564 | # owns all database files. | ||
570 | 565 | # ---------------------------------------------------------------------- | ||
571 | 566 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
572 | 567 | |||
573 | 568 | # ---------------------------------------------------------------------- | ||
574 | 569 | # Initiate databases | ||
575 | 570 | # ---------------------------------------------------------------------- | ||
576 | 571 | %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} | ||
577 | 572 | |||
578 | 573 | # ---------------------------------------------------------------------- | ||
579 | 574 | # FIXME upgrade databases if needed would go here - but it cannot be | ||
580 | 575 | # automated yet | ||
581 | 576 | # ---------------------------------------------------------------------- | ||
582 | 577 | |||
583 | 578 | # ---------------------------------------------------------------------- | ||
584 | 579 | # Change permissions again to fix any new files. | ||
585 | 580 | # ---------------------------------------------------------------------- | ||
586 | 581 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
587 | 582 | |||
588 | 583 | # ---------------------------------------------------------------------- | ||
589 | 584 | # Fix permissions for the permission database so that only the user | ||
590 | 585 | # can read them. | ||
591 | 586 | # ---------------------------------------------------------------------- | ||
592 | 587 | chmod -R og-rw $mysql_datadir/mysql | ||
593 | 588 | |||
594 | 589 | # ---------------------------------------------------------------------- | ||
595 | 590 | # install SELinux files - but don't override existing ones | ||
596 | 591 | # ---------------------------------------------------------------------- | ||
597 | 592 | SETARGETDIR=/etc/selinux/targeted/src/policy | ||
598 | 593 | SEDOMPROG=$SETARGETDIR/domains/program | ||
599 | 594 | SECONPROG=$SETARGETDIR/file_contexts/program | ||
600 | 595 | if [ -f /etc/redhat-release ] && \ | ||
601 | 596 | (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \ | ||
602 | 597 | || grep -q "CentOS release 4" /etc/redhat-release) ; then | ||
603 | 598 | echo | ||
604 | 599 | echo | ||
605 | 600 | echo 'Notes regarding SELinux on this platform:' | ||
606 | 601 | echo '=========================================' | ||
607 | 602 | echo | ||
608 | 603 | echo 'The default policy might cause server startup to fail because it is ' | ||
609 | 604 | echo 'not allowed to access critical files. In this case, please update ' | ||
610 | 605 | echo 'your installation. ' | ||
611 | 606 | echo | ||
612 | 607 | echo 'The default policy might also cause inavailability of SSL related ' | ||
613 | 608 | echo 'features because the server is not allowed to access /dev/random ' | ||
614 | 609 | echo 'and /dev/urandom. If this is a problem, please do the following: ' | ||
615 | 610 | echo | ||
616 | 611 | echo ' 1) install selinux-policy-targeted-sources from your OS vendor' | ||
617 | 612 | echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':' | ||
618 | 613 | echo ' allow mysqld_t random_device_t:chr_file read;' | ||
619 | 614 | echo ' allow mysqld_t urandom_device_t:chr_file read;' | ||
620 | 615 | echo ' 3) cd to '$SETARGETDIR' and issue the following command:' | ||
621 | 616 | echo ' make load' | ||
622 | 617 | echo | ||
623 | 618 | echo | ||
624 | 619 | fi | ||
625 | 620 | |||
626 | 621 | if [ -x sbin/restorecon ] ; then | ||
627 | 622 | sbin/restorecon -R var/lib/mysql | ||
628 | 623 | fi | ||
629 | 624 | |||
630 | 625 | # Restart in the same way that mysqld will be started normally. | ||
631 | 626 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
632 | 627 | %{_sysconfdir}/init.d/mysql start | ||
633 | 628 | echo "Giving mysqld 2 seconds to start" | ||
634 | 629 | sleep 2 | ||
635 | 630 | fi | ||
636 | 631 | |||
637 | 632 | # Allow mysqld_safe to start mysqld and print a message before we exit | ||
638 | 633 | sleep 2 | ||
639 | 634 | |||
640 | 635 | %preun -n Percona-Server-server%{package_suffix} | ||
641 | 636 | if [ $1 = 0 ] ; then | ||
642 | 637 | # Stop MySQL before uninstalling it | ||
643 | 638 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
644 | 639 | %{_sysconfdir}/init.d/mysql stop > /dev/null | ||
645 | 640 | # Don't start it automatically anymore | ||
646 | 641 | if [ -x /sbin/chkconfig ] ; then | ||
647 | 642 | /sbin/chkconfig --del mysql | ||
648 | 643 | fi | ||
649 | 644 | fi | ||
650 | 645 | fi | ||
651 | 646 | |||
652 | 647 | # We do not remove the mysql user since it may still own a lot of | ||
653 | 648 | # database files. | ||
654 | 649 | |||
655 | 650 | # ---------------------------------------------------------------------- | ||
656 | 651 | # Clean up the BuildRoot after build is done | ||
657 | 652 | # ---------------------------------------------------------------------- | ||
658 | 653 | %clean | ||
659 | 654 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; | ||
660 | 655 | |||
661 | 656 | ############################################################################## | ||
662 | 657 | # Files section | ||
663 | 658 | ############################################################################## | ||
664 | 659 | |||
665 | 660 | %files -n Percona-Server-server%{package_suffix} | ||
666 | 661 | %defattr(-,root,root,0755) | ||
667 | 662 | |||
668 | 663 | %doc %{lic_files} | ||
669 | 664 | %doc support-files/my-*.cnf | ||
670 | 665 | |||
671 | 666 | %doc %attr(644, root, root) %{_infodir}/mysql.info* | ||
672 | 667 | |||
673 | 668 | %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* | ||
674 | 669 | %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1* | ||
675 | 670 | %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1* | ||
676 | 671 | %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1* | ||
677 | 672 | %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1* | ||
678 | 673 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1* | ||
679 | 674 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1* | ||
680 | 675 | %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8* | ||
681 | 676 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1* | ||
682 | 677 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1* | ||
683 | 678 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1* | ||
684 | 679 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1* | ||
685 | 680 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1* | ||
686 | 681 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1* | ||
687 | 682 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1* | ||
688 | 683 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1* | ||
689 | 684 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1* | ||
690 | 685 | %doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8* | ||
691 | 686 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1* | ||
692 | 687 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1* | ||
693 | 688 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1* | ||
694 | 689 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1* | ||
695 | 690 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1* | ||
696 | 691 | %doc %attr(644, root, man) %{_mandir}/man1/perror.1* | ||
697 | 692 | %doc %attr(644, root, man) %{_mandir}/man1/replace.1* | ||
698 | 693 | %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1* | ||
699 | 694 | %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1* | ||
700 | 695 | |||
701 | 696 | %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf | ||
702 | 697 | %ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd | ||
703 | 698 | |||
704 | 699 | %attr(755, root, root) %{_bindir}/my_print_defaults | ||
705 | 700 | %attr(755, root, root) %{_bindir}/myisam_ftdump | ||
706 | 701 | %attr(755, root, root) %{_bindir}/myisamchk | ||
707 | 702 | %attr(755, root, root) %{_bindir}/myisamlog | ||
708 | 703 | %attr(755, root, root) %{_bindir}/myisampack | ||
709 | 704 | %attr(755, root, root) %{_bindir}/mysql_convert_table_format | ||
710 | 705 | %attr(755, root, root) %{_bindir}/mysql_fix_extensions | ||
711 | 706 | %attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables | ||
712 | 707 | %attr(755, root, root) %{_bindir}/mysql_install_db | ||
713 | 708 | %attr(755, root, root) %{_bindir}/mysql_secure_installation | ||
714 | 709 | %attr(755, root, root) %{_bindir}/mysql_setpermission | ||
715 | 710 | %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql | ||
716 | 711 | %attr(755, root, root) %{_bindir}/mysql_upgrade | ||
717 | 712 | %attr(755, root, root) %{_bindir}/mysql_zap | ||
718 | 713 | %attr(755, root, root) %{_bindir}/mysqlbug | ||
719 | 714 | %attr(755, root, root) %{_bindir}/mysqld_multi | ||
720 | 715 | %attr(755, root, root) %{_bindir}/mysqld_safe | ||
721 | 716 | %attr(755, root, root) %{_bindir}/mysqldumpslow | ||
722 | 717 | %attr(755, root, root) %{_bindir}/mysqlhotcopy | ||
723 | 718 | %attr(755, root, root) %{_bindir}/mysqltest | ||
724 | 719 | %attr(755, root, root) %{_bindir}/perror | ||
725 | 720 | %attr(755, root, root) %{_bindir}/replace | ||
726 | 721 | %attr(755, root, root) %{_bindir}/resolve_stack_dump | ||
727 | 722 | %attr(755, root, root) %{_bindir}/resolveip | ||
728 | 723 | |||
729 | 724 | %attr(755, root, root) %{_sbindir}/mysqld | ||
730 | 725 | %if %{BUILD_DEBUG} | ||
731 | 726 | %attr(755, root, root) %{_sbindir}/mysqld-debug | ||
732 | 727 | %endif | ||
733 | 728 | %attr(755, root, root) %{_sbindir}/mysqlmanager | ||
734 | 729 | %attr(755, root, root) %{_sbindir}/rcmysql | ||
735 | 730 | #%attr(644, root, root) %{_libdir}/mysql/mysqld.sym | ||
736 | 731 | %if %{BUILD_DEBUG} | ||
737 | 732 | #%attr(644, root, root) %{_libdir}/mysql/mysqld-debug.sym | ||
738 | 733 | %endif | ||
739 | 734 | |||
740 | 735 | %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql | ||
741 | 736 | %attr(755, root, root) %{_sysconfdir}/init.d/mysql | ||
742 | 737 | |||
743 | 738 | %attr(755, root, root) %{_datadir}/mysql/ | ||
744 | 739 | |||
745 | 740 | %files -n Percona-Server-client%{package_suffix} | ||
746 | 741 | %defattr(-, root, root, 0755) | ||
747 | 742 | %attr(755, root, root) %{_bindir}/msql2mysql | ||
748 | 743 | %attr(755, root, root) %{_bindir}/mysql | ||
749 | 744 | %attr(755, root, root) %{_bindir}/mysql_find_rows | ||
750 | 745 | %attr(755, root, root) %{_bindir}/mysql_waitpid | ||
751 | 746 | %attr(755, root, root) %{_bindir}/mysqlaccess | ||
752 | 747 | %attr(755, root, root) %{_bindir}/mysqladmin | ||
753 | 748 | %attr(755, root, root) %{_bindir}/mysqlbinlog | ||
754 | 749 | %attr(755, root, root) %{_bindir}/mysqlcheck | ||
755 | 750 | %attr(755, root, root) %{_bindir}/mysqldump | ||
756 | 751 | %attr(755, root, root) %{_bindir}/mysqlimport | ||
757 | 752 | %attr(755, root, root) %{_bindir}/mysqlshow | ||
758 | 753 | %attr(755, root, root) %{_bindir}/mysqlslap | ||
759 | 754 | |||
760 | 755 | %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1* | ||
761 | 756 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.1* | ||
762 | 757 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1* | ||
763 | 758 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1* | ||
764 | 759 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1* | ||
765 | 760 | %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1* | ||
766 | 761 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1* | ||
767 | 762 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1* | ||
768 | 763 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1* | ||
769 | 764 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1* | ||
770 | 765 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1* | ||
771 | 766 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1* | ||
772 | 767 | |||
773 | 768 | %post -n Percona-Server-shared%{package_suffix} | ||
774 | 769 | /sbin/ldconfig | ||
775 | 770 | |||
776 | 771 | %postun -n Percona-Server-shared%{package_suffix} | ||
777 | 772 | /sbin/ldconfig | ||
778 | 773 | |||
779 | 774 | |||
780 | 775 | %files -n Percona-Server-devel%{package_suffix} | ||
781 | 776 | %defattr(-, root, root, 0755) | ||
782 | 777 | %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1* | ||
783 | 778 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* | ||
784 | 779 | %attr(755, root, root) %{_bindir}/mysql_config | ||
785 | 780 | %dir %attr(755, root, root) %{_libdir}/mysql | ||
786 | 781 | %{_includedir}/mysql | ||
787 | 782 | %{_datadir}/aclocal/mysql.m4 | ||
788 | 783 | %{_libdir}/mysql/libdbug.a | ||
789 | 784 | %{_libdir}/mysql/libheap.a | ||
790 | 785 | %if %{WITH_LIBGCC} | ||
791 | 786 | %{_libdir}/mysql/libmygcc.a | ||
792 | 787 | %endif | ||
793 | 788 | %{_libdir}/mysql/libmyisam.a | ||
794 | 789 | %{_libdir}/mysql/libmyisammrg.a | ||
795 | 790 | %{_libdir}/mysql/libmysqlclient.a | ||
796 | 791 | %{_libdir}/mysql/libmysqlclient.la | ||
797 | 792 | %{_libdir}/mysql/libmysqlclient_r.a | ||
798 | 793 | %{_libdir}/mysql/libmysqlclient_r.la | ||
799 | 794 | %{_libdir}/mysql/libmystrings.a | ||
800 | 795 | %{_libdir}/mysql/libmysys.a | ||
801 | 796 | %{_libdir}/mysql/libvio.a | ||
802 | 797 | %{_libdir}/mysql/libz.a | ||
803 | 798 | %{_libdir}/mysql/libz.la | ||
804 | 799 | %if %{CLUSTER_BUILD} | ||
805 | 800 | %{_libdir}/mysql/libndbclient.a | ||
806 | 801 | %{_libdir}/mysql/libndbclient.la | ||
807 | 802 | %endif | ||
808 | 803 | |||
809 | 804 | %files -n Percona-Server-shared%{package_suffix} | ||
810 | 805 | %defattr(-, root, root, 0755) | ||
811 | 806 | # Shared libraries (omit for architectures that don't support them) | ||
812 | 807 | %{_libdir}/*.so* | ||
813 | 808 | |||
814 | 809 | %files -n Percona-Server-test%{package_suffix} | ||
815 | 810 | %defattr(-, root, root, 0755) | ||
816 | 811 | %{_datadir}/mysql-test | ||
817 | 812 | %attr(755, root, root) %{_bindir}/mysql_client_test | ||
818 | 813 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1* | ||
819 | 814 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1* | ||
820 | 815 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1* | ||
821 | 816 | |||
822 | 817 | ############################################################################## | ||
823 | 818 | # The spec file changelog only includes changes made to the spec file | ||
824 | 819 | # itself - note that they must be ordered by date (important when | ||
825 | 820 | # merging BK trees) | ||
826 | 821 | ############################################################################## | ||
827 | 822 | %changelog | ||
828 | 823 | * Wed May 22 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> | ||
829 | 824 | |||
830 | 825 | Percona Server Release 11.0 | ||
831 | 826 | |||
832 | 827 | * Mon Mar 22 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> | ||
833 | 828 | |||
834 | 829 | XtraDB Release 10 | ||
835 | 830 | |||
836 | 831 | * Thu Feb 11 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> | ||
837 | 832 | |||
838 | 833 | Package name changed to Percona-XtraDB | ||
839 | 834 | |||
840 | 835 | * Tue Jan 05 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> | ||
841 | 836 | |||
842 | 837 | - Corrected emails | ||
843 | 838 | - -m64 is removed from CFLAGS | ||
844 | 839 | |||
845 | 840 | * Tue Apr 21 2009 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> | ||
846 | 841 | |||
847 | 842 | - Adoption for XtraDB Storage Engine | ||
848 | 843 | |||
849 | 844 | * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com> | ||
850 | 845 | |||
851 | 846 | - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized. | ||
852 | 847 | This should cover both gcc and icc flags. Fixes bug#40546. | ||
853 | 848 | |||
854 | 849 | * Mon Aug 18 2008 Joerg Bruehe <joerg@mysql.com> | ||
855 | 850 | |||
856 | 851 | - Get rid of the "warning: Installed (but unpackaged) file(s) found:" | ||
857 | 852 | Some generated files aren't needed in RPMs: | ||
858 | 853 | - the "sql-bench/" subdirectory | ||
859 | 854 | Some files were missing: | ||
860 | 855 | - /usr/share/aclocal/mysql.m4 ("devel" subpackage) | ||
861 | 856 | - Manuals for embedded tests ("test" subpackage) | ||
862 | 857 | - Manual "mysqlbug" ("server" subpackage) | ||
863 | 858 | - Manual "mysql_find_rows" ("client" subpackage) | ||
864 | 859 | |||
865 | 860 | * Wed Jun 11 2008 Kent Boortz <kent@mysql.com> | ||
866 | 861 | |||
867 | 862 | - Removed the Example storage engine, it is not to be in products | ||
868 | 863 | |||
869 | 864 | * Fri Apr 04 2008 Daniel Fischer <df@mysql.com> | ||
870 | 865 | |||
871 | 866 | - Added Cluster+InnoDB product | ||
872 | 867 | |||
873 | 868 | * Mon Mar 31 2008 Kent Boortz <kent@mysql.com> | ||
874 | 869 | |||
875 | 870 | - Made the "Federated" storage engine an option | ||
876 | 871 | |||
877 | 872 | * Tue Mar 11 2008 Joerg Bruehe <joerg@mysql.com> | ||
878 | 873 | |||
879 | 874 | - Cleanup: Remove manual file "mysql_tableinfo.1". | ||
880 | 875 | |||
881 | 876 | * Mon Feb 18 2008 Timothy Smith <tim@mysql.com> | ||
882 | 877 | |||
883 | 878 | - Require a manual upgrade if the alread-installed mysql-server is | ||
884 | 879 | from another vendor, or is of a different major version. | ||
885 | 880 | |||
886 | 881 | * Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com> | ||
887 | 882 | |||
888 | 883 | - Add the "%doc" directive for all man pages and other documentation; | ||
889 | 884 | also, some re-ordering to reduce differences between spec files. | ||
890 | 885 | |||
891 | 886 | * Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com> | ||
892 | 887 | |||
893 | 888 | - Added "client/mysqlslap" (bug#32077) | ||
894 | 889 | |||
895 | 890 | * Wed Oct 31 2007 Joerg Bruehe <joerg@mysql.com> | ||
896 | 891 | |||
897 | 892 | - Explicitly handle InnoDB using its own variable and "--with"/"--without" | ||
898 | 893 | options, because the "configure" default is "yes". | ||
899 | 894 | Also, fix the specification of "community" to include "partitioning". | ||
900 | 895 | |||
901 | 896 | * Mon Sep 03 2007 Kent Boortz <kent@mysql.com> | ||
902 | 897 | |||
903 | 898 | - Let libmygcc be included unless "--without libgcc" is given. | ||
904 | 899 | |||
905 | 900 | * Sun Sep 02 2007 Kent Boortz <kent@mysql.com> | ||
906 | 901 | |||
907 | 902 | - Changed SSL flag given to configure to "--with-ssl" | ||
908 | 903 | - Removed symbolic link "safe_mysqld" | ||
909 | 904 | - Removed script and man page for "mysql_explain_log" | ||
910 | 905 | - Removed scripts "mysql_tableinfo" and "mysql_upgrade_shell" | ||
911 | 906 | - Removed "comp_err" from list to install | ||
912 | 907 | - Removed duplicates of "libndbclient.a" and "libndbclient.la" | ||
913 | 908 | |||
914 | 909 | * Tue Jul 17 2007 Joerg Bruehe <joerg@mysql.com> | ||
915 | 910 | |||
916 | 911 | - Add the man page for "mysql-stress-test.pl" to the "test" RPM | ||
917 | 912 | (consistency in fixing bug#21023, the script is handled by "Makefile.am") | ||
918 | 913 | |||
919 | 914 | * Wed Jul 11 2007 Daniel Fischer <df@mysql.com> | ||
920 | 915 | |||
921 | 916 | - Change the way broken SELinux policies on RHEL4 and CentOS 4 | ||
922 | 917 | are handled to be more likely to actually work | ||
923 | 918 | |||
924 | 919 | * Thu Jun 05 2007 kent Boortz <kent@mysql.com> | ||
925 | 920 | |||
926 | 921 | - Enabled the CSV engine in all builds | ||
927 | 922 | |||
928 | 923 | * Thu May 3 2007 Mads Martin Joergensen <mmj@mysql.com> | ||
929 | 924 | |||
930 | 925 | - Spring cleanup | ||
931 | 926 | |||
932 | 927 | * Thu Apr 19 2007 Mads Martin Joergensen <mmj@mysql.com> | ||
933 | 928 | |||
934 | 929 | - If sbin/restorecon exists then run it | ||
935 | 930 | |||
936 | 931 | * Wed Apr 18 2007 Kent Boortz <kent@mysql.com> | ||
937 | 932 | |||
938 | 933 | - Packed unpacked files | ||
939 | 934 | |||
940 | 935 | /usr/sbin/ndb_cpcd | ||
941 | 936 | /usr/bin/mysql_upgrade_shell | ||
942 | 937 | /usr/bin/innochecksum | ||
943 | 938 | /usr/share/man/man1/ndb_cpcd.1.gz | ||
944 | 939 | /usr/share/man/man1/innochecksum.1.gz | ||
945 | 940 | /usr/share/man/man1/mysql_fix_extensions.1.gz | ||
946 | 941 | /usr/share/man/man1/mysql_secure_installation.1.gz | ||
947 | 942 | /usr/share/man/man1/mysql_tableinfo.1.gz | ||
948 | 943 | /usr/share/man/man1/mysql_waitpid.1.gz | ||
949 | 944 | |||
950 | 945 | - Commands currently not installed but that has man pages | ||
951 | 946 | |||
952 | 947 | /usr/share/man/man1/make_win_bin_dist.1.gz | ||
953 | 948 | /usr/share/man/man1/make_win_src_distribution.1.gz | ||
954 | 949 | /usr/share/man/man1/mysql-stress-test.pl.1.gz | ||
955 | 950 | /usr/share/man/man1/ndb_print_backup_file.1.gz | ||
956 | 951 | /usr/share/man/man1/ndb_print_schema_file.1.gz | ||
957 | 952 | /usr/share/man/man1/ndb_print_sys_file.1.gz | ||
958 | 953 | |||
959 | 954 | * Thu Mar 22 2007 Joerg Bruehe <joerg@mysql.com> | ||
960 | 955 | |||
961 | 956 | - Add "comment" options to the test runs, for better log analysis. | ||
962 | 957 | |||
963 | 958 | * Wed Mar 21 2007 Joerg Bruehe <joerg@mysql.com> | ||
964 | 959 | |||
965 | 960 | - Add even more man pages. | ||
966 | 961 | |||
967 | 962 | * Fri Mar 16 2007 Joerg Bruehe <joerg@mysql.com> | ||
968 | 963 | |||
969 | 964 | - Build the server twice, once as "mysqld-debug" and once as "mysqld"; | ||
970 | 965 | test them both, and include them in the resulting file. | ||
971 | 966 | - Consequences of the fix for bug#20166: | ||
972 | 967 | Remove "mysql_create_system_tables", | ||
973 | 968 | new "mysql_fix_privilege_tables.sql" is included implicitly. | ||
974 | 969 | |||
975 | 970 | * Wed Mar 14 2007 Daniel Fischer <df@mysql.com> | ||
976 | 971 | |||
977 | 972 | - Adjust compile options some more and change naming of community | ||
978 | 973 | cluster RPMs to explicitly say 'cluster'. | ||
979 | 974 | |||
980 | 975 | * Mon Mar 12 2007 Daniel Fischer <df@mysql.com> | ||
981 | 976 | |||
982 | 977 | - Adjust compile options and other settings for 5.0 community builds. | ||
983 | 978 | |||
984 | 979 | * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com> | ||
985 | 980 | |||
986 | 981 | - Add several man pages which are now created. | ||
987 | 982 | |||
988 | 983 | * Mon Jan 29 2007 Mads Martin Joergensen <mmj@mysql.com> | ||
989 | 984 | |||
990 | 985 | - Make sure SELinux works correctly. Files from Colin Charles. | ||
991 | 986 | |||
992 | 987 | * Fri Jan 05 2007 Kent Boortz <kent@mysql.com> | ||
993 | 988 | |||
994 | 989 | - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the | ||
995 | 990 | correct "libgcc.a" path is returned for the 32/64 bit architecture. | ||
996 | 991 | |||
997 | 992 | * Tue Dec 19 2006 Joerg Bruehe <joerg@mysql.com> | ||
998 | 993 | |||
999 | 994 | - The man page for "mysqld" is now in section 8. | ||
1000 | 995 | |||
1001 | 996 | * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com> | ||
1002 | 997 | |||
1003 | 998 | - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql" | ||
1004 | 999 | in the server RPM. | ||
1005 | 1000 | - The "mysqlmanager" man page was relocated to section 8, reflect that. | ||
1006 | 1001 | |||
1007 | 1002 | * Fri Nov 17 2006 Mads Martin Joergensen <mmj@mysql.com> | ||
1008 | 1003 | |||
1009 | 1004 | - Really fix obsoletes/provides for community -> this | ||
1010 | 1005 | - Make it possible to not run test by setting | ||
1011 | 1006 | MYSQL_RPMBUILD_TEST to "no" | ||
1012 | 1007 | |||
1013 | 1008 | * Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com> | ||
1014 | 1009 | |||
1015 | 1010 | - Switch from "make test*" to explicit calls of the test suite, | ||
1016 | 1011 | so that "report features" can be used. | ||
1017 | 1012 | |||
1018 | 1013 | * Wed Nov 15 2006 Kent Boortz <kent@mysql.com> | ||
1019 | 1014 | |||
1020 | 1015 | - Added "--with cluster" and "--define cluster{_gpl}" | ||
1021 | 1016 | |||
1022 | 1017 | * Tue Oct 24 2006 Mads Martin Joergensen <mmj@mysql.com> | ||
1023 | 1018 | |||
1024 | 1019 | - Shared need to Provide/Obsolete mysql-shared | ||
1025 | 1020 | |||
1026 | 1021 | * Mon Oct 23 2006 Mads Martin Joergensen <mmj@mysql.com> | ||
1027 | 1022 | |||
1028 | 1023 | - Run sbin/restorecon after db init (Bug#12676) | ||
1029 | 1024 | |||
1030 | 1025 | * Thu Jul 06 2006 Joerg Bruehe <joerg@mysql.com> | ||
1031 | 1026 | |||
1032 | 1027 | - Correct a typing error in my previous change. | ||
1033 | 1028 | |||
1034 | 1029 | * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com> | ||
1035 | 1030 | |||
1036 | 1031 | - Use the Perl script to run the tests, because it will automatically check | ||
1037 | 1032 | whether the server is configured with SSL. | ||
1038 | 1033 | |||
1039 | 1034 | * Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com> | ||
1040 | 1035 | |||
1041 | 1036 | - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade, | ||
1042 | 1037 | there are some more aspects which need to be solved before this is possible. | ||
1043 | 1038 | For now, just ensure the binary "mysql_upgrade" is delivered and installed. | ||
1044 | 1039 | |||
1045 | 1040 | * Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com> | ||
1046 | 1041 | |||
1047 | 1042 | - Move "mysqldumpslow" from the client RPM to the server RPM (bug#20216). | ||
1048 | 1043 | |||
1049 | 1044 | * Wed Jun 21 2006 Joerg Bruehe <joerg@mysql.com> | ||
1050 | 1045 | |||
1051 | 1046 | - To run "mysql_upgrade", we need a running server; | ||
1052 | 1047 | start it in isolation and skip password checks. | ||
1053 | 1048 | |||
1054 | 1049 | * Sat May 23 2006 Kent Boortz <kent@mysql.com> | ||
1055 | 1050 | |||
1056 | 1051 | - Always compile for PIC, position independent code. | ||
1057 | 1052 | |||
1058 | 1053 | * Fri Apr 28 2006 Kent Boortz <kent@mysql.com> | ||
1059 | 1054 | |||
1060 | 1055 | - Install and run "mysql_upgrade" | ||
1061 | 1056 | |||
1062 | 1057 | * Sat Apr 01 2006 Kent Boortz <kent@mysql.com> | ||
1063 | 1058 | |||
1064 | 1059 | - Allow to override $LDFLAGS | ||
1065 | 1060 | |||
1066 | 1061 | * Fri Jan 06 2006 Lenz Grimmer <lenz@mysql.com> | ||
1067 | 1062 | |||
1068 | 1063 | - added a MySQL-test subpackage (BUG#16070) | ||
1069 | 1064 | |||
1070 | 1065 | * Tue Dec 27 2005 Joerg Bruehe <joerg@mysql.com> | ||
1071 | 1066 | |||
1072 | 1067 | - Some minor alignment with the 4.1 version | ||
1073 | 1068 | |||
1074 | 1069 | * Wed Dec 14 2005 Rodrigo Novo <rodrigo@mysql.com> | ||
1075 | 1070 | |||
1076 | 1071 | - Cosmetic changes: source code location & rpm packager | ||
1077 | 1072 | - Protect "nm -D" against libtool weirdness | ||
1078 | 1073 | - Add libz.a & libz.la to the list of files for subpackage -devel | ||
1079 | 1074 | - moved --with-zlib-dir=bundled out of BuildMySQL, as it doesn't makes | ||
1080 | 1075 | sense for the shared package | ||
1081 | 1076 | |||
1082 | 1077 | * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com> | ||
1083 | 1078 | |||
1084 | 1079 | - Extend the file existence check for "init.d/mysql" on un-install | ||
1085 | 1080 | to also guard the call to "insserv"/"chkconfig". | ||
1086 | 1081 | |||
1087 | 1082 | * Wed Nov 16 2005 Lenz Grimmer <lenz@mysql.com> | ||
1088 | 1083 | |||
1089 | 1084 | - added mysql_client_test to the "client" subpackage (BUG#14546) | ||
1090 | 1085 | |||
1091 | 1086 | * Tue Nov 15 2005 Lenz Grimmer <lenz@mysql.com> | ||
1092 | 1087 | |||
1093 | 1088 | - changed default definitions to build a standard GPL release when not | ||
1094 | 1089 | defining anything else | ||
1095 | 1090 | - install the shared libs more elegantly by using "make install" | ||
1096 | 1091 | |||
1097 | 1092 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
1098 | 1093 | |||
1099 | 1094 | - Made yaSSL support an option (off by default) | ||
1100 | 1095 | |||
1101 | 1096 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
1102 | 1097 | |||
1103 | 1098 | - Enabled yaSSL support | ||
1104 | 1099 | |||
1105 | 1100 | * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
1106 | 1101 | |||
1107 | 1102 | - added a usermod call to assign a potential existing mysql user to the | ||
1108 | 1103 | correct user group (BUG#12823) | ||
1109 | 1104 | - added a separate macro "mysqld_group" to be able to define the | ||
1110 | 1105 | user group of the mysql user seperately, if desired. | ||
1111 | 1106 | |||
1112 | 1107 | * Fri Oct 1 2005 Kent Boortz <kent@mysql.com> | ||
1113 | 1108 | |||
1114 | 1109 | - Copy the config.log file to location outside | ||
1115 | 1110 | the build tree | ||
1116 | 1111 | |||
1117 | 1112 | * Fri Sep 30 2005 Lenz Grimmer <lenz@mysql.com> | ||
1118 | 1113 | |||
1119 | 1114 | - don't use install-strip to install the binaries (strip segfaults on | ||
1120 | 1115 | icc-compiled binaries on IA64) | ||
1121 | 1116 | |||
1122 | 1117 | * Thu Sep 22 2005 Lenz Grimmer <lenz@mysql.com> | ||
1123 | 1118 | |||
1124 | 1119 | - allow overriding the CFLAGS (needed for Intel icc compiles) | ||
1125 | 1120 | - replace the CPPFLAGS=-DBIG_TABLES with "--with-big-tables" configure option | ||
1126 | 1121 | |||
1127 | 1122 | * Fri Aug 19 2005 Joerg Bruehe <joerg@mysql.com> | ||
1128 | 1123 | |||
1129 | 1124 | - Protect against failing tests. | ||
1130 | 1125 | |||
1131 | 1126 | * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com> | ||
1132 | 1127 | |||
1133 | 1128 | - Fixed the creation of the mysql user group account in the postinstall | ||
1134 | 1129 | section (BUG 12348) | ||
1135 | 1130 | |||
1136 | 1131 | * Fri Jul 29 2005 Lenz Grimmer <lenz@mysql.com> | ||
1137 | 1132 | |||
1138 | 1133 | - Fixed external RPM Requirements to better suit the target distribution | ||
1139 | 1134 | (BUG 12233) | ||
1140 | 1135 | |||
1141 | 1136 | * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com> | ||
1142 | 1137 | |||
1143 | 1138 | - create a "mysql" user group and assign the mysql user account to that group | ||
1144 | 1139 | in the server postinstall section. (BUG 10984) | ||
1145 | 1140 | |||
1146 | 1141 | * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com> | ||
1147 | 1142 | |||
1148 | 1143 | - use "mysqldatadir" variable instead of hard-coding the path multiple times | ||
1149 | 1144 | - use the "mysqld_user" variable on all occasions a user name is referenced | ||
1150 | 1145 | - removed (incomplete) Brazilian translations | ||
1151 | 1146 | - removed redundant release tags from the subpackage descriptions | ||
1152 | 1147 | |||
1153 | 1148 | * Fri May 27 2005 Lenz Grimmer <lenz@mysql.com> | ||
1154 | 1149 | |||
1155 | 1150 | - fixed file list (removed libnisam.a and libmerge.a from the devel subpackage) | ||
1156 | 1151 | - force running the test suite | ||
1157 | 1152 | |||
1158 | 1153 | * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com> | ||
1159 | 1154 | |||
1160 | 1155 | - Enabled the "blackhole" storage engine for the Max RPM | ||
1161 | 1156 | |||
1162 | 1157 | * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
1163 | 1158 | |||
1164 | 1159 | - removed the MySQL manual files (html/ps/texi) - they have been removed | ||
1165 | 1160 | from the MySQL sources and are now available seperately. | ||
1166 | 1161 | |||
1167 | 1162 | * Mon Apr 4 2005 Petr Chardin <petr@mysql.com> | ||
1168 | 1163 | |||
1169 | 1164 | - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into | ||
1170 | 1165 | mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively | ||
1171 | 1166 | |||
1172 | 1167 | * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com> | ||
1173 | 1168 | |||
1174 | 1169 | - Disabled RAID in the Max binaries once and for all (it has finally been | ||
1175 | 1170 | removed from the source tree) | ||
1176 | 1171 | |||
1177 | 1172 | * Sun Feb 20 2005 Petr Chardin <petr@mysql.com> | ||
1178 | 1173 | |||
1179 | 1174 | - Install MySQL Instance Manager together with mysqld, touch mysqlmanager | ||
1180 | 1175 | password file | ||
1181 | 1176 | |||
1182 | 1177 | * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
1183 | 1178 | |||
1184 | 1179 | - Fixed the compilation comments and moved them into the separate build sections | ||
1185 | 1180 | for Max and Standard | ||
1186 | 1181 | |||
1187 | 1182 | * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com> | ||
1188 | 1183 | |||
1189 | 1184 | - enabled the "Ndbcluster" storage engine for the max binary | ||
1190 | 1185 | - added extra make install in ndb subdir after Max build to get ndb binaries | ||
1191 | 1186 | - added packages for ndbcluster storage engine | ||
1192 | 1187 | |||
1193 | 1188 | * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
1194 | 1189 | |||
1195 | 1190 | - replaced obsoleted "BuildPrereq" with "BuildRequires" instead | ||
1196 | 1191 | |||
1197 | 1192 | * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
1198 | 1193 | |||
1199 | 1194 | - enabled the "Federated" storage engine for the max binary | ||
1200 | 1195 | |||
1201 | 1196 | * Tue Jan 04 2005 Petr Chardin <petr@mysql.com> | ||
1202 | 1197 | |||
1203 | 1198 | - ISAM and merge storage engines were purged. As well as appropriate | ||
1204 | 1199 | tools and manpages (isamchk and isamlog) | ||
1205 | 1200 | |||
1206 | 1201 | * Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com> | ||
1207 | 1202 | |||
1208 | 1203 | - enabled the "Archive" storage engine for the max binary | ||
1209 | 1204 | - enabled the "CSV" storage engine for the max binary | ||
1210 | 1205 | - enabled the "Example" storage engine for the max binary | ||
1211 | 1206 | |||
1212 | 1207 | * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com> | ||
1213 | 1208 | |||
1214 | 1209 | - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860) | ||
1215 | 1210 | |||
1216 | 1211 | * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com> | ||
1217 | 1212 | |||
1218 | 1213 | - do not link statically on IA64/AMD64 as these systems do not have | ||
1219 | 1214 | a patched glibc installed | ||
1220 | 1215 | |||
1221 | 1216 | * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com> | ||
1222 | 1217 | |||
1223 | 1218 | - Added libmygcc.a to the devel subpackage (required to link applications | ||
1224 | 1219 | against the the embedded server libmysqld.a) (BUG 4921) | ||
1225 | 1220 | |||
1226 | 1221 | * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com> | ||
1227 | 1222 | |||
1228 | 1223 | - Added EXCEPTIONS-CLIENT to the "devel" package | ||
1229 | 1224 | |||
1230 | 1225 | * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com> | ||
1231 | 1226 | |||
1232 | 1227 | - disabled OpenSSL in the Max binaries again (the RPM packages were the | ||
1233 | 1228 | only exception to this anyway) (BUG 1043) | ||
1234 | 1229 | |||
1235 | 1230 | * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com> | ||
1236 | 1231 | |||
1237 | 1232 | - fixed server postinstall (mysql_install_db was called with the wrong | ||
1238 | 1233 | parameter) | ||
1239 | 1234 | |||
1240 | 1235 | * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com> | ||
1241 | 1236 | |||
1242 | 1237 | - added mysql_tzinfo_to_sql to the server subpackage | ||
1243 | 1238 | - run "make clean" instead of "make distclean" | ||
1244 | 1239 | |||
1245 | 1240 | * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com> | ||
1246 | 1241 | |||
1247 | 1242 | - added ncurses-devel to the build prerequisites (BUG 3377) | ||
1248 | 1243 | |||
1249 | 1244 | * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com> | ||
1250 | 1245 | |||
1251 | 1246 | - when using gcc, _always_ use CXX=gcc | ||
1252 | 1247 | - replaced Copyright with License field (Copyright is obsolete) | ||
1253 | 1248 | |||
1254 | 1249 | * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com> | ||
1255 | 1250 | |||
1256 | 1251 | - added myisam_ftdump to the Server package | ||
1257 | 1252 | |||
1258 | 1253 | * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com> | ||
1259 | 1254 | |||
1260 | 1255 | - link the mysql client against libreadline instead of libedit (BUG 2289) | ||
1261 | 1256 | |||
1262 | 1257 | * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com> | ||
1263 | 1258 | |||
1264 | 1259 | - marked /etc/logrotate.d/mysql as a config file (BUG 2156) | ||
1265 | 1260 | |||
1266 | 1261 | * Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com> | ||
1267 | 1262 | |||
1268 | 1263 | - fixed file permissions (BUG 1672) | ||
1269 | 1264 | |||
1270 | 1265 | * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
1271 | 1266 | |||
1272 | 1267 | - made testing for gcc3 a bit more robust | ||
1273 | 1268 | |||
1274 | 1269 | * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
1275 | 1270 | |||
1276 | 1271 | - added missing file mysql_create_system_tables to the server subpackage | ||
1277 | 1272 | |||
1278 | 1273 | * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com> | ||
1279 | 1274 | |||
1280 | 1275 | - removed dependency on MySQL-client from the MySQL-devel subpackage | ||
1281 | 1276 | as it is not really required. (BUG 1610) | ||
1282 | 1277 | |||
1283 | 1278 | * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com> | ||
1284 | 1279 | |||
1285 | 1280 | - Fixed BUG 1162 (removed macro names from the changelog) | ||
1286 | 1281 | - Really fixed BUG 998 (disable the checking for installed but | ||
1287 | 1282 | unpackaged files) | ||
1288 | 1283 | |||
1289 | 1284 | * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
1290 | 1285 | |||
1291 | 1286 | - Fixed BUG 959 (libmysqld not being compiled properly) | ||
1292 | 1287 | - Fixed BUG 998 (RPM build errors): added missing files to the | ||
1293 | 1288 | distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow, | ||
1294 | 1289 | mysql_fix_privilege_tables.1), removed "-n" from install section. | ||
1295 | 1290 | |||
1296 | 1291 | * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com> | ||
1297 | 1292 | |||
1298 | 1293 | - removed the GIF Icon (file was not included in the sources anyway) | ||
1299 | 1294 | - removed unused variable shared_lib_version | ||
1300 | 1295 | - do not run automake before building the standard binary | ||
1301 | 1296 | (should not be necessary) | ||
1302 | 1297 | - add server suffix '-standard' to standard binary (to be in line | ||
1303 | 1298 | with the binary tarball distributions) | ||
1304 | 1299 | - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir, | ||
1305 | 1300 | _datadir, _includedir) throughout the spec file. | ||
1306 | 1301 | - allow overriding CC and CXX (required when building with other compilers) | ||
1307 | 1302 | |||
1308 | 1303 | * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com> | ||
1309 | 1304 | |||
1310 | 1305 | - re-enabled RAID again | ||
1311 | 1306 | |||
1312 | 1307 | * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com> | ||
1313 | 1308 | |||
1314 | 1309 | - disabled MyISAM RAID (--with-raid) - it throws an assertion which | ||
1315 | 1310 | needs to be investigated first. | ||
1316 | 1311 | |||
1317 | 1312 | * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com> | ||
1318 | 1313 | |||
1319 | 1314 | - added missing file mysql_secure_installation to server subpackage | ||
1320 | 1315 | (BUG 141) | ||
1321 | 1316 | |||
1322 | 1317 | * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
1323 | 1318 | |||
1324 | 1319 | - re-added missing pre- and post(un)install scripts to server subpackage | ||
1325 | 1320 | - added config file /etc/my.cnf to the file list (just for completeness) | ||
1326 | 1321 | - make sure to create the datadir with 755 permissions | ||
1327 | 1322 | |||
1328 | 1323 | * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com> | ||
1329 | 1324 | |||
1330 | 1325 | - removed unused CC and CXX variables | ||
1331 | 1326 | - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS | ||
1332 | 1327 | |||
1333 | 1328 | * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com> | ||
1334 | 1329 | |||
1335 | 1330 | - renamed package "MySQL" to "MySQL-server" | ||
1336 | 1331 | - fixed Copyright tag | ||
1337 | 1332 | - added mysql_waitpid to client subpackage (required for mysql-test-run) | ||
1338 | 1333 | |||
1339 | 1334 | * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com> | ||
1340 | 1335 | |||
1341 | 1336 | - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of | ||
1342 | 1337 | Linux distributions now support this scheme as proposed by the LSB either | ||
1343 | 1338 | directly or via a compatibility symlink) | ||
1344 | 1339 | - Use new "restart" init script action instead of starting and stopping | ||
1345 | 1340 | separately | ||
1346 | 1341 | - Be more flexible in activating the automatic bootup - use insserv (on | ||
1347 | 1342 | older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and | ||
1348 | 1343 | others) to create the respective symlinks | ||
1349 | 1344 | |||
1350 | 1345 | * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com> | ||
1351 | 1346 | |||
1352 | 1347 | - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches | ||
1353 | 1348 | (mixing 3.23 and 4.0 packages) | ||
1354 | 1349 | |||
1355 | 1350 | * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com> | ||
1356 | 1351 | |||
1357 | 1352 | - Turn off OpenSSL in MySQL-Max for now until it works properly again | ||
1358 | 1353 | - enable RAID for the Max binary instead | ||
1359 | 1354 | - added compatibility link: safe_mysqld -> mysqld_safe to ease the | ||
1360 | 1355 | transition from 3.23 | ||
1361 | 1356 | |||
1362 | 1357 | * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com> | ||
1363 | 1358 | |||
1364 | 1359 | - Reworked the build steps a little bit: the Max binary is supposed | ||
1365 | 1360 | to include OpenSSL, which cannot be linked statically, thus trying | ||
1366 | 1361 | to statically link against a special glibc is futile anyway | ||
1367 | 1362 | - because of this, it is not required to make yet another build run | ||
1368 | 1363 | just to compile the shared libs (saves a lot of time) | ||
1369 | 1364 | - updated package description of the Max subpackage | ||
1370 | 1365 | - clean up the BuildRoot directory afterwards | ||
1371 | 1366 | |||
1372 | 1367 | * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com> | ||
1373 | 1368 | |||
1374 | 1369 | - Updated Packager information | ||
1375 | 1370 | - Fixed the build options: the regular package is supposed to | ||
1376 | 1371 | include InnoDB and linked statically, while the Max package | ||
1377 | 1372 | should include BDB and SSL support | ||
1378 | 1373 | |||
1379 | 1374 | * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com> | ||
1380 | 1375 | |||
1381 | 1376 | - Use more RPM macros (e.g. infodir, mandir) to make the spec | ||
1382 | 1377 | file more portable | ||
1383 | 1378 | - reorganized the installation of documentation files: let RPM | ||
1384 | 1379 | take care of this | ||
1385 | 1380 | - reorganized the file list: actually install man pages along | ||
1386 | 1381 | with the binaries of the respective subpackage | ||
1387 | 1382 | - do not include libmysqld.a in the devel subpackage as well, if we | ||
1388 | 1383 | have a special "embedded" subpackage | ||
1389 | 1384 | - reworked the package descriptions | ||
1390 | 1385 | |||
1391 | 1386 | * Mon Oct 8 2001 Monty | ||
1392 | 1387 | |||
1393 | 1388 | - Added embedded server as a separate RPM | ||
1394 | 1389 | |||
1395 | 1390 | * Fri Apr 13 2001 Monty | ||
1396 | 1391 | |||
1397 | 1392 | - Added mysqld-max to the distribution | ||
1398 | 1393 | |||
1399 | 1394 | * Tue Jan 2 2001 Monty | ||
1400 | 1395 | |||
1401 | 1396 | - Added mysql-test to the bench package | ||
1402 | 1397 | |||
1403 | 1398 | * Fri Aug 18 2000 Tim Smith <tim@mysql.com> | ||
1404 | 1399 | |||
1405 | 1400 | - Added separate libmysql_r directory; now both a threaded | ||
1406 | 1401 | and non-threaded library is shipped. | ||
1407 | 1402 | |||
1408 | 1403 | * Wed Sep 28 1999 David Axmark <davida@mysql.com> | ||
1409 | 1404 | |||
1410 | 1405 | - Added the support-files/my-example.cnf to the docs directory. | ||
1411 | 1406 | |||
1412 | 1407 | - Removed devel dependency on base since it is about client | ||
1413 | 1408 | development. | ||
1414 | 1409 | |||
1415 | 1410 | * Wed Sep 8 1999 David Axmark <davida@mysql.com> | ||
1416 | 1411 | |||
1417 | 1412 | - Cleaned up some for 3.23. | ||
1418 | 1413 | |||
1419 | 1414 | * Thu Jul 1 1999 David Axmark <davida@mysql.com> | ||
1420 | 1415 | |||
1421 | 1416 | - Added support for shared libraries in a separate sub | ||
1422 | 1417 | package. Original fix by David Fox (dsfox@cogsci.ucsd.edu) | ||
1423 | 1418 | |||
1424 | 1419 | - The --enable-assembler switch is now automatically disables on | ||
1425 | 1420 | platforms there assembler code is unavailable. This should allow | ||
1426 | 1421 | building this RPM on non i386 systems. | ||
1427 | 1422 | |||
1428 | 1423 | * Mon Feb 22 1999 David Axmark <david@detron.se> | ||
1429 | 1424 | |||
1430 | 1425 | - Removed unportable cc switches from the spec file. The defaults can | ||
1431 | 1426 | now be overridden with environment variables. This feature is used | ||
1432 | 1427 | to compile the official RPM with optimal (but compiler version | ||
1433 | 1428 | specific) switches. | ||
1434 | 1429 | |||
1435 | 1430 | - Removed the repetitive description parts for the sub rpms. Maybe add | ||
1436 | 1431 | again if RPM gets a multiline macro capability. | ||
1437 | 1432 | |||
1438 | 1433 | - Added support for a pt_BR translation. Translation contributed by | ||
1439 | 1434 | Jorge Godoy <jorge@bestway.com.br>. | ||
1440 | 1435 | |||
1441 | 1436 | * Wed Nov 4 1998 David Axmark <david@detron.se> | ||
1442 | 1437 | |||
1443 | 1438 | - A lot of changes in all the rpm and install scripts. This may even | ||
1444 | 1439 | be a working RPM :-) | ||
1445 | 1440 | |||
1446 | 1441 | * Sun Aug 16 1998 David Axmark <david@detron.se> | ||
1447 | 1442 | |||
1448 | 1443 | - A developers changelog for MySQL is available in the source RPM. And | ||
1449 | 1444 | there is a history of major user visible changed in the Reference | ||
1450 | 1445 | Manual. Only RPM specific changes will be documented here. | ||
1451 | 0 | 1446 | ||
1452 | === modified file 'innodb_fix_misc.patch' | |||
1453 | --- innodb_fix_misc.patch 2010-05-26 10:15:29 +0000 | |||
1454 | +++ innodb_fix_misc.patch 2010-05-27 20:37:26 +0000 | |||
1455 | @@ -6,7 +6,7 @@ | |||
1456 | 6 | #define INNODB_VERSION_BUGFIX 8 | 6 | #define INNODB_VERSION_BUGFIX 8 |
1457 | 7 | 7 | ||
1458 | 8 | +#ifndef PERCONA_INNODB_VERSION | 8 | +#ifndef PERCONA_INNODB_VERSION |
1460 | 9 | +#define PERCONA_INNODB_VERSION unknown | 9 | +#define PERCONA_INNODB_VERSION 11.0 |
1461 | 10 | +#endif | 10 | +#endif |
1462 | 11 | + | 11 | + |
1463 | 12 | + | 12 | + |