You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1347 lines
45 KiB

26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
24 years ago
26 years ago
26 years ago
21 years ago
26 years ago
26 years ago
24 years ago
26 years ago
26 years ago
24 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
24 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
21 years ago
21 years ago
26 years ago
26 years ago
26 years ago
21 years ago
26 years ago
20 years ago
26 years ago
26 years ago
26 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
26 years ago
  1. # Copyright (C) 2000-2007 MySQL AB
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; version 2 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; see the file COPYING. If not, write to the
  14. # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
  15. # MA 02110-1301 USA.
  16. %define mysql_version @VERSION@
  17. %define mysql_vendor MySQL AB
  18. # use "rpmbuild --with static" or "rpm --define '_with_static 1'" (for RPM 3.x)
  19. # to enable static linking (off by default)
  20. %{?_with_static:%define STATIC_BUILD 1}
  21. %{!?_with_static:%define STATIC_BUILD 0}
  22. # use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x)
  23. # to build with yaSSL support (off by default)
  24. %{?_with_yassl:%define YASSL_BUILD 1}
  25. %{!?_with_yassl:%define YASSL_BUILD 0}
  26. %if %{STATIC_BUILD}
  27. %define release 0
  28. %else
  29. %define release 0.glibc23
  30. %endif
  31. %define license GPL
  32. %define mysqld_user mysql
  33. %define mysqld_group mysql
  34. %define server_suffix -community
  35. %define mysqldatadir /var/lib/mysql
  36. # We don't package all files installed into the build root by intention -
  37. # See BUG#998 for details.
  38. %define _unpackaged_files_terminate_build 0
  39. %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
  40. # On SuSE 9 no separate "debuginfo" package is built. To enable basic
  41. # debugging on that platform, we don't strip binaries on SuSE 9. We
  42. # disable the strip of binaries by redefining the RPM macro
  43. # "__os_install_post" leaving out the script calls that normally does
  44. # this. We do this in all cases, as on platforms where "debuginfo" is
  45. # created, a script "find-debuginfo.sh" will be called that will do
  46. # the strip anyway, part of separating the executable and debug
  47. # information into separate files put into separate packages.
  48. #
  49. # Some references (shows more advanced conditional usage):
  50. # http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html
  51. # http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html
  52. # http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html
  53. # http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html
  54. %define __os_install_post /usr/lib/rpm/brp-compress
  55. Name: MySQL
  56. Summary: MySQL: a very fast and reliable SQL database server
  57. Group: Applications/Databases
  58. Version: @MYSQL_NO_DASH_VERSION@
  59. Release: %{release}
  60. License: %{license}
  61. Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz
  62. URL: http://www.mysql.com/
  63. Packager: MySQL Production Engineering Team <build@mysql.com>
  64. Vendor: %{mysql_vendor}
  65. Provides: msqlormysql MySQL-server mysql
  66. BuildRequires: ncurses-devel
  67. Obsoletes: mysql
  68. # Think about what you use here since the first step is to
  69. # run a rm -rf
  70. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  71. # From the manual
  72. %description
  73. The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
  74. and robust SQL (Structured Query Language) database server. MySQL Server
  75. is intended for mission-critical, heavy-load production systems as well
  76. as for embedding into mass-deployed software. MySQL is a trademark of
  77. MySQL AB.
  78. Copyright (C) 2000-2007 MySQL AB
  79. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  80. and you are welcome to modify and redistribute it under the GPL license.
  81. The MySQL web site (http://www.mysql.com/) provides the latest
  82. news and information about the MySQL software. Also please see the
  83. documentation and the manual for more information.
  84. %package server
  85. Summary: MySQL: a very fast and reliable SQL database server
  86. Group: Applications/Databases
  87. Requires: coreutils grep procps /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig
  88. Provides: msqlormysql mysql-server mysql MySQL
  89. Obsoletes: MySQL mysql mysql-server mysql-Max
  90. %description server
  91. The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
  92. and robust SQL (Structured Query Language) database server. MySQL Server
  93. is intended for mission-critical, heavy-load production systems as well
  94. as for embedding into mass-deployed software. MySQL is a trademark of
  95. MySQL AB.
  96. Copyright (C) 2000-2007 MySQL AB
  97. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  98. and you are welcome to modify and redistribute it under the GPL license.
  99. The MySQL web site (http://www.mysql.com/) provides the latest
  100. news and information about the MySQL software. Also please see the
  101. documentation and the manual for more information.
  102. This package includes the MySQL server binary (incl. InnoDB) as well
  103. as related utilities to run and administrate a MySQL server.
  104. If you want to access and work with the database, you have to install
  105. the package "MySQL-client" as well!
  106. %package client
  107. Summary: MySQL - Client
  108. Group: Applications/Databases
  109. Obsoletes: mysql-client
  110. Provides: mysql-client
  111. %description client
  112. This package contains the standard MySQL clients and administration tools.
  113. %{see_base}
  114. %package ndb-storage
  115. Summary: MySQL - ndbcluster storage engine
  116. Group: Applications/Databases
  117. %description ndb-storage
  118. This package contains the ndbcluster storage engine.
  119. It is necessary to have this package installed on all
  120. computers that should store ndbcluster table data.
  121. %{see_base}
  122. %package ndb-management
  123. Summary: MySQL - ndbcluster storage engine management
  124. Group: Applications/Databases
  125. %description ndb-management
  126. This package contains ndbcluster storage engine management.
  127. It is necessary to have this package installed on at least
  128. one computer in the cluster.
  129. %{see_base}
  130. %package ndb-tools
  131. Summary: MySQL - ndbcluster storage engine basic tools
  132. Group: Applications/Databases
  133. %description ndb-tools
  134. This package contains ndbcluster storage engine basic tools.
  135. %{see_base}
  136. %package ndb-extra
  137. Summary: MySQL - ndbcluster storage engine extra tools
  138. Group: Applications/Databases
  139. %description ndb-extra
  140. This package contains some extra ndbcluster storage engine tools for the advanced user.
  141. They should be used with caution.
  142. %{see_base}
  143. %package bench
  144. Requires: %{name}-client perl-DBI perl
  145. Summary: MySQL - Benchmarks and test system
  146. Group: Applications/Databases
  147. Provides: mysql-bench
  148. Obsoletes: mysql-bench
  149. AutoReqProv: no
  150. %description bench
  151. This package contains MySQL benchmark scripts and data.
  152. %{see_base}
  153. %package devel
  154. Summary: MySQL - Development header files and libraries
  155. Group: Applications/Databases
  156. Provides: mysql-devel
  157. Obsoletes: mysql-devel
  158. %description devel
  159. This package contains the development header files and libraries
  160. necessary to develop MySQL client applications.
  161. %{see_base}
  162. %package shared
  163. Summary: MySQL - Shared libraries
  164. Group: Applications/Databases
  165. Provides: mysql-shared
  166. Obsoletes: mysql-shared
  167. %description shared
  168. This package contains the shared libraries (*.so*) which certain
  169. languages and applications need to dynamically load and use MySQL.
  170. #%package embedded
  171. #Requires: %{name}-devel
  172. #Summary: MySQL - embedded library
  173. #Group: Applications/Databases
  174. #Obsoletes: mysql-embedded
  175. #
  176. #%description embedded
  177. #This package contains the MySQL server as an embedded library.
  178. #
  179. #The embedded MySQL server library makes it possible to run a
  180. #full-featured MySQL server inside the client application.
  181. #The main benefits are increased speed and more simple management
  182. #for embedded applications.
  183. #
  184. #The API is identical for the embedded MySQL version and the
  185. #client/server version.
  186. #
  187. #%{see_base}
  188. %prep
  189. %setup -n mysql-%{mysql_version}
  190. %build
  191. BuildMySQL() {
  192. # The --enable-assembler simply does nothing on systems that does not
  193. # support assembler speedups.
  194. sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
  195. CC=\"${CC:-$MYSQL_BUILD_CC}\" \
  196. CXX=\"${CXX:-$MYSQL_BUILD_CXX}\" \
  197. CFLAGS=\"$CFLAGS\" \
  198. CXXFLAGS=\"$CXXFLAGS\" \
  199. LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
  200. ./configure \
  201. $* \
  202. --enable-assembler \
  203. --enable-local-infile \
  204. --with-mysqld-user=%{mysqld_user} \
  205. --with-unix-socket-path=/var/lib/mysql/mysql.sock \
  206. --with-pic \
  207. --prefix=/ \
  208. %if %{YASSL_BUILD}
  209. --with-yassl \
  210. %endif
  211. --exec-prefix=%{_exec_prefix} \
  212. --libexecdir=%{_sbindir} \
  213. --libdir=%{_libdir} \
  214. --sysconfdir=%{_sysconfdir} \
  215. --datadir=%{_datadir} \
  216. --localstatedir=%{mysqldatadir} \
  217. --infodir=%{_infodir} \
  218. --includedir=%{_includedir} \
  219. --mandir=%{_mandir} \
  220. --enable-thread-safe-client \
  221. --with-readline ; \
  222. # Add this for more debugging support
  223. # --with-debug
  224. "
  225. # benchdir does not fit in above model. Maybe a separate bench distribution
  226. make benchdir_root=$RPM_BUILD_ROOT/usr/share/
  227. }
  228. # Use our own copy of glibc
  229. OTHER_LIBC_DIR=/usr/local/mysql-glibc
  230. USE_OTHER_LIBC_DIR=""
  231. if test -d "$OTHER_LIBC_DIR"
  232. then
  233. USE_OTHER_LIBC_DIR="--with-other-libc=$OTHER_LIBC_DIR"
  234. fi
  235. # Use the build root for temporary storage of the shared libraries.
  236. RBR=$RPM_BUILD_ROOT
  237. MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
  238. # Clean up the BuildRoot first
  239. [ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
  240. mkdir -p $RBR%{_libdir}/mysql
  241. #
  242. # Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc
  243. #
  244. PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
  245. export PATH
  246. # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
  247. # including exceptions into the code
  248. if [ -z "$CXX" -a -z "$CC" ]
  249. then
  250. export CC="gcc"
  251. export CXX="gcc"
  252. fi
  253. # Prepare compiler flags
  254. CFLAGS=${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS}
  255. CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti }
  256. #
  257. # Only link statically on our i386 build host (which has a specially
  258. # patched static glibc installed) - ia64 and x86_64 run glibc-2.3 (unpatched)
  259. # so don't link statically there
  260. #
  261. for servertype in '--with-debug=full' ' '
  262. do
  263. (
  264. # We are in a subshell, so we can modify variables just for one run.
  265. if test "$servertype" != ' '
  266. then
  267. CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //'`
  268. CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //'`
  269. fi
  270. BuildMySQL "\
  271. %if %{STATIC_BUILD}
  272. --disable-shared \
  273. --with-mysqld-ldflags='-all-static' \
  274. --with-client-ldflags='-all-static' \
  275. $USE_OTHER_LIBC_DIR \
  276. %else
  277. --enable-shared \
  278. --with-zlib-dir=bundled \
  279. %endif
  280. --with-extra-charsets=complex \
  281. --with-comment=\"MySQL Community Edition (GPL)\" \
  282. --with-server-suffix='%{server_suffix}' \
  283. --with-archive-storage-engine \
  284. --with-innodb \
  285. --with-ndbcluster \
  286. --with-csv-storage-engine \
  287. --with-example-storage-engine \
  288. --with-blackhole-storage-engine \
  289. --with-federated-storage-engine \
  290. --with-big-tables $servertype"
  291. if test "$servertype" != ' '
  292. then
  293. # if this is not the regular build, we save the server binary
  294. ./libtool --mode=execute cp sql/mysqld sql/mysqld-debug
  295. ./libtool --mode=execute nm --numeric-sort sql/mysqld-debug > sql/mysqld-debug.sym
  296. echo "# debug"
  297. make test-bt-debug
  298. make clean
  299. fi
  300. )
  301. done
  302. ./libtool --mode=execute nm --numeric-sort sql/mysqld > sql/mysqld.sym
  303. # We might want to save the config log file
  304. if test -n "$MYSQL_CONFLOG_DEST"
  305. then
  306. cp -fp config.log "$MYSQL_CONFLOG_DEST"
  307. fi
  308. echo "# standard"
  309. make test-bt
  310. %install
  311. RBR=$RPM_BUILD_ROOT
  312. MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
  313. # Ensure that needed directories exists
  314. install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
  315. install -d $RBR%{mysqldatadir}/mysql
  316. install -d $RBR%{_datadir}/{sql-bench,mysql-test}
  317. install -d $RBR%{_includedir}
  318. install -d $RBR%{_libdir}
  319. install -d $RBR%{_mandir}
  320. install -d $RBR%{_sbindir}
  321. # Install all binaries stripped
  322. make install-strip DESTDIR=$RBR benchdir_root=%{_datadir}
  323. # Install the ndb binaries
  324. (cd ndb; make install DESTDIR=$RBR)
  325. # Install the saved debug server
  326. install -s -m 755 $MBD/sql/mysqld-debug $RBR%{_sbindir}/mysqld-debug
  327. # Install shared libraries (Disable for architectures that don't support it)
  328. # (cd $RBR%{_libdir}; tar xf $RBR/shared-libs.tar; rm -f $RBR/shared-libs.tar)
  329. # Include libgcc.a in the devel subpackage (BUG 4921)
  330. if expr "$CC" : ".*gcc.*" > /dev/null ;
  331. then
  332. libgcc=`$CC $CFLAGS --print-libgcc-file`
  333. if [ -f $libgcc ]
  334. then
  335. %define have_libgcc 1
  336. install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
  337. fi
  338. fi
  339. # install symbol files ( for stack trace resolution)
  340. # install -m 644 $MBD/sql/mysqld-max.sym $RBR%{_libdir}/mysql/mysqld-max.sym
  341. install -m 644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym
  342. install -m 644 $MBD/sql/mysqld-debug.sym $RBR%{_libdir}/mysql/mysqld-debug.sym
  343. # Install logrotate and autostart
  344. install -m 644 $MBD/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
  345. install -m 755 $MBD/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
  346. # Install embedded server library in the build root
  347. # FIXME No libmysqld on 5.0 yet
  348. #install -m 644 libmysqld/libmysqld.a $RBR%{_libdir}/mysql/
  349. # Create a symlink "rcmysql", pointing to the init.script. SuSE users
  350. # will appreciate that, as all services usually offer this.
  351. ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sbindir}/rcmysql
  352. # Create symbolic compatibility link safe_mysqld -> mysqld_safe
  353. # (safe_mysqld will be gone in MySQL 4.1)
  354. ln -sf ./mysqld_safe $RBR%{_bindir}/safe_mysqld
  355. # Touch the place where the my.cnf config file and mysqlmanager.passwd
  356. # (MySQL Instance Manager password file) might be located
  357. # Just to make sure it's in the file list and marked as a config file
  358. touch $RBR%{_sysconfdir}/my.cnf
  359. touch $RBR%{_sysconfdir}/mysqlmanager.passwd
  360. %pre server
  361. # Check if we can safely upgrade. An upgrade is only safe if it's from one
  362. # of our RPMs in the same version family.
  363. installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
  364. if [ $? -eq 0 -a -n "$installed" ]; then
  365. vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
  366. version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
  367. myvendor='%{mysql_vendor}'
  368. myversion='%{mysql_version}'
  369. old_family=`echo $version | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
  370. new_family=`echo $myversion | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
  371. [ -z "$vendor" ] && vendor='<unknown>'
  372. [ -z "$old_family" ] && old_family="<unrecognized version $version>"
  373. [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
  374. error_text=
  375. if [ "$vendor" != "$myvendor" ]; then
  376. error_text="$error_text
  377. The current MySQL server package is provided by a different
  378. vendor ($vendor) than $myvendor. Some files may be installed
  379. to different locations, including log files and the service
  380. startup script in %{_sysconfdir}/init.d/.
  381. "
  382. fi
  383. if [ "$old_family" != "$new_family" ]; then
  384. error_text="$error_text
  385. Upgrading directly from MySQL $old_family to MySQL $new_family may not
  386. be safe in all cases. A manual dump and restore using mysqldump is
  387. recommended. It is important to review the MySQL manual's Upgrading
  388. section for version-specific incompatibilities.
  389. "
  390. fi
  391. if [ -n "$error_text" ]; then
  392. cat <<HERE >&2
  393. ******************************************************************
  394. A MySQL server package ($installed) is installed.
  395. $error_text
  396. A manual upgrade is required.
  397. - Ensure that you have a complete, working backup of your data and my.cnf
  398. files
  399. - Shut down the MySQL server cleanly
  400. - Remove the existing MySQL packages. Usually this command will
  401. list the packages you should remove:
  402. rpm -qa | grep -i '^mysql-'
  403. You may choose to use 'rpm --nodeps -ev <package-name>' to remove
  404. the package which contains the mysqlclient shared library. The
  405. library will be reinstalled by the MySQL-shared-compat package.
  406. - Install the new MySQL packages supplied by $myvendor
  407. - Ensure that the MySQL server is started
  408. - Run the 'mysql_upgrade' program
  409. This is a brief description of the upgrade process. Important details
  410. can be found in the MySQL manual, in the Upgrading section.
  411. ******************************************************************
  412. HERE
  413. exit 1
  414. fi
  415. fi
  416. # Shut down a previously installed server first
  417. if test -x %{_sysconfdir}/init.d/mysql
  418. then
  419. %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
  420. echo "Giving mysqld a couple of seconds to exit nicely"
  421. sleep 5
  422. elif test -x %{_sysconfdir}/rc.d/init.d/mysql
  423. then
  424. %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
  425. echo "Giving mysqld a couple of seconds to exit nicely"
  426. sleep 5
  427. fi
  428. %post server
  429. mysql_datadir=%{mysqldatadir}
  430. # Create data directory if needed
  431. if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi
  432. if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
  433. if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
  434. # Make MySQL start/shutdown automatically when the machine does it.
  435. # use insserv for older SuSE Linux versions
  436. if test -x /sbin/insserv
  437. then
  438. /sbin/insserv %{_sysconfdir}/init.d/mysql
  439. # use chkconfig on Red Hat and newer SuSE releases
  440. elif test -x /sbin/chkconfig
  441. then
  442. /sbin/chkconfig --add mysql
  443. fi
  444. # Create a MySQL user and group. Do not report any problems if it already
  445. # exists.
  446. groupadd -r %{mysqld_group} 2> /dev/null || true
  447. useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
  448. # The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
  449. usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
  450. # Change permissions so that the user that will run the MySQL daemon
  451. # owns all database files.
  452. chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
  453. # Initiate databases if needed
  454. %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
  455. # Upgrade databases if needed would go here - but it cannot be automated yet
  456. # Change permissions again to fix any new files.
  457. chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
  458. # Fix permissions for the permission database so that only the user
  459. # can read them.
  460. chmod -R og-rw $mysql_datadir/mysql
  461. # Restart in the same way that mysqld will be started normally.
  462. %{_sysconfdir}/init.d/mysql start
  463. # Allow safe_mysqld to start mysqld and print a message before we exit
  464. sleep 2
  465. %post ndb-storage
  466. mysql_clusterdir=/var/lib/mysql-cluster
  467. # Create cluster directory if needed
  468. if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi
  469. %preun server
  470. if test $1 = 0
  471. then
  472. # Stop MySQL before uninstalling it
  473. if test -x %{_sysconfdir}/init.d/mysql
  474. then
  475. %{_sysconfdir}/init.d/mysql stop > /dev/null
  476. # Remove autostart of mysql
  477. # for older SuSE Linux versions
  478. if test -x /sbin/insserv
  479. then
  480. /sbin/insserv -r %{_sysconfdir}/init.d/mysql
  481. # use chkconfig on Red Hat and newer SuSE releases
  482. elif test -x /sbin/chkconfig
  483. then
  484. /sbin/chkconfig --del mysql
  485. fi
  486. fi
  487. fi
  488. # We do not remove the mysql user since it may still own a lot of
  489. # database files.
  490. # Clean up the BuildRoot
  491. %clean
  492. [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
  493. %files server
  494. %defattr(-,root,root,0755)
  495. %doc COPYING README
  496. %doc support-files/my-*.cnf
  497. %doc support-files/ndb-*.ini
  498. %doc %attr(644, root, root) %{_infodir}/mysql.info*
  499. %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
  500. %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
  501. %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
  502. %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
  503. %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
  504. %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
  505. %doc %attr(644, root, man) %{_mandir}/man1/mysql_explain_log.1*
  506. %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
  507. %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
  508. %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
  509. %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1*
  510. %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
  511. %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
  512. %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
  513. %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
  514. %doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8*
  515. %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
  516. %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
  517. %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
  518. %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
  519. %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
  520. %doc %attr(644, root, man) %{_mandir}/man1/perror.1*
  521. %doc %attr(644, root, man) %{_mandir}/man1/replace.1*
  522. %doc %attr(644, root, man) %{_mandir}/man1/safe_mysqld.1*
  523. %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
  524. %ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
  525. %attr(755, root, root) %{_bindir}/innochecksum
  526. %attr(755, root, root) %{_bindir}/my_print_defaults
  527. %attr(755, root, root) %{_bindir}/myisam_ftdump
  528. %attr(755, root, root) %{_bindir}/myisamchk
  529. %attr(755, root, root) %{_bindir}/myisamlog
  530. %attr(755, root, root) %{_bindir}/myisampack
  531. %attr(755, root, root) %{_bindir}/mysql_convert_table_format
  532. %attr(755, root, root) %{_bindir}/mysql_explain_log
  533. %attr(755, root, root) %{_bindir}/mysql_fix_extensions
  534. %attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables
  535. %attr(755, root, root) %{_bindir}/mysql_install_db
  536. %attr(755, root, root) %{_bindir}/mysql_secure_installation
  537. %attr(755, root, root) %{_bindir}/mysql_setpermission
  538. %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
  539. %attr(755, root, root) %{_bindir}/mysql_upgrade
  540. %attr(755, root, root) %{_bindir}/mysql_zap
  541. %attr(755, root, root) %{_bindir}/mysqlbug
  542. %attr(755, root, root) %{_bindir}/mysqld_multi
  543. %attr(755, root, root) %{_bindir}/mysqld_safe
  544. %attr(755, root, root) %{_bindir}/mysqldumpslow
  545. %attr(755, root, root) %{_bindir}/mysqlhotcopy
  546. %attr(755, root, root) %{_bindir}/mysqltest
  547. %attr(755, root, root) %{_bindir}/perror
  548. %attr(755, root, root) %{_bindir}/replace
  549. %attr(755, root, root) %{_bindir}/resolve_stack_dump
  550. %attr(755, root, root) %{_bindir}/resolveip
  551. %attr(755, root, root) %{_bindir}/safe_mysqld
  552. %attr(755, root, root) %{_sbindir}/mysqld
  553. %attr(755, root, root) %{_sbindir}/mysqld-debug
  554. %attr(755, root, root) %{_sbindir}/mysqlmanager
  555. %attr(755, root, root) %{_sbindir}/rcmysql
  556. %attr(644, root, root) %{_libdir}/mysql/mysqld.sym
  557. %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
  558. %attr(755, root, root) %{_sysconfdir}/init.d/mysql
  559. %attr(755, root, root) %{_datadir}/mysql/
  560. %files client
  561. %defattr(-, root, root, 0755)
  562. %attr(755, root, root) %{_bindir}/msql2mysql
  563. %attr(755, root, root) %{_bindir}/mysql
  564. %attr(755, root, root) %{_bindir}/mysql_find_rows
  565. %attr(755, root, root) %{_bindir}/mysql_tableinfo
  566. %attr(755, root, root) %{_bindir}/mysql_upgrade_shell
  567. %attr(755, root, root) %{_bindir}/mysql_waitpid
  568. %attr(755, root, root) %{_bindir}/mysqlaccess
  569. %attr(755, root, root) %{_bindir}/mysqladmin
  570. %attr(755, root, root) %{_bindir}/mysqlbinlog
  571. %attr(755, root, root) %{_bindir}/mysqlcheck
  572. %attr(755, root, root) %{_bindir}/mysqldump
  573. %attr(755, root, root) %{_bindir}/mysqlimport
  574. %attr(755, root, root) %{_bindir}/mysqlshow
  575. %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
  576. %doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
  577. %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
  578. %doc %attr(644, root, man) %{_mandir}/man1/mysql_tableinfo.1*
  579. %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
  580. %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
  581. %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
  582. %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
  583. %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
  584. %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
  585. %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
  586. %post shared
  587. /sbin/ldconfig
  588. %postun shared
  589. /sbin/ldconfig
  590. %files ndb-storage
  591. %defattr(-,root,root,0755)
  592. %attr(755, root, root) %{_sbindir}/ndbd
  593. %doc %attr(644, root, man) %{_mandir}/man8/ndbd.8*
  594. %files ndb-management
  595. %defattr(-,root,root,0755)
  596. %attr(755, root, root) %{_sbindir}/ndb_mgmd
  597. %doc %attr(644, root, man) %{_mandir}/man8/ndb_mgmd.8*
  598. %files ndb-tools
  599. %defattr(-,root,root,0755)
  600. %attr(755, root, root) %{_bindir}/ndb_config
  601. %attr(755, root, root) %{_bindir}/ndb_desc
  602. %attr(755, root, root) %{_bindir}/ndb_error_reporter
  603. %attr(755, root, root) %{_bindir}/ndb_mgm
  604. %attr(755, root, root) %{_bindir}/ndb_restore
  605. %attr(755, root, root) %{_bindir}/ndb_select_all
  606. %attr(755, root, root) %{_bindir}/ndb_select_count
  607. %attr(755, root, root) %{_bindir}/ndb_show_tables
  608. %attr(755, root, root) %{_bindir}/ndb_size.pl
  609. %attr(755, root, root) %{_bindir}/ndb_test_platform
  610. %attr(755, root, root) %{_bindir}/ndb_waiter
  611. %attr(-, root, root) %{_datadir}/mysql/ndb_size.tmpl
  612. %doc %attr(644, root, man) %{_mandir}/man1/ndb_config.1*
  613. %doc %attr(644, root, man) %{_mandir}/man1/ndb_desc.1*
  614. %doc %attr(644, root, man) %{_mandir}/man1/ndb_error_reporter.1*
  615. %doc %attr(644, root, man) %{_mandir}/man1/ndb_mgm.1*
  616. %doc %attr(644, root, man) %{_mandir}/man1/ndb_restore.1*
  617. %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_all.1*
  618. %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_count.1*
  619. %doc %attr(644, root, man) %{_mandir}/man1/ndb_show_tables.1*
  620. %doc %attr(644, root, man) %{_mandir}/man1/ndb_size.pl.1*
  621. %doc %attr(644, root, man) %{_mandir}/man1/ndb_waiter.1*
  622. %files ndb-extra
  623. %defattr(-,root,root,0755)
  624. %attr(755, root, root) %{_bindir}/ndb_delete_all
  625. %attr(755, root, root) %{_bindir}/ndb_drop_index
  626. %attr(755, root, root) %{_bindir}/ndb_drop_table
  627. %attr(755, root, root) %{_sbindir}/ndb_cpcd
  628. %doc %attr(644, root, man) %{_mandir}/man1/ndb_delete_all.1*
  629. %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_index.1*
  630. %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_table.1*
  631. %doc %attr(644, root, man) %{_mandir}/man1/ndb_cpcd.1*
  632. %files devel
  633. %defattr(-, root, root, 0755)
  634. %doc EXCEPTIONS-CLIENT
  635. %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
  636. %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
  637. %attr(755, root, root) %{_bindir}/comp_err
  638. %attr(755, root, root) %{_bindir}/mysql_config
  639. %dir %attr(755, root, root) %{_includedir}/mysql
  640. %dir %attr(755, root, root) %{_libdir}/mysql
  641. %{_includedir}/mysql/*
  642. %{_libdir}/mysql/libdbug.a
  643. %{_libdir}/mysql/libheap.a
  644. %if %{have_libgcc}
  645. %{_libdir}/mysql/libmygcc.a
  646. %endif
  647. %{_libdir}/mysql/libmyisam.a
  648. %{_libdir}/mysql/libmyisammrg.a
  649. %{_libdir}/mysql/libmysqlclient.a
  650. %{_libdir}/mysql/libmysqlclient.la
  651. %{_libdir}/mysql/libmysqlclient_r.a
  652. %{_libdir}/mysql/libmysqlclient_r.la
  653. %{_libdir}/mysql/libmystrings.a
  654. %{_libdir}/mysql/libmysys.a
  655. %{_libdir}/mysql/libndbclient.a
  656. %{_libdir}/mysql/libndbclient.la
  657. %{_libdir}/mysql/libvio.a
  658. %if %{STATIC_BUILD}
  659. %else
  660. %{_libdir}/mysql/libz.a
  661. %{_libdir}/mysql/libz.la
  662. %endif
  663. %files shared
  664. %defattr(-, root, root, 0755)
  665. # Shared libraries (omit for architectures that don't support them)
  666. %{_libdir}/*.so*
  667. %files bench
  668. %defattr(-, root, root, 0755)
  669. %attr(-, root, root) %{_datadir}/sql-bench
  670. %attr(-, root, root) %{_datadir}/mysql-test
  671. %attr(755, root, root) %{_bindir}/mysql_client_test
  672. %attr(755, root, root) %{_bindir}/mysqltestmanager
  673. %attr(755, root, root) %{_bindir}/mysqltestmanager-pwgen
  674. %attr(755, root, root) %{_bindir}/mysqltestmanagerc
  675. %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
  676. %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
  677. %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
  678. #%files embedded
  679. #%defattr(-, root, root, 0755)
  680. # %attr(644, root, root) %{_libdir}/mysql/libmysqld.a
  681. # The spec file changelog only includes changes made to the spec file
  682. # itself - note that they must be ordered by date (important when
  683. # merging BK trees)
  684. %changelog
  685. * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
  686. - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
  687. This should cover both gcc and icc flags. Fixes bug#40546.
  688. * Mon Aug 18 2008 Joerg Bruehe <joerg@mysql.com>
  689. - Get rid of the "warning: Installed (but unpackaged) file(s) found:"
  690. Some files were missing:
  691. - Manual "mysqlbug" ("server" subpackage)
  692. - Program "innochecksum" and its manual ("server" subpackage)
  693. - Manuals "mysql_find_rows" + "mysql_tableinfo" ("client" subpackage)
  694. - Script "mysql_upgrade_shell" ("client" subpackage)
  695. - Manual "comp_err" ("devel" subpackage)
  696. - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
  697. - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
  698. * Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
  699. - Add the man pages for "ndbd" and "ndb_mgmd".
  700. * Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
  701. - Require a manual upgrade if the alread-installed mysql-server is
  702. from another vendor, or is of a different major version.
  703. * Fri Nov 16 2007 Joerg Bruehe <joerg@mysql.com>
  704. - When testing the debug server, use "make test-bt-debug".
  705. * Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
  706. - Removed man page for "mysql_create_system_tables"
  707. * Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
  708. - Add debug server.
  709. * Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
  710. - Remove Max RPMs; the server RPMs contain a mysqld compiled with all
  711. features that previously only were built into Max.
  712. * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
  713. - Add several man pages for NDB which are now created.
  714. * Wed Jan 31 2007 Daniel Fischer <df@mysql.com>
  715. - add MTR_BUILD_THREAD=auto to test runs.
  716. * Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
  717. - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
  718. correct "libgcc.a" path is returned for the 32/64 bit architecture.
  719. * Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
  720. - Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
  721. * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
  722. - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
  723. in the server RPM.
  724. - The "mysqlmanager" man page got moved from section 1 to 8.
  725. * Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
  726. - Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
  727. replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
  728. (bug#22081).
  729. * Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com>
  730. - Switch from "make test*" to explicit calls of the test suite,
  731. so that "report features" can be used.
  732. * Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
  733. - Fix a typing error in the "make" target for the Perl script to run the tests.
  734. * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
  735. - Use the Perl script to run the tests, because it will automatically check
  736. whether the server is configured with SSL.
  737. * Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
  738. - move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
  739. - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
  740. there are some more aspects which need to be solved before this is possible.
  741. For now, just ensure the binary "mysql_upgrade" is delivered and installed.
  742. * Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
  743. - Close a gap of the previous version by explicitly using
  744. a newly created temporary directory for the socket to be used
  745. in the "mysql_upgrade" operation, overriding any local setting.
  746. * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
  747. - To run "mysql_upgrade", we need a running server;
  748. start it in isolation and skip password checks.
  749. * Sat May 20 2006 Kent Boortz <kent@mysql.com>
  750. - Always compile for PIC, position independent code.
  751. * Wed May 10 2006 Kent Boortz <kent@mysql.com>
  752. - Use character set "all" for the "max", to make Cluster nodes
  753. independent on the character set directory, and the problem that
  754. two RPM sub packages both wants to install this directory.
  755. * Mon May 01 2006 Kent Boortz <kent@mysql.com>
  756. - Use "./libtool --mode=execute" instead of searching for the
  757. executable in current directory and ".libs".
  758. * Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
  759. - Install and run "mysql_upgrade"
  760. * Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
  761. - Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
  762. * Fri Mar 03 2006 Kent Boortz <kent@mysql.com>
  763. - Don't output an embedded package as it is empty
  764. - Can't use bundled zlib when doing static build. Might be a
  765. automake/libtool problem, having two .la files, "libmysqlclient.la"
  766. and "libz.la", on the same command line to link "thread_test"
  767. expands to too many "-lc", "-lpthread" and other libs giving hard
  768. to nail down duplicate symbol defintion problems.
  769. * Fri Jan 10 2006 Joerg Bruehe <joerg@mysql.com>
  770. - Use "-i" on "make test-force";
  771. this is essential for later evaluation of this log file.
  772. * Fri Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
  773. - Added zlib to the list of (static) libraries installed
  774. - Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
  775. - Compile MySQL with bundled zlib
  776. - Fixed %packager name to "MySQL Production Engineering Team"
  777. * Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
  778. - Avoid using the "bundled" zlib on "shared" builds:
  779. As it is not installed (on the build system), this gives dependency
  780. problems with "libtool" causing the build to fail.
  781. (Change was done on Nov 11, but left uncommented.)
  782. * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
  783. - Extend the file existence check for "init.d/mysql" on un-install
  784. to also guard the call to "insserv"/"chkconfig".
  785. * Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
  786. - added more man pages
  787. * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
  788. - Made yaSSL support an option (off by default)
  789. * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
  790. - Enabled yaSSL support
  791. * Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
  792. - Give mode arguments the same way in all places
  793. - Moved copy of mysqld.a to "standard" build, but
  794. disabled it as we don't do embedded yet in 5.0
  795. * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
  796. - For 5.x, always compile with --with-big-tables
  797. - Copy the config.log file to location outside
  798. the build tree
  799. * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
  800. - Removed unneeded/obsolete configure options
  801. - Added archive engine to standard server
  802. - Removed the embedded server from experimental server
  803. - Changed suffix "-Max" => "-max"
  804. - Changed comment string "Max" => "Experimental"
  805. * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
  806. - added a usermod call to assign a potential existing mysql user to the
  807. correct user group (BUG#12823)
  808. - Save the perror binary built during Max build so it supports the NDB
  809. error codes (BUG#13740)
  810. - added a separate macro "mysqld_group" to be able to define the
  811. user group of the mysql user seperately, if desired.
  812. * Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
  813. - fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
  814. $RBR variable did not get expanded, thus leaving old build roots behind)
  815. * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
  816. - Fixed the creation of the mysql user group account in the postinstall
  817. section (BUG 12348)
  818. - Fixed enabling the Archive storage engine in the Max binary
  819. * Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
  820. - Fixed the Requires: tag for the server RPM (BUG 12233)
  821. * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
  822. - create a "mysql" user group and assign the mysql user account to that group
  823. in the server postinstall section. (BUG 10984)
  824. * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
  825. - Do not build statically on i386 by default, only when adding either "--with
  826. static" or "--define '_with_static 1'" to the RPM build options. Static
  827. linking really only makes sense when linking against the specially patched
  828. glibc 2.2.5.
  829. * Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
  830. - added mysql_client_test to the "bench" subpackage (BUG 10676)
  831. - added the libndbclient static and shared libraries (BUG 10676)
  832. * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
  833. - use "mysqldatadir" variable instead of hard-coding the path multiple times
  834. - use the "mysqld_user" variable on all occasions a user name is referenced
  835. - removed (incomplete) Brazilian translations
  836. - removed redundant release tags from the subpackage descriptions
  837. * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
  838. - Added a "make clean" between separate calls to "BuildMySQL".
  839. * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
  840. - Enabled the "blackhole" storage engine for the Max RPM
  841. * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
  842. - removed the MySQL manual files (html/ps/texi) - they have been removed
  843. from the MySQL sources and are now available seperately.
  844. * Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
  845. - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
  846. mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
  847. * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
  848. - Disabled RAID in the Max binaries once and for all (it has finally been
  849. removed from the source tree)
  850. * Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
  851. - Install MySQL Instance Manager together with mysqld, touch mysqlmanager
  852. password file
  853. * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
  854. - Fixed the compilation comments and moved them into the separate build sections
  855. for Max and Standard
  856. * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
  857. - enabled the "Ndbcluster" storage engine for the max binary
  858. - added extra make install in ndb subdir after Max build to get ndb binaries
  859. - added packages for ndbcluster storage engine
  860. * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
  861. - replaced obsoleted "BuildPrereq" with "BuildRequires" instead
  862. * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
  863. - enabled the "Federated" storage engine for the max binary
  864. * Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
  865. - ISAM and merge storage engines were purged. As well as appropriate
  866. tools and manpages (isamchk and isamlog)
  867. * Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
  868. - enabled the "Archive" storage engine for the max binary
  869. - enabled the "CSV" storage engine for the max binary
  870. - enabled the "Example" storage engine for the max binary
  871. * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
  872. - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
  873. * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
  874. - do not link statically on IA64/AMD64 as these systems do not have
  875. a patched glibc installed
  876. * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
  877. - Added libmygcc.a to the devel subpackage (required to link applications
  878. against the the embedded server libmysqld.a) (BUG 4921)
  879. * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
  880. - Added EXCEPTIONS-CLIENT to the "devel" package
  881. * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
  882. - disabled OpenSSL in the Max binaries again (the RPM packages were the
  883. only exception to this anyway) (BUG 1043)
  884. * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
  885. - fixed server postinstall (mysql_install_db was called with the wrong
  886. parameter)
  887. * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
  888. - added mysql_tzinfo_to_sql to the server subpackage
  889. - run "make clean" instead of "make distclean"
  890. * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
  891. - added ncurses-devel to the build prerequisites (BUG 3377)
  892. * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
  893. - when using gcc, _always_ use CXX=gcc
  894. - replaced Copyright with License field (Copyright is obsolete)
  895. * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
  896. - added myisam_ftdump to the Server package
  897. * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
  898. - link the mysql client against libreadline instead of libedit (BUG 2289)
  899. * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
  900. - marked /etc/logrotate.d/mysql as a config file (BUG 2156)
  901. * Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
  902. - fixed file permissions (BUG 1672)
  903. * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
  904. - made testing for gcc3 a bit more robust
  905. * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
  906. - added missing file mysql_create_system_tables to the server subpackage
  907. * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
  908. - removed dependency on MySQL-client from the MySQL-devel subpackage
  909. as it is not really required. (BUG 1610)
  910. * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
  911. - Fixed BUG 1162 (removed macro names from the changelog)
  912. - Really fixed BUG 998 (disable the checking for installed but
  913. unpackaged files)
  914. * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
  915. - Fixed BUG 959 (libmysqld not being compiled properly)
  916. - Fixed BUG 998 (RPM build errors): added missing files to the
  917. distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
  918. mysql_fix_privilege_tables.1), removed "-n" from install section.
  919. * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
  920. - removed the GIF Icon (file was not included in the sources anyway)
  921. - removed unused variable shared_lib_version
  922. - do not run automake before building the standard binary
  923. (should not be necessary)
  924. - add server suffix '-standard' to standard binary (to be in line
  925. with the binary tarball distributions)
  926. - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
  927. _datadir, _includedir) throughout the spec file.
  928. - allow overriding CC and CXX (required when building with other compilers)
  929. * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
  930. - re-enabled RAID again
  931. * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
  932. - disabled MyISAM RAID (--with-raid) - it throws an assertion which
  933. needs to be investigated first.
  934. * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
  935. - added missing file mysql_secure_installation to server subpackage
  936. (BUG 141)
  937. * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
  938. - re-added missing pre- and post(un)install scripts to server subpackage
  939. - added config file /etc/my.cnf to the file list (just for completeness)
  940. - make sure to create the datadir with 755 permissions
  941. * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
  942. - removed unused CC and CXX variables
  943. - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
  944. * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
  945. - renamed package "MySQL" to "MySQL-server"
  946. - fixed Copyright tag
  947. - added mysql_waitpid to client subpackage (required for mysql-test-run)
  948. * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
  949. - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
  950. Linux distributions now support this scheme as proposed by the LSB either
  951. directly or via a compatibility symlink)
  952. - Use new "restart" init script action instead of starting and stopping
  953. separately
  954. - Be more flexible in activating the automatic bootup - use insserv (on
  955. older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
  956. others) to create the respective symlinks
  957. * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
  958. - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
  959. (mixing 3.23 and 4.0 packages)
  960. * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
  961. - Turn off OpenSSL in MySQL-Max for now until it works properly again
  962. - enable RAID for the Max binary instead
  963. - added compatibility link: safe_mysqld -> mysqld_safe to ease the
  964. transition from 3.23
  965. * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
  966. - Reworked the build steps a little bit: the Max binary is supposed
  967. to include OpenSSL, which cannot be linked statically, thus trying
  968. to statically link against a special glibc is futile anyway
  969. - because of this, it is not required to make yet another build run
  970. just to compile the shared libs (saves a lot of time)
  971. - updated package description of the Max subpackage
  972. - clean up the BuildRoot directory afterwards
  973. * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
  974. - Updated Packager information
  975. - Fixed the build options: the regular package is supposed to
  976. include InnoDB and linked statically, while the Max package
  977. should include BDB and SSL support
  978. * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
  979. - Use more RPM macros (e.g. infodir, mandir) to make the spec
  980. file more portable
  981. - reorganized the installation of documentation files: let RPM
  982. take care of this
  983. - reorganized the file list: actually install man pages along
  984. with the binaries of the respective subpackage
  985. - do not include libmysqld.a in the devel subpackage as well, if we
  986. have a special "embedded" subpackage
  987. - reworked the package descriptions
  988. * Mon Oct 8 2001 Monty
  989. - Added embedded server as a separate RPM
  990. * Fri Apr 13 2001 Monty
  991. - Added mysqld-max to the distribution
  992. * Tue Jan 2 2001 Monty
  993. - Added mysql-test to the bench package
  994. * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
  995. - Added separate libmysql_r directory; now both a threaded
  996. and non-threaded library is shipped.
  997. * Wed Sep 28 1999 David Axmark <davida@mysql.com>
  998. - Added the support-files/my-example.cnf to the docs directory.
  999. - Removed devel dependency on base since it is about client
  1000. development.
  1001. * Wed Sep 8 1999 David Axmark <davida@mysql.com>
  1002. - Cleaned up some for 3.23.
  1003. * Thu Jul 1 1999 David Axmark <davida@mysql.com>
  1004. - Added support for shared libraries in a separate sub
  1005. package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
  1006. - The --enable-assembler switch is now automatically disables on
  1007. platforms there assembler code is unavailable. This should allow
  1008. building this RPM on non i386 systems.
  1009. * Mon Feb 22 1999 David Axmark <david@detron.se>
  1010. - Removed unportable cc switches from the spec file. The defaults can
  1011. now be overridden with environment variables. This feature is used
  1012. to compile the official RPM with optimal (but compiler version
  1013. specific) switches.
  1014. - Removed the repetitive description parts for the sub rpms. Maybe add
  1015. again if RPM gets a multiline macro capability.
  1016. - Added support for a pt_BR translation. Translation contributed by
  1017. Jorge Godoy <jorge@bestway.com.br>.
  1018. * Wed Nov 4 1998 David Axmark <david@detron.se>
  1019. - A lot of changes in all the rpm and install scripts. This may even
  1020. be a working RPM :-)
  1021. * Sun Aug 16 1998 David Axmark <david@detron.se>
  1022. - A developers changelog for MySQL is available in the source RPM. And
  1023. there is a history of major user visible changed in the Reference
  1024. Manual. Only RPM specific changes will be documented here.