1 | %define mysqld_user mysql |
---|
2 | %define mysqld_group mysql |
---|
3 | %define server_suffix -community |
---|
4 | %define mysqldatadir /var/lib/mysql |
---|
5 | |
---|
6 | %{?_with_static:%define STATIC_BUILD 1} |
---|
7 | %{!?_with_static:%define STATIC_BUILD 0} |
---|
8 | |
---|
9 | # Working around perl dependency problem |
---|
10 | %if %{?_dist_release}!="vl5" |
---|
11 | %define __perl_requires %{SOURCE998} |
---|
12 | %else |
---|
13 | %define __find_requires %{SOURCE999} |
---|
14 | %endif |
---|
15 | |
---|
16 | # We don't package all files installed into the build root by intention - |
---|
17 | # See BUG#998 for details. |
---|
18 | %define _unpackaged_files_terminate_build 0 |
---|
19 | |
---|
20 | %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com |
---|
21 | |
---|
22 | %define mysql_version 5.1.73 |
---|
23 | %define client_version 16 |
---|
24 | |
---|
25 | %if %{?_dist_release}!="vl5" |
---|
26 | %define libpkgname libmysqlclient%{client_version} |
---|
27 | %else |
---|
28 | %define libpkgname MySQL-shared |
---|
29 | %endif |
---|
30 | |
---|
31 | Packager: tomop |
---|
32 | Vendor: Project Vine |
---|
33 | Distribution: Vine Linux |
---|
34 | |
---|
35 | Name: MySQL |
---|
36 | Summary: MySQL: a very fast and reliable SQL database server |
---|
37 | Version: %{mysql_version} |
---|
38 | Release: 2%{_dist_release} |
---|
39 | |
---|
40 | Group: Applications/Databases |
---|
41 | # exceptions allow client libraries to be linked with most open source SW, |
---|
42 | # not only GPL code. |
---|
43 | License: GPLv2 with exceptions |
---|
44 | URL: http://www.mysql.com/ |
---|
45 | |
---|
46 | Source: mysql-%{version}.tar.gz |
---|
47 | # Don't depend on lib::mtr* |
---|
48 | Source998: perl-requires-%{name}.sh |
---|
49 | Source999: filter-requires-%{name}.sh |
---|
50 | |
---|
51 | Patch0: mysql-5.1.62-jp-all.patch |
---|
52 | |
---|
53 | # lib64 patch for vine |
---|
54 | Patch200: pysql-5.1.44-lib64.patch |
---|
55 | |
---|
56 | # security fix |
---|
57 | Patch1000: mysql5.5_CVE-2014-0001.patch |
---|
58 | Patch1010: mysql5.5_CVE-2014-4274.patch |
---|
59 | |
---|
60 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
61 | BuildRequires: perl, readline-devel |
---|
62 | BuildRequires: gcc-c++, ncurses-devel, zlib-devel |
---|
63 | %if %{?_dist_release}!="vl5" |
---|
64 | BuildRequires: openssl-devel |
---|
65 | %endif |
---|
66 | BuildRequires: groff, libtool, automake |
---|
67 | Requires: fileutils sh-utils |
---|
68 | Provides: msqlormysql MySQL-server mysql |
---|
69 | Obsoletes: mysql MySQL5 |
---|
70 | |
---|
71 | # From the manual |
---|
72 | %description |
---|
73 | The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, |
---|
74 | and robust SQL (Structured Query Language) database server. MySQL Server |
---|
75 | is intended for mission-critical, heavy-load production systems as well |
---|
76 | as for embedding into mass-deployed software. MySQL is a trademark of |
---|
77 | Sun Microsystems, Inc. |
---|
78 | |
---|
79 | Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved. |
---|
80 | Use is subject to license terms. |
---|
81 | |
---|
82 | This software comes with ABSOLUTELY NO WARRANTY. This is free software, |
---|
83 | and you are welcome to modify and redistribute it under the GPL license. |
---|
84 | |
---|
85 | The MySQL web site (http://www.mysql.com/) provides the latest |
---|
86 | news and information about the MySQL software. Also please see the |
---|
87 | documentation and the manual for more information. |
---|
88 | |
---|
89 | %package server |
---|
90 | Release: %{release} |
---|
91 | Summary: MySQL: a very fast and reliable SQL database server |
---|
92 | Group: Applications/Databases |
---|
93 | Requires: fileutils sh-utils net-tools |
---|
94 | Provides: msqlormysql mysql-server mysql MySQL MySQL5-server |
---|
95 | Obsoletes: MySQL mysql mysql-server MySQL5-server MySQL-Max |
---|
96 | |
---|
97 | %description server |
---|
98 | The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, |
---|
99 | and robust SQL (Structured Query Language) database server. MySQL Server |
---|
100 | is intended for mission-critical, heavy-load production systems as well |
---|
101 | as for embedding into mass-deployed software. MySQL is a trademark of |
---|
102 | Sun Microsystems, Inc. |
---|
103 | |
---|
104 | Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved. |
---|
105 | Use is subject to license terms. |
---|
106 | |
---|
107 | This software comes with ABSOLUTELY NO WARRANTY. This is free software, |
---|
108 | and you are welcome to modify and redistribute it under the GPL license. |
---|
109 | |
---|
110 | The MySQL web site (http://www.mysql.com/) provides the latest |
---|
111 | news and information about the MySQL software. Also please see the |
---|
112 | documentation and the manual for more information. |
---|
113 | |
---|
114 | This package includes the MySQL server binary (incl. InnoDB) as well |
---|
115 | as related utilities to run and administrate a MySQL server. |
---|
116 | |
---|
117 | If you want to access and work with the database, you have to install |
---|
118 | package "MySQL-client" as well! |
---|
119 | |
---|
120 | %package client |
---|
121 | Summary: MySQL - Client |
---|
122 | Group: Applications/Databases |
---|
123 | Obsoletes: mysql-client MySQL5-client |
---|
124 | Provides: mysql-client MySQL5-client |
---|
125 | |
---|
126 | %description client |
---|
127 | This package contains the standard MySQL clients and administration tools. |
---|
128 | |
---|
129 | %{see_base} |
---|
130 | |
---|
131 | %package ndb-storage |
---|
132 | Summary: MySQL - ndbcluster storage engine |
---|
133 | Group: Applications/Databases |
---|
134 | |
---|
135 | %description ndb-storage |
---|
136 | This package contains the ndbcluster storage engine. |
---|
137 | It is necessary to have this package installed on all |
---|
138 | computers that should store ndbcluster table data. |
---|
139 | Note that this storage engine can only be used in conjunction |
---|
140 | with the MySQL Max server. |
---|
141 | |
---|
142 | %{see_base} |
---|
143 | |
---|
144 | %package ndb-management |
---|
145 | Summary: MySQL - ndbcluster storage engine management |
---|
146 | Group: Applications/Databases |
---|
147 | |
---|
148 | %description ndb-management |
---|
149 | This package contains ndbcluster storage engine management. |
---|
150 | It is necessary to have this package installed on at least |
---|
151 | one computer in the cluster. |
---|
152 | |
---|
153 | %{see_base} |
---|
154 | |
---|
155 | %package ndb-tools |
---|
156 | Summary: MySQL - ndbcluster storage engine basic tools |
---|
157 | Group: Applications/Databases |
---|
158 | |
---|
159 | %description ndb-tools |
---|
160 | This package contains ndbcluster storage engine basic tools. |
---|
161 | |
---|
162 | %{see_base} |
---|
163 | |
---|
164 | %package ndb-extra |
---|
165 | Summary: MySQL - ndbcluster storage engine extra tools |
---|
166 | Group: Applications/Databases |
---|
167 | |
---|
168 | %description ndb-extra |
---|
169 | This package contains some extra ndbcluster storage engine tools for the advanced user. |
---|
170 | They should be used with caution. |
---|
171 | |
---|
172 | %{see_base} |
---|
173 | |
---|
174 | %package test |
---|
175 | Requires: %{name}-client = %{version}-%{release} perl-DBI perl |
---|
176 | Summary: MySQL - Test suite |
---|
177 | Group: Applications/Databases |
---|
178 | Obsoletes: mysql-bench MySQL5-bench MySQL-bench |
---|
179 | |
---|
180 | %description test |
---|
181 | This package contains the MySQL regression test suite. |
---|
182 | |
---|
183 | %{see_base} |
---|
184 | |
---|
185 | |
---|
186 | %package devel |
---|
187 | Summary: MySQL - Development header files and libraries |
---|
188 | Group: Development/Libraries |
---|
189 | Requires: %{libpkgname} = %{version}-%{release} |
---|
190 | %if %{?_dist_release}!="vl5" |
---|
191 | Requires: openssl-devel |
---|
192 | %endif |
---|
193 | Requires: zlib-devel |
---|
194 | Provides: mysql-devel MySQL5-devel |
---|
195 | Obsoletes: mysql-devel MySQL5-devel |
---|
196 | |
---|
197 | %description devel |
---|
198 | This package contains the development header files and libraries |
---|
199 | necessary to develop MySQL client applications. |
---|
200 | |
---|
201 | %{see_base} |
---|
202 | |
---|
203 | %package -n %{libpkgname} |
---|
204 | Summary: The shared libraries required for MySQL clients |
---|
205 | Group: System Environment/Libraries |
---|
206 | %if %{?_dist_release}!="vl5" |
---|
207 | Obsoletes: MySQL-shared < %{version} |
---|
208 | %endif |
---|
209 | |
---|
210 | %description -n %{libpkgname} |
---|
211 | This package contains the shared libraries (*.so*) which certain |
---|
212 | languages and applications need to dynamically load and use MySQL. |
---|
213 | |
---|
214 | |
---|
215 | %package embedded |
---|
216 | Summary: MySQL as an embeddable library |
---|
217 | Group: System Environment/Libraries |
---|
218 | Obsoletes: mysql-embedded MySQL5-embedded |
---|
219 | Provides: mysql-embedded MySQL5-embedded |
---|
220 | |
---|
221 | %description embedded |
---|
222 | MySQL is a multi-user, multi-threaded SQL database server. This |
---|
223 | package contains a version of the MySQL server that can be embedded |
---|
224 | into a client application instead of running as a separate process. |
---|
225 | |
---|
226 | %{see_base} |
---|
227 | |
---|
228 | %package embedded-devel |
---|
229 | Summary: Development files for MySQL as an embeddable library |
---|
230 | Group: Development/Libraries |
---|
231 | Requires: %{name}-embedded = %{version}-%{release} |
---|
232 | Requires: %{name}-devel = %{version}-%{release} |
---|
233 | |
---|
234 | %description embedded-devel |
---|
235 | MySQL is a multi-user, multi-threaded SQL database server. This |
---|
236 | package contains files needed for developing and testing with |
---|
237 | the embedded version of the MySQL server. |
---|
238 | |
---|
239 | %{see_base} |
---|
240 | |
---|
241 | %prep |
---|
242 | %setup -q -T -a 0 -c -n mysql-%{mysql_version} |
---|
243 | mv mysql-%{mysql_version} mysql-debug-%{mysql_version} |
---|
244 | |
---|
245 | pushd mysql-debug-%{mysql_version} |
---|
246 | %patch0 -p1 -b .jp |
---|
247 | %if %{_lib} == lib64 |
---|
248 | %patch200 -p0 -b .lib64 |
---|
249 | %endif |
---|
250 | %patch1000 -p0 -b .CVE-2014-0001 |
---|
251 | %patch1010 -p0 -b .CVE-2014-4274 |
---|
252 | aclocal |
---|
253 | autoheader |
---|
254 | libtoolize --automake --force |
---|
255 | automake --add-missing --copy |
---|
256 | autoconf |
---|
257 | perl -pi -e 's/-Werror"/"/' configure |
---|
258 | popd |
---|
259 | |
---|
260 | %setup -q -D -T -a 0 -n mysql-%{mysql_version} |
---|
261 | mv mysql-%{mysql_version} mysql-release-%{mysql_version} |
---|
262 | |
---|
263 | pushd mysql-release-%{mysql_version} |
---|
264 | %patch0 -p1 -b .jp |
---|
265 | %if %{_lib} == lib64 |
---|
266 | %patch200 -p0 -b .lib64 |
---|
267 | %endif |
---|
268 | %patch1000 -p0 -b .CVE-2014-0001 |
---|
269 | %patch1010 -p0 -b .CVE-2014-4274 |
---|
270 | aclocal |
---|
271 | autoheader |
---|
272 | libtoolize --automake --force |
---|
273 | automake --add-missing --copy |
---|
274 | autoconf |
---|
275 | perl -pi -e 's/-Werror"/"/' configure |
---|
276 | popd |
---|
277 | |
---|
278 | %build |
---|
279 | |
---|
280 | BuildMySQL() { |
---|
281 | # The --enable-assembler simply does nothing on systems that does not |
---|
282 | # support assembler speedups. |
---|
283 | sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \ |
---|
284 | CC=\"${CC:-$MYSQL_BUILD_CC}\" \ |
---|
285 | CXX=\"${CXX:-$MYSQL_BUILD_CXX}\" \ |
---|
286 | %ifarch x86_64 |
---|
287 | CFLAGS=\"$CFLAGS -fPIC\" \ |
---|
288 | CXXFLAGS=\"$CXXFLAGS -fPIC\" \ |
---|
289 | %else |
---|
290 | CFLAGS=\"$CFLAGS\" \ |
---|
291 | CXXFLAGS=\"$CXXFLAGS\" \ |
---|
292 | %endif |
---|
293 | LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \ |
---|
294 | ./configure \ |
---|
295 | $* \ |
---|
296 | --with-mysqld-ldflags='-static' \ |
---|
297 | --with-client-ldflags='-static' \ |
---|
298 | --with-zlib-dir=/usr \ |
---|
299 | --enable-silent-rules \ |
---|
300 | --enable-assembler \ |
---|
301 | --enable-local-infile \ |
---|
302 | --with-fast-mutexes \ |
---|
303 | --with-mysqld-user=%{mysqld_user} \ |
---|
304 | --with-unix-socket-path=/var/lib/mysql/mysql.sock \ |
---|
305 | --with-pic \ |
---|
306 | --prefix=/ \ |
---|
307 | --with-extra-charsets=all \ |
---|
308 | --exec-prefix=%{_exec_prefix} \ |
---|
309 | --libexecdir=%{_sbindir} \ |
---|
310 | --libdir=%{_libdir} \ |
---|
311 | --sysconfdir=%{_sysconfdir} \ |
---|
312 | --datadir=%{_datadir} \ |
---|
313 | --localstatedir=%{mysqldatadir} \ |
---|
314 | --infodir=%{_infodir} \ |
---|
315 | --includedir=%{_includedir} \ |
---|
316 | --mandir=%{_mandir} \ |
---|
317 | --enable-thread-safe-client \ |
---|
318 | --with-readline \ |
---|
319 | --with-innodb \ |
---|
320 | --with-ndbcluster \ |
---|
321 | --with-archive-storage-engine \ |
---|
322 | --with-csv-storage-engine \ |
---|
323 | --with-blackhole-storage-engine \ |
---|
324 | --with-federated-storage-engine \ |
---|
325 | --with-partition \ |
---|
326 | --with-big-tables \ |
---|
327 | --enable-shared \ |
---|
328 | %if %{?_dist_release}!="vl5" |
---|
329 | --with-ssl=/usr \ |
---|
330 | %endif |
---|
331 | --with-comment=\"VineLinux MySQL RPM\" \ |
---|
332 | --with-charset=utf8 \ |
---|
333 | --with-client-charset=utf8 \ |
---|
334 | " |
---|
335 | make %{?_smp_mflags} |
---|
336 | } |
---|
337 | # end of function definition "BuildMySQL" |
---|
338 | |
---|
339 | # Use the build root for temporary storage of the shared libraries. |
---|
340 | |
---|
341 | RBR=$RPM_BUILD_ROOT |
---|
342 | |
---|
343 | # Clean up the BuildRoot first |
---|
344 | [ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR; |
---|
345 | mkdir -p $RBR%{_libdir}/mysql |
---|
346 | |
---|
347 | # |
---|
348 | # Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc |
---|
349 | # |
---|
350 | PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin} |
---|
351 | export PATH |
---|
352 | |
---|
353 | # Build the Debug binary. |
---|
354 | |
---|
355 | # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and |
---|
356 | # including exceptions into the code |
---|
357 | if [ -z "$CXX" -a -z "$CC" ] |
---|
358 | then |
---|
359 | export CC="gcc" |
---|
360 | export CXX="gcc" |
---|
361 | fi |
---|
362 | |
---|
363 | # Prepare compiler flags |
---|
364 | CFLAGS=${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} |
---|
365 | CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti } |
---|
366 | |
---|
367 | ############################################################################## |
---|
368 | # |
---|
369 | # Build the debug version |
---|
370 | # |
---|
371 | ############################################################################## |
---|
372 | |
---|
373 | ( |
---|
374 | # We are in a subshell, so we can modify variables just for one run. |
---|
375 | CFLAGS=`echo " $CFLAGS " | \ |
---|
376 | sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ |
---|
377 | -e 's/^ //' -e 's/ $//'` |
---|
378 | CXXFLAGS=`echo " $CXXFLAGS " | \ |
---|
379 | sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ |
---|
380 | -e 's/^ //' -e 's/ $//'` |
---|
381 | |
---|
382 | # Add -g and --with-debug. |
---|
383 | cd mysql-debug-%{mysql_version} && |
---|
384 | CFLAGS="$CFLAGS" \ |
---|
385 | CXXFLAGS="$CXXFLAGS" \ |
---|
386 | BuildMySQL --with-debug |
---|
387 | ) |
---|
388 | |
---|
389 | # We might want to save the config log file |
---|
390 | if test -n "$MYSQL_DEBUGCONFLOG_DEST" |
---|
391 | then |
---|
392 | cp -fp mysql-debug-%{mysql_version}/config.log "$MYSQL_DEBUGCONFLOG_DEST" |
---|
393 | fi |
---|
394 | |
---|
395 | #(cd mysql-debug-%{mysql_version} ; make test-bt-debug) |
---|
396 | |
---|
397 | ############################################################################## |
---|
398 | # |
---|
399 | # Build the release binary |
---|
400 | # |
---|
401 | ############################################################################## |
---|
402 | |
---|
403 | (cd mysql-release-%{mysql_version} && |
---|
404 | CFLAGS="$CFLAGS" \ |
---|
405 | CXXFLAGS="$CXXFLAGS" \ |
---|
406 | BuildMySQL --with-embedded-server |
---|
407 | ) |
---|
408 | |
---|
409 | pushd mysql-release-%{mysql_version} |
---|
410 | # regular build will make libmysqld.a but not libmysqld.so :-( |
---|
411 | mkdir libmysqld/work |
---|
412 | cd libmysqld/work |
---|
413 | ar -x ../libmysqld.a |
---|
414 | # remove object file to avoid multiple definition error (is it a bug?) |
---|
415 | rm -f libfederated_a-ha_federated.o libfederated_a-string.o |
---|
416 | gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \ |
---|
417 | *.o \ |
---|
418 | %if %{?_dist_release}!="vl5" |
---|
419 | -lpthread -lcrypt -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc |
---|
420 | %else |
---|
421 | -lpthread -lcrypt -lnsl -lz -lrt -lstdc++ -lm -lc |
---|
422 | %endif |
---|
423 | popd |
---|
424 | |
---|
425 | # We might want to save the config log file |
---|
426 | if test -n "$MYSQL_CONFLOG_DEST" |
---|
427 | then |
---|
428 | cp -fp mysql-release-%{mysql_version}/config.log "$MYSQL_CONFLOG_DEST" |
---|
429 | fi |
---|
430 | |
---|
431 | #(cd mysql-release-%{mysql_version} ; make test-bt) |
---|
432 | |
---|
433 | %install |
---|
434 | RBR=$RPM_BUILD_ROOT |
---|
435 | MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-release-%{mysql_version} |
---|
436 | |
---|
437 | rm -rf $RBR |
---|
438 | |
---|
439 | # Ensure that needed directories exists |
---|
440 | install -d $RBR%{_sysconfdir}/{logrotate.d,init.d} |
---|
441 | install -d $RBR%{mysqldatadir}/mysql |
---|
442 | install -d $RBR%{_datadir}/mysql-test |
---|
443 | install -d $RBR%{_includedir} |
---|
444 | install -d $RBR%{_libdir} |
---|
445 | install -d $RBR%{_mandir} |
---|
446 | install -d $RBR%{_sbindir} |
---|
447 | |
---|
448 | # Install all binaries |
---|
449 | (cd $MBD && make install DESTDIR=$RBR benchdir_root=%{_datadir}) |
---|
450 | # Old packages put shared libs in %{_libdir}/ (not %{_libdir}/mysql), so do |
---|
451 | # the same here. |
---|
452 | #mv $RBR/%{_libdir}/mysql/*.so* $RBR/%{_libdir}/ |
---|
453 | |
---|
454 | rm -rf $RBR/mysql-test |
---|
455 | |
---|
456 | ############################################################################## |
---|
457 | # Include libgcc.a in the devel subpackage (BUG 4921) |
---|
458 | if [ -z "$CXX" -a -z "$CC" ] |
---|
459 | then |
---|
460 | export CC="gcc" |
---|
461 | export CXX="gcc" |
---|
462 | fi |
---|
463 | |
---|
464 | if expr "$CC" : ".*gcc.*" > /dev/null ; |
---|
465 | then |
---|
466 | libgcc=`$CC $CFLAGS --print-libgcc-file` |
---|
467 | if [ -f $libgcc ] |
---|
468 | then |
---|
469 | %define have_libgcc 1 |
---|
470 | install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a |
---|
471 | fi |
---|
472 | fi |
---|
473 | |
---|
474 | ############################################################################## |
---|
475 | |
---|
476 | # install libmysqld.so |
---|
477 | install -m 0755 $MBD/libmysqld/work/libmysqld.so.0.0.1 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so.0.0.1 |
---|
478 | ln -s libmysqld.so.0.0.1 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so.0 |
---|
479 | ln -s libmysqld.so.0 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so |
---|
480 | |
---|
481 | # install "mysqld-debug" |
---|
482 | $MBD/libtool --mode=execute install -m 755 \ |
---|
483 | $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \ |
---|
484 | $RBR%{_sbindir}/mysqld-debug |
---|
485 | |
---|
486 | # install saved perror binary with NDB support (BUG#13740) |
---|
487 | install -m 755 $MBD/extra/perror $RBR%{_bindir}/perror |
---|
488 | |
---|
489 | # Install logrotate and autostart |
---|
490 | install -m 644 $MBD/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql |
---|
491 | install -m 755 $MBD/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql |
---|
492 | |
---|
493 | # in RPMs, it is unlikely that anybody should use "sql-bench" |
---|
494 | rm -fr $RBR%{_datadir}/sql-bench |
---|
495 | |
---|
496 | # Create a symlink "rcmysql", pointing to the init.script. SuSE users |
---|
497 | # will appreciate that, as all services usually offer this. |
---|
498 | ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sbindir}/rcmysql |
---|
499 | |
---|
500 | # Touch the place where the my.cnf config file and mysqlmanager.passwd |
---|
501 | # (MySQL Instance Manager password file) might be located |
---|
502 | # Just to make sure it's in the file list and marked as a config file |
---|
503 | touch $RBR%{_sysconfdir}/my.cnf |
---|
504 | touch $RBR%{_sysconfdir}/mysqlmanager.passwd |
---|
505 | |
---|
506 | mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d |
---|
507 | echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/libmysqlclient%{client_version}-%{_arch}.conf |
---|
508 | |
---|
509 | %pre server |
---|
510 | # Shut down a previously installed server first |
---|
511 | if test -x %{_sysconfdir}/init.d/mysql |
---|
512 | then |
---|
513 | %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1 |
---|
514 | echo "Giving mysqld a couple of seconds to exit nicely" |
---|
515 | sleep 5 |
---|
516 | elif test -x %{_sysconfdir}/rc.d/init.d/mysql |
---|
517 | then |
---|
518 | %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1 |
---|
519 | echo "Giving mysqld a couple of seconds to exit nicely" |
---|
520 | sleep 5 |
---|
521 | fi |
---|
522 | |
---|
523 | %post server |
---|
524 | mysql_datadir=%{mysqldatadir} |
---|
525 | |
---|
526 | # Create data directory if needed |
---|
527 | if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi |
---|
528 | if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi |
---|
529 | if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi |
---|
530 | |
---|
531 | # Make MySQL start/shutdown automatically when the machine does it. |
---|
532 | # use insserv for older SuSE Linux versions |
---|
533 | if test -x /sbin/insserv |
---|
534 | then |
---|
535 | /sbin/insserv %{_sysconfdir}/init.d/mysql |
---|
536 | # use chkconfig on Red Hat and newer SuSE releases |
---|
537 | elif test -x /sbin/chkconfig |
---|
538 | then |
---|
539 | /sbin/chkconfig --add mysql |
---|
540 | fi |
---|
541 | |
---|
542 | # Create a MySQL user and group. Do not report any problems if it already |
---|
543 | # exists. |
---|
544 | groupadd -r %{mysqld_group} 2> /dev/null || true |
---|
545 | useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true |
---|
546 | # The user may already exist, make sure it has the proper group nevertheless (BUG#12823) |
---|
547 | usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true |
---|
548 | |
---|
549 | # Change permissions so that the user that will run the MySQL daemon |
---|
550 | # owns all database files. |
---|
551 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir |
---|
552 | |
---|
553 | # Initiate databases if needed |
---|
554 | %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} |
---|
555 | |
---|
556 | # Upgrade databases if needed would go here - but it cannot be automated yet |
---|
557 | |
---|
558 | # Change permissions again to fix any new files. |
---|
559 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir |
---|
560 | |
---|
561 | # Fix permissions for the permission database so that only the user |
---|
562 | # can read them. |
---|
563 | chmod -R og-rw $mysql_datadir/mysql |
---|
564 | |
---|
565 | # Restart in the same way that mysqld will be started normally. |
---|
566 | %{_sysconfdir}/init.d/mysql start |
---|
567 | |
---|
568 | # Allow mysqld_safe to start mysqld and print a message before we exit |
---|
569 | sleep 2 |
---|
570 | |
---|
571 | #echo "Thank you for installing the MySQL Community Server! For Production |
---|
572 | #systems, we recommend MySQL Enterprise, which contains enterprise-ready |
---|
573 | #software, intelligent advisory services, and full production support with |
---|
574 | #scheduled service packs and more. Visit www.mysql.com/enterprise for more |
---|
575 | #information." |
---|
576 | |
---|
577 | %post ndb-storage |
---|
578 | mysql_clusterdir=/var/lib/mysql-cluster |
---|
579 | |
---|
580 | # Create cluster directory if needed |
---|
581 | if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi |
---|
582 | |
---|
583 | %preun server |
---|
584 | if test $1 = 0 |
---|
585 | then |
---|
586 | # Stop MySQL before uninstalling it |
---|
587 | if test -x %{_sysconfdir}/init.d/mysql |
---|
588 | then |
---|
589 | %{_sysconfdir}/init.d/mysql stop > /dev/null |
---|
590 | |
---|
591 | # Remove autostart of mysql |
---|
592 | # for older SuSE Linux versions |
---|
593 | if test -x /sbin/insserv |
---|
594 | then |
---|
595 | /sbin/insserv -r %{_sysconfdir}/init.d/mysql |
---|
596 | # use chkconfig on Red Hat and newer SuSE releases |
---|
597 | elif test -x /sbin/chkconfig |
---|
598 | then |
---|
599 | /sbin/chkconfig --del mysql |
---|
600 | fi |
---|
601 | fi |
---|
602 | fi |
---|
603 | |
---|
604 | # We do not remove the mysql user since it may still own a lot of |
---|
605 | # database files. |
---|
606 | |
---|
607 | %post -n %{libpkgname} |
---|
608 | /sbin/ldconfig |
---|
609 | |
---|
610 | %postun -n %{libpkgname} |
---|
611 | /sbin/ldconfig |
---|
612 | |
---|
613 | # Clean up the BuildRoot |
---|
614 | %clean |
---|
615 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
---|
616 | |
---|
617 | %files server |
---|
618 | %defattr(-,root,root,0755) |
---|
619 | |
---|
620 | %doc mysql-release-%{mysql_version}/COPYING mysql-release-%{mysql_version}/README |
---|
621 | %doc mysql-release-%{mysql_version}/support-files/my-*.cnf |
---|
622 | %doc mysql-release-%{mysql_version}/support-files/ndb-*.ini |
---|
623 | |
---|
624 | %doc %attr(644, root, root) %{_infodir}/mysql.info* |
---|
625 | |
---|
626 | %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* |
---|
627 | %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* |
---|
628 | %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1* |
---|
629 | %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1* |
---|
630 | %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1* |
---|
631 | %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1* |
---|
632 | %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8* |
---|
633 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1* |
---|
634 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1* |
---|
635 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1* |
---|
636 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1* |
---|
637 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1* |
---|
638 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1* |
---|
639 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1* |
---|
640 | %doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8* |
---|
641 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1* |
---|
642 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1* |
---|
643 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1* |
---|
644 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1* |
---|
645 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1* |
---|
646 | %doc %attr(644, root, man) %{_mandir}/man1/perror.1* |
---|
647 | %doc %attr(644, root, man) %{_mandir}/man1/replace.1* |
---|
648 | |
---|
649 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1* |
---|
650 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1* |
---|
651 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1* |
---|
652 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1* |
---|
653 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1* |
---|
654 | %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1* |
---|
655 | %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1* |
---|
656 | |
---|
657 | %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf |
---|
658 | %ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd |
---|
659 | |
---|
660 | %attr(755, root, root) %{_bindir}/innochecksum |
---|
661 | %attr(755, root, root) %{_bindir}/my_print_defaults |
---|
662 | %attr(755, root, root) %{_bindir}/myisam_ftdump |
---|
663 | %attr(755, root, root) %{_bindir}/myisamchk |
---|
664 | %attr(755, root, root) %{_bindir}/myisamlog |
---|
665 | %attr(755, root, root) %{_bindir}/myisampack |
---|
666 | %attr(755, root, root) %{_bindir}/mysql_convert_table_format |
---|
667 | %attr(755, root, root) %{_bindir}/mysql_fix_extensions |
---|
668 | %attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables |
---|
669 | %attr(755, root, root) %{_bindir}/mysql_install_db |
---|
670 | %attr(755, root, root) %{_bindir}/mysql_secure_installation |
---|
671 | %attr(755, root, root) %{_bindir}/mysql_setpermission |
---|
672 | %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql |
---|
673 | %attr(755, root, root) %{_bindir}/mysql_upgrade |
---|
674 | %attr(755, root, root) %{_bindir}/mysql_zap |
---|
675 | %attr(755, root, root) %{_bindir}/mysqlbug |
---|
676 | %attr(755, root, root) %{_bindir}/mysqld_multi |
---|
677 | %attr(755, root, root) %{_bindir}/mysqld_safe |
---|
678 | %attr(755, root, root) %{_bindir}/mysqldumpslow |
---|
679 | %attr(755, root, root) %{_bindir}/mysqlhotcopy |
---|
680 | %attr(755, root, root) %{_bindir}/mysqltest |
---|
681 | %attr(755, root, root) %{_bindir}/perror |
---|
682 | %attr(755, root, root) %{_bindir}/replace |
---|
683 | %attr(755, root, root) %{_bindir}/resolve_stack_dump |
---|
684 | %attr(755, root, root) %{_bindir}/resolveip |
---|
685 | |
---|
686 | %attr(755, root, root) %{_sbindir}/mysqld |
---|
687 | %attr(755, root, root) %{_sbindir}/mysqld-debug |
---|
688 | %attr(755, root, root) %{_sbindir}/mysqlmanager |
---|
689 | %attr(755, root, root) %{_sbindir}/rcmysql |
---|
690 | |
---|
691 | %dir %attr(755, root, root) %{_libdir}/mysql/plugin |
---|
692 | %attr(755, root, root) %{_libdir}/mysql/plugin/*.so* |
---|
693 | |
---|
694 | %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql |
---|
695 | %attr(755, root, root) %{_sysconfdir}/init.d/mysql |
---|
696 | |
---|
697 | %attr(755, root, root) %{_datadir}/mysql/ |
---|
698 | |
---|
699 | %files client |
---|
700 | %defattr(-, root, root, 0755) |
---|
701 | %attr(755, root, root) %{_bindir}/msql2mysql |
---|
702 | %attr(755, root, root) %{_bindir}/mysql |
---|
703 | %attr(755, root, root) %{_bindir}/mysql_find_rows |
---|
704 | %attr(755, root, root) %{_bindir}/mysql_waitpid |
---|
705 | %attr(755, root, root) %{_bindir}/mysqlaccess |
---|
706 | %attr(755, root, root) %{_bindir}/mysqladmin |
---|
707 | %attr(755, root, root) %{_bindir}/mysqlbinlog |
---|
708 | %attr(755, root, root) %{_bindir}/mysqlcheck |
---|
709 | %attr(755, root, root) %{_bindir}/mysqldump |
---|
710 | %attr(755, root, root) %{_bindir}/mysqlimport |
---|
711 | %attr(755, root, root) %{_bindir}/mysqlshow |
---|
712 | %attr(755, root, root) %{_bindir}/mysqlslap |
---|
713 | |
---|
714 | %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1* |
---|
715 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.1* |
---|
716 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1* |
---|
717 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1* |
---|
718 | %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1* |
---|
719 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1* |
---|
720 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1* |
---|
721 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1* |
---|
722 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1* |
---|
723 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1* |
---|
724 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1* |
---|
725 | |
---|
726 | %files ndb-storage |
---|
727 | %defattr(-,root,root,0755) |
---|
728 | %attr(755, root, root) %{_sbindir}/ndbd |
---|
729 | %doc %attr(644, root, man) %{_mandir}/man8/ndbd.8* |
---|
730 | |
---|
731 | %files ndb-management |
---|
732 | %defattr(-,root,root,0755) |
---|
733 | %attr(755, root, root) %{_sbindir}/ndb_mgmd |
---|
734 | %doc %attr(644, root, man) %{_mandir}/man8/ndb_mgmd.8* |
---|
735 | |
---|
736 | %files ndb-tools |
---|
737 | %defattr(-,root,root,0755) |
---|
738 | %attr(755, root, root) %{_bindir}/ndb_config |
---|
739 | %attr(755, root, root) %{_bindir}/ndb_desc |
---|
740 | %attr(755, root, root) %{_bindir}/ndb_error_reporter |
---|
741 | %attr(755, root, root) %{_bindir}/ndb_mgm |
---|
742 | %attr(755, root, root) %{_bindir}/ndb_print_backup_file |
---|
743 | %attr(755, root, root) %{_bindir}/ndb_print_schema_file |
---|
744 | %attr(755, root, root) %{_bindir}/ndb_print_sys_file |
---|
745 | %attr(755, root, root) %{_bindir}/ndb_restore |
---|
746 | %attr(755, root, root) %{_bindir}/ndb_select_all |
---|
747 | %attr(755, root, root) %{_bindir}/ndb_select_count |
---|
748 | %attr(755, root, root) %{_bindir}/ndb_show_tables |
---|
749 | %attr(755, root, root) %{_bindir}/ndb_size.pl |
---|
750 | %attr(755, root, root) %{_bindir}/ndb_test_platform |
---|
751 | %attr(755, root, root) %{_bindir}/ndb_waiter |
---|
752 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_config.1* |
---|
753 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_desc.1* |
---|
754 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_error_reporter.1* |
---|
755 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_mgm.1* |
---|
756 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_restore.1* |
---|
757 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_backup_file.1* |
---|
758 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_schema_file.1* |
---|
759 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_sys_file.1* |
---|
760 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_all.1* |
---|
761 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_count.1* |
---|
762 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_show_tables.1* |
---|
763 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_size.pl.1* |
---|
764 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_waiter.1* |
---|
765 | |
---|
766 | %files ndb-extra |
---|
767 | %defattr(-,root,root,0755) |
---|
768 | %attr(755, root, root) %{_bindir}/ndb_delete_all |
---|
769 | %attr(755, root, root) %{_bindir}/ndb_drop_index |
---|
770 | %attr(755, root, root) %{_bindir}/ndb_drop_table |
---|
771 | %attr(755, root, root) %{_sbindir}/ndb_cpcd |
---|
772 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_delete_all.1* |
---|
773 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_index.1* |
---|
774 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_table.1* |
---|
775 | %doc %attr(644, root, man) %{_mandir}/man1/ndb_cpcd.1* |
---|
776 | |
---|
777 | %files devel |
---|
778 | %defattr(-, root, root, 0755) |
---|
779 | %doc mysql-release-%{mysql_version}/EXCEPTIONS-CLIENT |
---|
780 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* |
---|
781 | %attr(755, root, root) %{_bindir}/mysql_config |
---|
782 | %dir %attr(755, root, root) %{_includedir}/mysql |
---|
783 | %dir %attr(755, root, root) %{_libdir}/mysql |
---|
784 | %{_includedir}/mysql/* |
---|
785 | %{_datadir}/aclocal/mysql.m4 |
---|
786 | %{_libdir}/mysql/libmysql*.so |
---|
787 | %{_libdir}/mysql/libndb*.so |
---|
788 | |
---|
789 | #%{_libdir}/mysql/libdbug.a |
---|
790 | #%{_libdir}/mysql/libheap.a |
---|
791 | %if %{have_libgcc} |
---|
792 | %{_libdir}/mysql/libmygcc.a |
---|
793 | %endif |
---|
794 | #%{_libdir}/mysql/libmyisam.a |
---|
795 | #%{_libdir}/mysql/libmyisammrg.a |
---|
796 | #%{_libdir}/mysql/libmysqlclient.a |
---|
797 | #%{_libdir}/mysql/libmysqlclient_r.a |
---|
798 | #%{_libdir}/mysql/libmystrings.a |
---|
799 | #%{_libdir}/mysql/libmysys.a |
---|
800 | #%{_libdir}/mysql/libndbclient.a |
---|
801 | #%{_libdir}/mysql/libvio.a |
---|
802 | #%{_libdir}/mysql/libz.a |
---|
803 | |
---|
804 | %files -n %{libpkgname} |
---|
805 | %defattr(-, root, root, 0755) |
---|
806 | # Shared libraries (omit for architectures that don't support them) |
---|
807 | %{_libdir}/mysql/libmysql*.so.* |
---|
808 | %{_libdir}/mysql/libndb*.so.* |
---|
809 | %exclude %{_libdir}/mysql/libmysqld.so.* |
---|
810 | /etc/ld.so.conf.d/* |
---|
811 | |
---|
812 | %files test |
---|
813 | %defattr(-, root, root, 0755) |
---|
814 | %{_datadir}/mysql-test |
---|
815 | %{_bindir}/mysql_client_test |
---|
816 | %{_mandir}/man1/mysql_client_test.1* |
---|
817 | %{_mandir}/man1/mysql-stress-test.pl.1* |
---|
818 | %{_mandir}/man1/mysql-test-run.pl.1* |
---|
819 | |
---|
820 | %files embedded |
---|
821 | %defattr(-, root, root, 0755) |
---|
822 | %doc mysql-release-%{mysql_version}/{COPYING,EXCEPTIONS-CLIENT} |
---|
823 | %{_libdir}/mysql/libmysqld.so.* |
---|
824 | |
---|
825 | %files embedded-devel |
---|
826 | %defattr(-,root,root) |
---|
827 | %{_libdir}/mysql/libmysqld.so |
---|
828 | #{_libdir}/mysql/libmysqld.a |
---|
829 | %{_bindir}/mysql_client_test_embedded |
---|
830 | %{_bindir}/mysqltest_embedded |
---|
831 | %{_mandir}/man1/mysql_client_test_embedded.1* |
---|
832 | %{_mandir}/man1/mysqltest_embedded.1* |
---|
833 | |
---|
834 | %changelog |
---|
835 | * Sun Oct 26 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.1.73-2 |
---|
836 | - add Patch1000 for fix CVE-2014-0001 |
---|
837 | - add Patch1010 for fix CVE-2014-4274 |
---|
838 | |
---|
839 | * Mon Jan 20 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.1.73-1 |
---|
840 | - new upstream release with security fixes |
---|
841 | |
---|
842 | * Wed Nov 6 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.1.72-1 |
---|
843 | - new upstream release with security fixes |
---|
844 | - add Vendor/Distri tags |
---|
845 | |
---|
846 | * Wed Feb 13 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.68-1 |
---|
847 | - new upstream release. |
---|
848 | |
---|
849 | * Wed Dec 05 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.66-2 |
---|
850 | - fixed CVE-2012-5611. |
---|
851 | |
---|
852 | * Mon Nov 19 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.66-1 |
---|
853 | - new upstream release. |
---|
854 | |
---|
855 | * Thu Jun 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.63-1 |
---|
856 | - new upstream release. |
---|
857 | - fixed CVE-2012-2122. |
---|
858 | - disabled SSL support for Vine Linux 5.x. |
---|
859 | |
---|
860 | * Wed May 02 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.62-1 |
---|
861 | - new upstream release. |
---|
862 | - updated jp-patch. |
---|
863 | |
---|
864 | * Mon Apr 18 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-3 |
---|
865 | - Added "BR: zlib-devel" to MySQL-devel. |
---|
866 | |
---|
867 | * Sun Apr 03 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-2 |
---|
868 | - Added "BR: openssl-devel" to MySQL-devel. |
---|
869 | |
---|
870 | * Fri Mar 11 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-1 |
---|
871 | - new upstream release. |
---|
872 | |
---|
873 | * Mon Jan 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.54-1 |
---|
874 | - new upstream release. |
---|
875 | - updated jp-patch. |
---|
876 | - added ssl support. |
---|
877 | |
---|
878 | * Sat Nov 06 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.52-1 |
---|
879 | - new upstream release. |
---|
880 | - replaced '%%__find_requires' to '%%__perl_requires'. |
---|
881 | - updated jp-patch. |
---|
882 | |
---|
883 | * Fri Oct 29 2010 Shu KONNO <owa@bg.wakwak.com> 5.1.44-3 |
---|
884 | - added mysql-5.1.44-lib64.patch (on x86_64) |
---|
885 | - added -fPIC (on x86_64) |
---|
886 | |
---|
887 | * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.44-2 |
---|
888 | - made embedded package again |
---|
889 | |
---|
890 | * Fri Mar 05 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.44-1 |
---|
891 | - new upstream release. |
---|
892 | - updated jp-patch. |
---|
893 | |
---|
894 | * Thu Feb 04 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-2 |
---|
895 | - VineSeed: rebuilt with new toolchain. |
---|
896 | |
---|
897 | * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-1 |
---|
898 | - new upstream release. |
---|
899 | - fixed CVE-2009-4484. |
---|
900 | |
---|
901 | * Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.41-1 |
---|
902 | - new upstream release. |
---|
903 | |
---|
904 | * Thu Nov 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-2 |
---|
905 | - added net-tools to 'Requires'. |
---|
906 | - added groff to 'BuildRequires'. |
---|
907 | - renamed subpackage 'MySQL-shared' to 'libmysqlclient16' (VineSeed only). |
---|
908 | |
---|
909 | * Tue Nov 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-1 |
---|
910 | - new upstream release. |
---|
911 | |
---|
912 | * Sat Sep 26 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.39-1 |
---|
913 | - new upstream release. |
---|
914 | |
---|
915 | * Sun Jul 5 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.36-1 |
---|
916 | - new upstream release. |
---|
917 | - dropped %%Patch100 (fixed in upstream). |
---|
918 | |
---|
919 | * Sat Jun 6 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.35-1 |
---|
920 | - new upstream release. |
---|
921 | - add %%Patch100 (no longer needed for MySQL-5.1.36 or later). |
---|
922 | |
---|
923 | * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.34-1 |
---|
924 | - new upstream release. |
---|
925 | - rename 'MySQL-bench' to 'MySQL-test'. |
---|
926 | - update Patch0. |
---|
927 | - change default charset to 'utf8'. |
---|
928 | |
---|
929 | * Sat Apr 12 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.51a-1 |
---|
930 | - new upstream release. |
---|
931 | - update Patch0. |
---|
932 | - add "--with-client-charset=ujis". |
---|
933 | - sync %%files to official RPM. |
---|
934 | - remove MySQL-Max. |
---|
935 | |
---|
936 | * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl7 |
---|
937 | - for VineSeed |
---|
938 | |
---|
939 | * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl6 |
---|
940 | - move shared library from /usr/lib/ to /usr/lib/mysql/ |
---|
941 | - add /etc/ld.so.conf.d/*.conf |
---|
942 | - fix broken libmysqlcient*.la files (or should we remove them permanently?) |
---|
943 | |
---|
944 | * Sat Jun 16 2007 IWAI, Masaharu <iwai@alib.jp> 5.0.27-0vl5 |
---|
945 | - rebuild <BTS:VineLinux:534> |
---|
946 | |
---|
947 | * Mon Nov 13 2006 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.27-0vl4 |
---|
948 | - added -fPIC |
---|
949 | |
---|
950 | * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl3 |
---|
951 | - fixed dependency. <BTS:338> |
---|
952 | |
---|
953 | * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl2 |
---|
954 | - add %%Patch1. <BTS:320> |
---|
955 | |
---|
956 | * Sat Oct 28 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl1 |
---|
957 | - new upstream release. |
---|
958 | |
---|
959 | * Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.26-0vl1 |
---|
960 | - new upstream release. |
---|
961 | |
---|
962 | * Sat Jun 3 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.22-0vl1 |
---|
963 | - new upstream release. |
---|
964 | |
---|
965 | * Sat May 13 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl1 |
---|
966 | - release++. |
---|
967 | |
---|
968 | * Wed May 10 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl0 |
---|
969 | - new upstream release. |
---|
970 | - for VineSeed. |
---|
971 | |
---|
972 | * Wed Feb 8 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.16-0vl0 |
---|
973 | - new upstream release. |
---|
974 | - replace Patch0 for MySQL-4.1.16. |
---|
975 | |
---|
976 | * Thu Oct 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.14-0vl0 |
---|
977 | - new upstream release. |
---|
978 | - add Patch0. |
---|
979 | |
---|
980 | * Tue Sep 6 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.25-0vl0 |
---|
981 | - new upstream version |
---|
982 | -- mysql-4.0.25 |
---|
983 | |
---|
984 | * Fri Jan 21 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.23-0vl0 |
---|
985 | - new upstream version |
---|
986 | -- mysql-4.0.23 |
---|
987 | |
---|
988 | * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.22-0vl0 |
---|
989 | - new upstream version |
---|
990 | -- mysql-4.0.22 |
---|
991 | |
---|
992 | * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.21-0vl1 |
---|
993 | - new upstream version |
---|
994 | -- mysql-4.0.21 |
---|
995 | |
---|
996 | * Fri May 21 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.20-0vl1 |
---|
997 | - new upstream version |
---|
998 | -- mysql-4.0.20 |
---|
999 | |
---|
1000 | * Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 4.0.18-0vl2 |
---|
1001 | - modify CFLAGS, CXXFLAGS and configure options for alpha |
---|
1002 | |
---|
1003 | * Tue Mar 23 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.18-0vl1 |
---|
1004 | - Upgraded to MySQL-4 |
---|
1005 | - added "with-charset=ujis" and "without-readline" to configure (vineseed-plus-02150) |
---|
1006 | - merged to MySQL Official packages |
---|
1007 | -- renamed package "MySQL" to "MySQL-server" |
---|
1008 | -- when using gcc, _always_ use CXX=gcc |
---|
1009 | -- replaced Copyright with License field (Copyright is obsolete) |
---|
1010 | -- added myisam_ftdump to the Server package |
---|
1011 | -- marked /etc/logrotate.d/mysql as a config file (BUG 2156) |
---|
1012 | -- fixed file permissions (BUG 1672) |
---|
1013 | -- removed dependency on MySQL-client from the MySQL-devel subpackage |
---|
1014 | -- as it is not really required. (BUG 1610) |
---|
1015 | -- Fixed BUG 1162 (removed macro names from the changelog) |
---|
1016 | -- Really fixed BUG 998 (disable the checking for installed but |
---|
1017 | -- unpackaged files) |
---|
1018 | -- Fixed BUG 959 (libmysqld not being compiled properly) |
---|
1019 | -- Fixed BUG 998 (RPM build errors): added missing files to the |
---|
1020 | -- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow, |
---|
1021 | -- mysql_fix_privilege_tables.1), removed "-n" from install section. |
---|
1022 | -- removed the GIF Icon (file was not included in the sources anyway) |
---|
1023 | -- removed unused variable shared_lib_version |
---|
1024 | -- do not run automake before building the standard binary |
---|
1025 | -- (should not be necessary) |
---|
1026 | -- add server suffix '-standard' to standard binary (to be in line |
---|
1027 | -- with the binary tarball distributions) |
---|
1028 | -- allow overriding CC and CXX (required when building |
---|
1029 | -- with other compilers) |
---|
1030 | |
---|
1031 | * Thu Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.23.56-0vl5 |
---|
1032 | - added BuildRequires: automake16 |
---|
1033 | |
---|
1034 | * Thu Apr 03 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl3 |
---|
1035 | - add '-fPIC -DPIC' to CFLAGS on alpha |
---|
1036 | - little fix of spec file |
---|
1037 | |
---|
1038 | * Thu Mar 27 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl2 |
---|
1039 | - enable MySQL-shared subpackage for alpha |
---|
1040 | - delete 'BuildPrereq: kernel24-headers' for alpha |
---|
1041 | - fix shared %files (exclude sparc) |
---|
1042 | |
---|
1043 | * Tue Mar 18 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.56-0vl1 |
---|
1044 | - new upstream version |
---|
1045 | |
---|
1046 | * Sun Mar 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.23.55-0vl2 |
---|
1047 | - fixed devel %files (dropped *.la files) |
---|
1048 | |
---|
1049 | * Tue Jan 28 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.55-0vl1 |
---|
1050 | - new upstream version |
---|
1051 | - fixed document permission |
---|
1052 | |
---|
1053 | * Sat Dec 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.54a-0vl1 |
---|
1054 | - new upstream version |
---|
1055 | |
---|
1056 | * Sat Oct 19 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl2 |
---|
1057 | - dropped MySQL-Max sub-pakage for sparc/sparc64/alpha |
---|
1058 | -- don't work |
---|
1059 | |
---|
1060 | * Wed Oct 16 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl1 |
---|
1061 | - new upstream version |
---|
1062 | - diseble-assembler in configure on sparc,sparc64,alpha |
---|
1063 | |
---|
1064 | * Wed Aug 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.52-0vl1 |
---|
1065 | - new upstream version |
---|
1066 | - moved some man files to main package |
---|
1067 | - added enable-local-infile in configure |
---|
1068 | - changed --with-extra-charsets=all in configure |
---|
1069 | |
---|
1070 | * Fri Jun 14 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl2 |
---|
1071 | - fixed changelog |
---|
1072 | |
---|
1073 | * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl1 |
---|
1074 | - updated to mysql-3.23.51 |
---|
1075 | |
---|
1076 | * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl2 |
---|
1077 | - rebuild on zlib-1.1.4(security fix.) |
---|
1078 | |
---|
1079 | * Mon Feb 18 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl1 |
---|
1080 | - updated to mysql-2.23.49 |
---|
1081 | |
---|
1082 | * Tue Feb 12 2002 Tomoya TAKA <taka@vinelinux.org> 3.23.48-0vl2 |
---|
1083 | - add 'BuildPrereq: kernel24-headers' on alpha |
---|
1084 | - remove shared library and max on alpha |
---|
1085 | |
---|
1086 | * Tue Feb 12 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.48-0vl1 |
---|
1087 | - updated to mysql-3.23.48 |
---|
1088 | |
---|
1089 | * Thu Jan 03 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.47-0vl1 |
---|
1090 | - updated to mysql-3.23.47 |
---|
1091 | |
---|
1092 | * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.46-0vl1 |
---|
1093 | - updated to mysql-3.23.46 |
---|
1094 | |
---|
1095 | * Thu Nov 29 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.45-0vl1 |
---|
1096 | - updated to mysql-3.23.45 |
---|
1097 | |
---|
1098 | * Tue Nov 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.44-0vl1 |
---|
1099 | - updated to mysql-3.23.44 |
---|
1100 | |
---|
1101 | * Sat Oct 13 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.43-0vl1 |
---|
1102 | - updated to mysql-3.23.43 |
---|
1103 | - removed shared library and max on sparc |
---|
1104 | |
---|
1105 | * Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.42-0vl1 |
---|
1106 | - updated to mysql-3.23.42 |
---|
1107 | - changed MYSQL_BUILD_CC: and MYSQL_BUILD_XCC: to -gcc |
---|
1108 | |
---|
1109 | * Thu Aug 30 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.41-0vl1 |
---|
1110 | - updated to mysql-3.23.41 |
---|
1111 | |
---|
1112 | * Wed Aug 22 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.40-0vl1 |
---|
1113 | - updated to mysql-3.23.40 |
---|
1114 | |
---|
1115 | * Tue Jul 10 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.39-0vl1 |
---|
1116 | - updated to mysql-3.23.39 |
---|
1117 | |
---|
1118 | * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2 |
---|
1119 | - added configure --with-charset=ujis |
---|
1120 | |
---|
1121 | * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2 |
---|
1122 | - used some rpmmacro |
---|
1123 | |
---|
1124 | * Fri May 25 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl1 |
---|
1125 | - updated to MySQL-3.23.38 |
---|
1126 | |
---|
1127 | * Thu Dec 07 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl2 |
---|
1128 | - removed Bench pakages |
---|
1129 | |
---|
1130 | * Tue Dec 05 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl1 |
---|
1131 | - removed pt_BR locale |
---|
1132 | - build on Vine Linux |
---|
1133 | - partially used rpmmacros |
---|
1134 | - added %clean tag |
---|
1135 | |
---|
1136 | * Fri Aug 18 2000 Tim Smith <tim@mysql.com> |
---|
1137 | - Added separate libmysql_r directory; now both a threaded |
---|
1138 | and non-threaded library is shipped. |
---|
1139 | |
---|
1140 | * Wed Sep 28 1999 David Axmark <davida@mysql.com> |
---|
1141 | - Added the support-files/my-example.cnf to the docs directory. |
---|
1142 | - Removed devel dependency on base since it is about client |
---|
1143 | development. |
---|
1144 | |
---|
1145 | * Wed Sep 8 1999 David Axmark <davida@mysql.com> |
---|
1146 | - Cleaned up some for 3.23. |
---|
1147 | |
---|
1148 | * Thu Jul 1 1999 David Axmark <davida@mysql.com> |
---|
1149 | - Added support for shared libraries in a separate sub |
---|
1150 | package. Original fix by David Fox (dsfox@cogsci.ucsd.edu) |
---|
1151 | - The --enable-assembler switch is now automatically disables on |
---|
1152 | platforms there assembler code is unavailable. This should allow |
---|
1153 | building this RPM on non i386 systems. |
---|
1154 | |
---|
1155 | * Mon Feb 22 1999 David Axmark <david@detron.se> |
---|
1156 | - Removed unportable cc switches from the spec file. The defaults can |
---|
1157 | now be overridden with environment variables. This feature is used |
---|
1158 | to compile the official RPM with optimal (but compiler version |
---|
1159 | specific) switches. |
---|
1160 | - Removed the repetitive description parts for the sub rpms. Maybe add |
---|
1161 | again if RPM gets a multiline macro capability. |
---|
1162 | - Added support for a pt_BR translation. Translation contributed by |
---|
1163 | Jorge Godoy <jorge@bestway.com.br>. |
---|
1164 | |
---|
1165 | * Wed Nov 4 1998 David Axmark <david@detron.se> |
---|
1166 | - A lot of changes in all the rpm and install scripts. This may even |
---|
1167 | be a working RPM :-) |
---|
1168 | |
---|
1169 | * Sun Aug 16 1998 David Axmark <david@detron.se> |
---|
1170 | - A developers changelog for MySQL is available in the source RPM. And |
---|
1171 | there is a history of major user visible changed in the Reference |
---|
1172 | Manual. Only RPM specific changes will be documented here. |
---|
1173 | |
---|