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.

1403 lines
47 KiB

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