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