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