@ -6,7 +6,7 @@
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
Name: MySQL
Name: MySQL
Summary: MySQL: a very fast and reliable SQL database engine
Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases
Group: Applications/Databases
Summary( pt_BR) : MySQL: Um servidor SQL r<> pido e confi<66> vel.
Summary( pt_BR) : MySQL: Um servidor SQL r<> pido e confi<66> vel.
Group( pt_BR) : Aplica<63> <61> es/Banco_de_Dados
Group( pt_BR) : Aplica<63> <61> es/Banco_de_Dados
@ -18,54 +18,32 @@ Icon: mysql.gif
URL: http://www.mysql.com/
URL: http://www.mysql.com/
Packager: David Axmark <david@mysql.com>
Packager: David Axmark <david@mysql.com>
Vendor: MySQL AB
Vendor: MySQL AB
Requires: fileutils sh-utils
Provides: msqlormysql MySQL-server mysql
Provides: msqlormysql MySQL-server mysql
Obsoletes: mysql
Obsoletes: mysql
# Think about what you use here since the first step is to
# Think about what you use here since the first step is to
# run a rm -rf
# run a rm -rf
BuildRoot: /var/tmp/mysql
BuildRoot: %{ _tmppath} /%{ name} -%{ version} -build
# From the manual
# From the manual
%description
%description
MySQL is a true multi-user, multi-threaded SQL ( Structured Qu ery
The MySQL( TM) software delivers a very fast, multi-threaded, multi-us er,
Language) database server. MySQL is a client/server implementation
and robust SQL ( Structured Query Language) database server. MySQL Server
that consists of a server daemon ( mysqld) and many different client
is intended for mission-critical, heavy-load production systems as well
programs/libraries.
as for embedding into mass-deployed software. MySQL is a trademark of
MySQL AB.
The main goals of MySQL are speed, robustness and ease of use. MySQL
The MySQL software has Dual Licensing, which means you can use the MySQL
was originally developed because we needed a SQL server that could
software free of charge under the GNU General Public License
handle very big databases with magnitude higher speed than what any
( http://www.gnu.org/licenses/) . You can also purchase commercial MySQL
database vendor could offer to us. And since we did not need all the
licenses from MySQL AB if you do not wish to be bound by the terms of
features that made their server slow we made our own. We have now been
the GPL. See the chapter "Licensing and Support" in the manual for
using MySQL since 1996 in a environment with more than 40 databases,
further info.
10,000 tables, of which more than 500 have more than 7 million
rows. This is about 200G of data.
The base upon which MySQL is built is a set of routines that have been
The MySQL web site ( http://www.mysql.com/) provides the latest
used in a highly demanding production environment for many
news and information about the MySQL software. Also please see the
years. While MySQL is still in development, it already offers a rich
documentation and the manual for more information.
and highly useful function set.
See the documentation for more information.
%description -l pt_BR
O MySQL <20> um servidor de banco de dados SQL realmente multiusu<73> rio e\
multi-tarefa. A linguagem SQL <20> a mais popular linguagem para banco de\
dados no mundo. O MySQL <20> uma implementa<74> <61> o cliente/servidor que\
consiste de um servidor chamado mysqld e diversos\
programas/bibliotecas clientes. Os principais objetivos do MySQL s<> o:\
velocidade, robustez e facilidade de uso. O MySQL foi originalmente\
desenvolvido porque n<> s na Tcx precis<69> vamos de um servidor SQL que\
pudesse lidar com grandes bases de dados e com uma velocidade muito\
maior do que a que qualquer vendedor podia nos oferecer. Estamos\
usando\
o MySQL desde 1996 em um ambiente com mais de 40 bases de dados com 10.000\
tabelas, das quais mais de 500 t<> m mais de 7 milh<6C> es de linhas. Isto <20> o\
equivalente a aproximadamente 50G de dados cr<63> ticos. A base da constru<72> <75> o do \
MySQL <20> uma s<> rie de rotinas que foram usadas em um ambiente de produ<64> <75> o com\
alta demanda por muitos anos. Mesmo o MySQL estando ainda em desenvolvimento,\
ele j<> oferece um conjunto de fun<75> <6E> es muito ricas e <20> teis. Veja a documenta<74> <61> o\
para maiores informa<6D> <61> es.
%package client
%package client
Release: %{ release}
Release: %{ release}
@ -86,7 +64,7 @@ Este pacote cont
%package bench
%package bench
Release: %{ release}
Release: %{ release}
Requires: MySQL -client MySQL-DBI-perl-bin perl
Requires: %{ name} -client MySQL-DBI-perl-bin perl
Summary: MySQL - Benchmarks and test system
Summary: MySQL - Benchmarks and test system
Group: Applications/Databases
Group: Applications/Databases
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
@ -104,7 +82,7 @@ Este pacote cont
%package devel
%package devel
Release: %{ release}
Release: %{ release}
Requires: MySQL -client
Requires: %{ name} -client
Summary: MySQL - Development header files and libraries
Summary: MySQL - Development header files and libraries
Group: Applications/Databases
Group: Applications/Databases
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
@ -139,21 +117,29 @@ Provides: mysql-Max
Obsoletes: mysql-Max
Obsoletes: mysql-Max
%description Max
%description Max
Optional MySQL server binary that supports features
Optional MySQL server binary that supports additional features like
like transactional tables. To active this binary, just install this
transactional tables. To activat e this binary, just install this
package after the MySQL package.
package in addition to the MySQL package.
%package embedded
%package embedded
Release: %{ release}
Release: %{ release}
Requires: devel
Requires: %{ name} - devel
Summary: MySQL - embedded library
Summary: MySQL - embedded library
Group: Applications/Databases
Group: Applications/Databases
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
Summary( pt_BR) : MySQL - Medi<64> <69> es de desempenho
Group( pt_BR) : Aplica<63> <61> es/Banco_de_Dados
Group( pt_BR) : Aplica<63> <61> es/Banco_de_Dados
Obsoletes: embedded
Obsoletes: mysql- embedded
%description embedded
%description embedded
This package contains the MySQL server as library.
This package contains the MySQL server as an embedded library.
The embedded MySQL server library makes it possible to run a
full-featured MySQL server inside the client application.
The main benefits are increased speed and more simple management
for embedded applications.
The API is identical for the embedded MySQL version and the
client/server version.
%{ see_base}
%{ see_base}
@ -188,9 +174,9 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
--sysconfdir=/etc \
--sysconfdir=/etc \
--datadir=/usr/share \
--datadir=/usr/share \
--localstatedir=/var/lib/mysql \
--localstatedir=/var/lib/mysql \
--infodir=/usr/info \
--infodir=%{_infodir} \
--includedir=/usr/include \
--includedir=/usr/include \
--mandir=/usr/man \
--mandir=%{_mandir} \
--with-embedded-server \
--with-embedded-server \
--enable-thread-safe-client \
--enable-thread-safe-client \
--with-comment=\"Official MySQL RPM\";
--with-comment=\"Official MySQL RPM\";
@ -217,12 +203,9 @@ fi
RBR = $RPM_BUILD_ROOT
RBR = $RPM_BUILD_ROOT
MBD = $RPM_BUILD_DIR /mysql-%{ mysql_version}
MBD = $RPM_BUILD_DIR /mysql-%{ mysql_version}
if test -z " $RBR " -o " $RBR " = "/"
then
# Clean up the BuildRoot first
echo "RPM_BUILD_ROOT has stupid value"
[ " $RBR " != "/" ] && [ -d $RBR ] && rm -rf $RBR ;
exit 1
fi
rm -rf $RBR
mkdir -p $RBR
mkdir -p $RBR
#
#
@ -248,7 +231,7 @@ mv Docs/manual.ps Docs/manual.ps.save
make distclean
make distclean
mv Docs/manual.ps.save Docs/manual.ps
mv Docs/manual.ps.save Docs/manual.ps
#now build and save shared libraries
# now build and save shared libraries
BuildMySQL "--enable-shared --enable-thread-safe-client --without-server "
BuildMySQL "--enable-shared --enable-thread-safe-client --without-server "
( cd libmysql/.libs; tar cf $RBR /shared-libs.tar *.so*)
( cd libmysql/.libs; tar cf $RBR /shared-libs.tar *.so*)
( cd libmysql_r/.libs; tar rf $RBR /shared-libs.tar *.so*)
( cd libmysql_r/.libs; tar rf $RBR /shared-libs.tar *.so*)
@ -271,13 +254,14 @@ nm --numeric-sort sql/mysqld > sql/mysqld.sym
%install -n mysql-%{ mysql_version}
%install -n mysql-%{ mysql_version}
RBR = $RPM_BUILD_ROOT
RBR = $RPM_BUILD_ROOT
MBD = $RPM_BUILD_DIR /mysql-%{ mysql_version}
MBD = $RPM_BUILD_DIR /mysql-%{ mysql_version}
# Ensure that needed directories exists
# Ensure that needed directories exists
install -d $RBR /etc/{ logrotate.d,rc.d/init.d}
install -d $RBR /etc/{ logrotate.d,rc.d/init.d}
install -d $RBR /var/lib/mysql/mysql
install -d $RBR /var/lib/mysql/mysql
install -d $RBR /usr/share/sql-bench
install -d $RBR /usr/share/sql-bench
install -d $RBR /usr/share/mysql-test
install -d $RBR /usr/share/mysql-test
install -d $RBR /usr/{ sbin,share,man,include }
install -d $RBR %{ _mandir }
install -d $RBR /usr/doc/MySQL-%{ mysql_version }
install -d $RBR /usr/{ sbin,share,include}
install -d $RBR /usr/lib
install -d $RBR /usr/lib
# Make install
# Make install
make install DESTDIR = $RBR benchdir_root = /usr/share/
make install DESTDIR = $RBR benchdir_root = /usr/share/
@ -296,18 +280,6 @@ install -m644 $MBD/sql/mysqld.sym $RBR/usr/lib/mysql/mysqld.sym
install -m644 $MBD /support-files/mysql-log-rotate $RBR /etc/logrotate.d/mysql
install -m644 $MBD /support-files/mysql-log-rotate $RBR /etc/logrotate.d/mysql
install -m755 $MBD /support-files/mysql.server $RBR /etc/rc.d/init.d/mysql
install -m755 $MBD /support-files/mysql.server $RBR /etc/rc.d/init.d/mysql
# Install docs
install -m644 $RPM_BUILD_DIR /mysql-%{ mysql_version} /Docs/mysql.info \
$RBR /usr/info/mysql.info
for file in README COPYING COPYING.LIB Docs/manual_toc.html Docs/manual.html \
Docs/manual.txt Docs/manual.texi Docs/manual.ps \
support-files/my-huge.cnf support-files/my-large.cnf \
support-files/my-medium.cnf support-files/my-small.cnf
do
b = ` basename $file `
install -m644 $MBD /$file $RBR /usr/doc/MySQL-%{ mysql_version} /$b
done
%pre
%pre
if test -x /etc/rc.d/init.d/mysql
if test -x /etc/rc.d/init.d/mysql
then
then
@ -375,32 +347,43 @@ fi
# database files.
# database files.
%files
%files
%attr( - , root, root) %doc /usr/doc/MySQL-%{ mysql_version} /
%doc %attr( 644 , root, root) COPYING COPYING.LIB README
%doc %attr( 644, root, root) Docs/manual.{ html,ps,texi,txt} Docs/manual_toc.html
%doc %attr( 644, root, root) support-files/my-*.cnf
%doc %attr( 644, root, root) %{ _infodir} /mysql.info*
%doc %attr( 644, root, man) %{ _mandir} /man1/isamchk.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/isamlog.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysql_zap.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqld.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqld_multi.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqld_safe.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/perror.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/replace.1*
%attr( 755, root, root) /usr/bin/isamchk
%attr( 755, root, root) /usr/bin/isamchk
%attr( 755, root, root) /usr/bin/isamlog
%attr( 755, root, root) /usr/bin/isamlog
%attr( 755, root, root) /usr/bin/pack_isam
%attr( 755, root, root) /usr/bin/my_print_defaults
%attr( 755, root, root) /usr/bin/myisamchk
%attr( 755, root, root) /usr/bin/myisamchk
%attr( 755, root, root) /usr/bin/myisamlog
%attr( 755, root, root) /usr/bin/myisamlog
%attr( 755, root, root) /usr/bin/myisampack
%attr( 755, root, root) /usr/bin/myisampack
%attr( 755, root, root) /usr/bin/mysql_fix_privilege_tables
%attr( 755, root, root) /usr/bin/mysql_convert_table_format
%attr( 755, root, root) /usr/bin/mysql_convert_table_format
%attr( 755, root, root) /usr/bin/mysql_explain_log
%attr( 755, root, root) /usr/bin/mysql_fix_privilege_tables
%attr( 755, root, root) /usr/bin/mysql_install_db
%attr( 755, root, root) /usr/bin/mysql_install_db
%attr( 755, root, root) /usr/bin/mysql_setpermission
%attr( 755, root, root) /usr/bin/mysql_setpermission
%attr( 755, root, root) /usr/bin/mysql_zap
%attr( 755, root, root) /usr/bin/mysql_zap
%attr( 755, root, root) /usr/bin/mysqlbug
%attr( 755, root, root) /usr/bin/mysqlbug
%attr( 755, root, root) /usr/bin/mysqltest
%attr( 755, root, root) /usr/bin/mysqld_multi
%attr( 755, root, root) /usr/bin/mysqld_safe
%attr( 755, root, root) /usr/bin/mysqlhotcopy
%attr( 755, root, root) /usr/bin/mysqlhotcopy
%attr( 755, root, root) /usr/bin/mysql_explain_log
%attr( 755, root, root) /usr/bin/mysqltest
%attr( 755, root, root) /usr/bin/pack_isam
%attr( 755, root, root) /usr/bin/perror
%attr( 755, root, root) /usr/bin/perror
%attr( 755, root, root) /usr/bin/replace
%attr( 755, root, root) /usr/bin/replace
%attr( 755, root, root) /usr/bin/resolveip
%attr( 755, root, root) /usr/bin/mysqld_safe
%attr( 755, root, root) /usr/bin/resolve_stack_dump
%attr( 755, root, root) /usr/bin/resolve_stack_dump
%attr( 755, root, root) /usr/bin/mysqld_multi
%attr( 755, root, root) /usr/bin/resolveip
%attr( 755, root, root) /usr/bin/my_print_defaults
%attr( 644, root, root) /usr/info/mysql.info*
%attr( 755, root, root) /usr/sbin/mysqld
%attr( 755, root, root) /usr/sbin/mysqld
%attr( 644, root, root) /usr/lib/mysql/mysqld.sym
%attr( 644, root, root) /usr/lib/mysql/mysqld.sym
@ -413,28 +396,20 @@ fi
%files client
%files client
%attr( 755, root, root) /usr/bin/msql2mysql
%attr( 755, root, root) /usr/bin/msql2mysql
%attr( 755, root, root) /usr/bin/mysql
%attr( 755, root, root) /usr/bin/mysql
%attr( 755, root, root) /usr/bin/mysql_find_rows
%attr( 755, root, root) /usr/bin/mysqlaccess
%attr( 755, root, root) /usr/bin/mysqlaccess
%attr( 755, root, root) /usr/bin/mysqladmin
%attr( 755, root, root) /usr/bin/mysqladmin
%attr( 755, root, root) /usr/bin/mysqlbinlog
%attr( 755, root, root) /usr/bin/mysqlcheck
%attr( 755, root, root) /usr/bin/mysqlcheck
%attr( 755, root, root) /usr/bin/mysql_find_rows
%attr( 755, root, root) /usr/bin/mysqldump
%attr( 755, root, root) /usr/bin/mysqldump
%attr( 755, root, root) /usr/bin/mysqlimport
%attr( 755, root, root) /usr/bin/mysqlimport
%attr( 755, root, root) /usr/bin/mysqlshow
%attr( 755, root, root) /usr/bin/mysqlshow
%attr( 755, root, root) /usr/bin/mysqlbinlog
%attr( 644, root, man) %doc /usr/man /man1/mysql.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysql.1*
%attr( 644, root, man) %doc /usr/man/man1/isamchk .1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqlaccess .1*
%attr( 644, root, man) %doc /usr/man/man1/isamlog .1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqladmin .1*
%attr( 644, root, man) %doc /usr/man /man1/mysql_za p.1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqldum p.1*
%attr( 644, root, man) %doc /usr/man /man1/mysqlaccess .1*
%doc %attr( 644, root, man) %{ _mandir} /man1/mysqlshow .1*
%attr( 644, root, man) %doc /usr/man/man1/mysqladmin.1*
%attr( 644, root, man) %doc /usr/man/man1/mysqld.1*
%attr( 644, root, man) %doc /usr/man/man1/mysqld_multi.1*
%attr( 644, root, man) %doc /usr/man/man1/mysqldump.1*
%attr( 644, root, man) %doc /usr/man/man1/mysqlshow.1*
%attr( 644, root, man) %doc /usr/man/man1/perror.1*
%attr( 644, root, man) %doc /usr/man/man1/replace.1*
%attr( 644, root, man) %doc /usr/man/man1/mysqld_safe.1*
%post shared
%post shared
/sbin/ldconfig
/sbin/ldconfig
@ -443,14 +418,30 @@ fi
/sbin/ldconfig
/sbin/ldconfig
%files devel
%files devel
%defattr( 644 root, root)
%attr( 755, root, root) /usr/bin/comp_err
%attr( 755, root, root) /usr/bin/comp_err
%attr( 755, root, root) /usr/include/mysql/
%attr( 755, root, root) /usr/lib/mysql/*.a
%attr( 755, root, root) /usr/bin/mysql_config
%attr( 755, root, root) /usr/bin/mysql_config
%dir %attr( 755, root, root) /usr/include/mysql
%dir %attr( 755, root, root) /usr/lib/mysql
/usr/include/mysql/*
/usr/lib/mysql/libdbug.a
/usr/lib/mysql/libheap.a
/usr/lib/mysql/libmerge.a
/usr/lib/mysql/libmyisam.a
/usr/lib/mysql/libmyisammrg.a
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la
/usr/lib/mysql/libmystrings.a
/usr/lib/mysql/libmysys.a
/usr/lib/mysql/libnisam.a
/usr/lib/mysql/libvio.a
%files shared
%files shared
%defattr( 755 root, root)
# Shared libraries (omit for architectures that don't support them)
# Shared libraries (omit for architectures that don't support them)
%attr( 755, root, root) /usr/lib/*.so*
/usr/lib/*.so*
%files bench
%files bench
%attr( -, root, root) /usr/share/sql-bench
%attr( -, root, root) /usr/share/sql-bench
@ -464,10 +455,22 @@ fi
%attr( 644, root, root) /usr/lib/mysql/mysqld-max.sym
%attr( 644, root, root) /usr/lib/mysql/mysqld-max.sym
%files embedded
%files embedded
%attr( 755 , root, root) /usr/lib/mysql/libmysqld.a
%attr( 644 , root, root) /usr/lib/mysql/libmysqld.a
%changelog
%changelog
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
- Use more RPM macros ( e.g. infodir, mandir) to make the spec
file more portable
- reorganized the installation of documentation files: let RPM
take care of this
- reorganized the file list: actually install man pages along
with the binaries of the respective subpackage
- don' t include libmysqld.a in the devel subpackage as well, if we
have a special "embedded" subpackage
- reworked the package descriptions
* Mon Oct 8 2001 Monty
* Mon Oct 8 2001 Monty
- Added embedded server as a separate RPM
- Added embedded server as a separate RPM