Commit f51f9ce8 authored by unknown's avatar unknown

Merge mysql.com:/space/my/mysql-4.1

into mysql.com:/space/my/mysql-4.1-build

parents 936b9319 af72f54b
...@@ -33,8 +33,6 @@ bin_SCRIPTS = @server_scripts@ \ ...@@ -33,8 +33,6 @@ bin_SCRIPTS = @server_scripts@ \
mysql_explain_log \ mysql_explain_log \
mysql_tableinfo \ mysql_tableinfo \
mysqld_multi \ mysqld_multi \
make_win_src_distribution \
make_win_binary_distribution \
mysql_create_system_tables mysql_create_system_tables
EXTRA_SCRIPTS = make_binary_distribution.sh \ EXTRA_SCRIPTS = make_binary_distribution.sh \
...@@ -86,6 +84,7 @@ CLEANFILES = @server_scripts@ \ ...@@ -86,6 +84,7 @@ CLEANFILES = @server_scripts@ \
mysqldumpslow \ mysqldumpslow \
mysqld_multi \ mysqld_multi \
make_win_src_distribution \ make_win_src_distribution \
make_win_binary_distribution \
mysql_create_system_tables mysql_create_system_tables
SUPERCLEANFILES = mysqlbug SUPERCLEANFILES = mysqlbug
......
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
%else %else
%define release 0.glibc23 %define release 0.glibc23
%endif %endif
%define license GPL
%define mysqld_user mysql %define mysqld_user mysql
%define server_suffix -standard %define server_suffix -standard
%define mysqldatadir /var/lib/mysql
# We don't package all files installed into the build root by intention - # We don't package all files installed into the build root by intention -
# See BUG#998 for details. # See BUG#998 for details.
...@@ -16,11 +18,9 @@ ...@@ -16,11 +18,9 @@
Name: MySQL Name: MySQL
Summary: MySQL: a very fast and reliable SQL database server 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ável.
Group(pt_BR): Aplicações/Banco_de_Dados
Version: @MYSQL_NO_DASH_VERSION@ Version: @MYSQL_NO_DASH_VERSION@
Release: %{release} Release: %{release}
License: GPL License: %{license}
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz
URL: http://www.mysql.com/ URL: http://www.mysql.com/
Packager: Lenz Grimmer <build@mysql.com> Packager: Lenz Grimmer <build@mysql.com>
...@@ -54,11 +54,8 @@ news and information about the MySQL software. Also please see the ...@@ -54,11 +54,8 @@ news and information about the MySQL software. Also please see the
documentation and the manual for more information. documentation and the manual for more information.
%package server %package server
Release: %{release}
Summary: MySQL: a very fast and reliable SQL database server 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ável.
Group(pt_BR): Aplicações/Banco_de_Dados
Requires: fileutils sh-utils Requires: fileutils sh-utils
Provides: msqlormysql mysql-server mysql MySQL Provides: msqlormysql mysql-server mysql MySQL
Obsoletes: MySQL mysql mysql-server Obsoletes: MySQL mysql mysql-server
...@@ -88,11 +85,8 @@ If you want to access and work with the database, you have to install ...@@ -88,11 +85,8 @@ If you want to access and work with the database, you have to install
package "MySQL-client" as well! package "MySQL-client" as well!
%package client %package client
Release: %{release}
Summary: MySQL - Client Summary: MySQL - Client
Group: Applications/Databases Group: Applications/Databases
Summary(pt_BR): MySQL - Cliente
Group(pt_BR): Aplicações/Banco_de_Dados
Obsoletes: mysql-client Obsoletes: mysql-client
Provides: mysql-client Provides: mysql-client
...@@ -101,11 +95,7 @@ This package contains the standard MySQL clients and administration tools. ...@@ -101,11 +95,7 @@ This package contains the standard MySQL clients and administration tools.
%{see_base} %{see_base}
%description client -l pt_BR
Este pacote contém os clientes padrão para o MySQL.
%package ndb-storage %package ndb-storage
Release: %{release}
Summary: MySQL - ndbcluster storage engine Summary: MySQL - ndbcluster storage engine
Group: Applications/Databases Group: Applications/Databases
...@@ -119,7 +109,6 @@ with the MySQL Max server. ...@@ -119,7 +109,6 @@ with the MySQL Max server.
%{see_base} %{see_base}
%package ndb-management %package ndb-management
Release: %{release}
Summary: MySQL - ndbcluster storage engine management Summary: MySQL - ndbcluster storage engine management
Group: Applications/Databases Group: Applications/Databases
...@@ -131,7 +120,6 @@ one computer in the cluster. ...@@ -131,7 +120,6 @@ one computer in the cluster.
%{see_base} %{see_base}
%package ndb-tools %package ndb-tools
Release: %{release}
Summary: MySQL - ndbcluster storage engine basic tools Summary: MySQL - ndbcluster storage engine basic tools
Group: Applications/Databases Group: Applications/Databases
...@@ -141,7 +129,6 @@ This package contains ndbcluster storage engine basic tools. ...@@ -141,7 +129,6 @@ This package contains ndbcluster storage engine basic tools.
%{see_base} %{see_base}
%package ndb-extra %package ndb-extra
Release: %{release}
Summary: MySQL - ndbcluster storage engine extra tools Summary: MySQL - ndbcluster storage engine extra tools
Group: Applications/Databases Group: Applications/Databases
...@@ -152,12 +139,9 @@ They should be used with caution. ...@@ -152,12 +139,9 @@ They should be used with caution.
%{see_base} %{see_base}
%package bench %package bench
Release: %{release}
Requires: %{name}-client perl-DBI perl Requires: %{name}-client perl-DBI perl
Summary: MySQL - Benchmarks and test system Summary: MySQL - Benchmarks and test system
Group: Applications/Databases Group: Applications/Databases
Summary(pt_BR): MySQL - Medições de desempenho
Group(pt_BR): Aplicações/Banco_de_Dados
Provides: mysql-bench Provides: mysql-bench
Obsoletes: mysql-bench Obsoletes: mysql-bench
...@@ -166,15 +150,9 @@ This package contains MySQL benchmark scripts and data. ...@@ -166,15 +150,9 @@ This package contains MySQL benchmark scripts and data.
%{see_base} %{see_base}
%description bench -l pt_BR
Este pacote contém medições de desempenho de scripts e dados do MySQL.
%package devel %package devel
Release: %{release}
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ções de desempenho
Group(pt_BR): Aplicações/Banco_de_Dados
Provides: mysql-devel Provides: mysql-devel
Obsoletes: mysql-devel Obsoletes: mysql-devel
...@@ -184,12 +162,7 @@ necessary to develop MySQL client applications. ...@@ -184,12 +162,7 @@ necessary to develop MySQL client applications.
%{see_base} %{see_base}
%description devel -l pt_BR
Este pacote contém os arquivos de cabeçalho (header files) e bibliotecas
necessárias para desenvolver aplicações clientes do MySQL.
%package shared %package shared
Release: %{release}
Summary: MySQL - Shared libraries Summary: MySQL - Shared libraries
Group: Applications/Databases Group: Applications/Databases
...@@ -198,7 +171,6 @@ This package contains the shared libraries (*.so*) which certain ...@@ -198,7 +171,6 @@ This package contains the shared libraries (*.so*) which certain
languages and applications need to dynamically load and use MySQL. languages and applications need to dynamically load and use MySQL.
%package Max %package Max
Release: %{release}
Summary: MySQL - server with extended functionality Summary: MySQL - server with extended functionality
Group: Applications/Databases Group: Applications/Databases
Provides: mysql-Max Provides: mysql-Max
...@@ -222,12 +194,9 @@ the standard MySQL package. ...@@ -222,12 +194,9 @@ the standard MySQL package.
Please note that this is a dynamically linked binary! Please note that this is a dynamically linked binary!
%package embedded %package embedded
Release: %{release}
Requires: %{name}-devel Requires: %{name}-devel
Summary: MySQL - embedded library Summary: MySQL - embedded library
Group: Applications/Databases Group: Applications/Databases
Summary(pt_BR): MySQL - Medições de desempenho
Group(pt_BR): Aplicações/Banco_de_Dados
Obsoletes: mysql-embedded Obsoletes: mysql-embedded
%description embedded %description embedded
...@@ -271,7 +240,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \ ...@@ -271,7 +240,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \ --sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \ --datadir=%{_datadir} \
--localstatedir=/var/lib/mysql \ --localstatedir=%{mysqldatadir} \
--infodir=%{_infodir} \ --infodir=%{_infodir} \
--includedir=%{_includedir} \ --includedir=%{_includedir} \
--mandir=%{_mandir} \ --mandir=%{_mandir} \
...@@ -311,7 +280,7 @@ mkdir -p $RBR%{_libdir}/mysql ...@@ -311,7 +280,7 @@ mkdir -p $RBR%{_libdir}/mysql
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin} PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
export PATH export PATH
# Build the 4.0 Max binary (includes BDB and UDFs and therefore # Build the Max binary (includes BDB and UDFs and therefore
# cannot be linked statically against the patched glibc) # cannot be linked statically against the patched glibc)
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
...@@ -336,8 +305,7 @@ BuildMySQL "--enable-shared \ ...@@ -336,8 +305,7 @@ BuildMySQL "--enable-shared \
--with-comment=\"MySQL Community Edition - Max (GPL)\" \ --with-comment=\"MySQL Community Edition - Max (GPL)\" \
--with-server-suffix='-Max'" --with-server-suffix='-Max'"
# Save everything for debug make test
# tar cf $RBR/all.tar .
# Save mysqld-max # Save mysqld-max
mv sql/mysqld sql/mysqld-max mv sql/mysqld sql/mysqld-max
...@@ -387,13 +355,15 @@ BuildMySQL "--disable-shared \ ...@@ -387,13 +355,15 @@ BuildMySQL "--disable-shared \
--without-openssl" --without-openssl"
nm --numeric-sort sql/mysqld > sql/mysqld.sym nm --numeric-sort sql/mysqld > sql/mysqld.sym
make test
%install %install
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%{_sysconfdir}/{logrotate.d,init.d} install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
install -d $RBR/var/lib/mysql/mysql install -d $RBR%{mysqldatadir}/mysql
install -d $RBR%{_datadir}/{sql-bench,mysql-test} install -d $RBR%{_datadir}/{sql-bench,mysql-test}
install -d $RBR%{_includedir} install -d $RBR%{_includedir}
install -d $RBR%{_libdir} install -d $RBR%{_libdir}
...@@ -445,7 +415,7 @@ then ...@@ -445,7 +415,7 @@ then
fi fi
%post server %post server
mysql_datadir=/var/lib/mysql mysql_datadir=%{mysqldatadir}
# Create data directory if needed # Create data directory if needed
if test ! -d $mysql_datadir; then mkdir -m755 $mysql_datadir; fi if test ! -d $mysql_datadir; then mkdir -m755 $mysql_datadir; fi
...@@ -465,17 +435,17 @@ fi ...@@ -465,17 +435,17 @@ fi
# Create a MySQL user. Do not report any problems if it already # Create a MySQL user. Do not report any problems if it already
# exists. This is redhat specific and should be handled more portable # exists. This is redhat specific and should be handled more portable
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" mysql 2> /dev/null || true useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" %{mysqld_user} 2> /dev/null || true
# Change permissions so that the user that will run the MySQL daemon # Change permissions so that the user that will run the MySQL daemon
# owns all database files. # owns all database files.
chown -R mysql $mysql_datadir chown -R %{mysqld_user} $mysql_datadir
# Initiate databases # Initiate databases
mysql_install_db --rpm --user=mysql %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
# Change permissions again to fix any new files. # Change permissions again to fix any new files.
chown -R mysql $mysql_datadir chown -R %{mysqld_user} $mysql_datadir
# Fix permissions for the permission database so that only the user # Fix permissions for the permission database so that only the user
# can read them. # can read them.
...@@ -675,9 +645,10 @@ fi ...@@ -675,9 +645,10 @@ fi
%defattr(-, root, root, 0755) %defattr(-, root, root, 0755)
%attr(-, root, root) %{_datadir}/sql-bench %attr(-, root, root) %{_datadir}/sql-bench
%attr(-, root, root) %{_datadir}/mysql-test %attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test
%attr(755, root, root) %{_bindir}/mysqlmanager %attr(755, root, root) %{_bindir}/mysqlmanager
%attr(755, root, root) %{_bindir}/mysqlmanager-pwgen
%attr(755, root, root) %{_bindir}/mysqlmanagerc %attr(755, root, root) %{_bindir}/mysqlmanagerc
%attr(755, root, root) %{_bindir}/mysqlmanager-pwgen
%files Max %files Max
%defattr(-, root, root, 0755) %defattr(-, root, root, 0755)
...@@ -692,6 +663,17 @@ fi ...@@ -692,6 +663,17 @@ fi
# itself - note that they must be ordered by date (important when # itself - note that they must be ordered by date (important when
# merging BK trees) # merging BK trees)
%changelog %changelog
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
- added mysql_client_test to the "bench" subpackage (BUG 10676)
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
- use "mysqldatadir" variable instead of hard-coding the path multiple times
- use the "mysqld_user" variable on all occasions a user name is referenced
- removed (incomplete) Brazilian translations
- removed redundant release tags from the subpackage descriptions
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com> * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
- Added a "make clean" between separate calls to "BuildMySQL". - Added a "make clean" between separate calls to "BuildMySQL".
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment