auto-import mysql-3.23.49-0.7 from mysql-3.23.49-0.7.src.rpm

This commit is contained in:
cvsdist 2004-09-09 08:56:18 +00:00 committed by Michal Schorm
parent 4db82b31aa
commit 2c21a3d55c
5 changed files with 69 additions and 32 deletions

View File

@ -1 +1 @@
mysql-3.23.41.tar.bz2 mysql-3.23.49.tar.bz2

3
filter-requires-mysql.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/rpm/find-requires $* | grep -v "perl(the"

View File

@ -15,26 +15,25 @@
# Source networking configuration. # Source networking configuration.
. /etc/sysconfig/network . /etc/sysconfig/network
# Source subsystem configuration.
[ -f /etc/sysconfig/subsys/mysqld ] && . /etc/sysconfig/subsys/mysqld
prog="MySQL" prog="MySQL"
datadir="/var/lib/mysql"
start(){ start(){
touch /var/log/mysqld.log touch /var/log/mysqld.log
chown mysql.mysql /var/log/mysqld.log chown mysql.mysql /var/log/mysqld.log
chmod 0640 /var/log/mysqld.log chmod 0640 /var/log/mysqld.log
if [ ! -d /var/lib/mysql/mysql ] ; then if [ ! -d $datadir/mysql ] ; then
action $"Initializing MySQL database: " /usr/bin/mysql_install_db action $"Initializing MySQL database: " /usr/bin/mysql_install_db
ret=$? ret=$?
chown -R mysql.mysql /var/lib/mysql chown -R mysql.mysql $datadir
if [ $ret -ne 0 ] ; then if [ $ret -ne 0 ] ; then
return $ret return $ret
fi fi
fi fi
chown -R mysql.mysql /var/lib/mysql chown -R mysql.mysql $datadir
chmod 0755 /var/lib/mysql chmod 0755 $datadir
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 & /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 &
ret=$? ret=$?
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
@ -55,7 +54,7 @@ stop(){
action $"Stopping $prog: " /bin/false action $"Stopping $prog: " /bin/false
fi fi
[ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld
[ $ret -eq 0 ] && rm -f /var/lib/mysql/mysql.sock [ $ret -eq 0 ] && rm -f $datadir/mysql.sock
return $ret return $ret
} }
@ -68,10 +67,6 @@ condrestart(){
[ -e /var/lock/subsys/mysqld ] && restart || : [ -e /var/lock/subsys/mysqld ] && restart || :
} }
reload(){
[ -e /var/lock/subsys/mysqld ] && mysqladmin reload
}
# See how we were called. # See how we were called.
case "$1" in case "$1" in
start) start)
@ -83,9 +78,6 @@ case "$1" in
status) status)
status mysqld status mysqld
;; ;;
reload)
reload
;;
restart) restart)
restart restart
;; ;;
@ -93,7 +85,7 @@ case "$1" in
condrestart condrestart
;; ;;
*) *)
echo $"Usage: $0 {start|stop|status|reload|condrestart|restart}" echo $"Usage: $0 {start|stop|status|condrestart|restart}"
exit 1 exit 1
esac esac

View File

@ -1,22 +1,28 @@
Name: mysql Name: mysql
Version: 3.23.41 Version: 3.23.49
Release: 3 Release: 0.7
Source0: http://www.mysql.com/Downloads/MySQL-3.23/mysql-%{version}.tar.bz2 Source0: http://www.mysql.com/Downloads/MySQL-3.23/mysql-%{version}.tar.bz2
Source1: mysql.init Source1: mysql.init
Source2: mysql.logrotate Source2: mysql.logrotate
Source3: my.cnf Source3: my.cnf
# Working around perl dependency checking bug in rpm FTTB. Remove later.
Source999: filter-requires-mysql.sh
URL: http://www.mysql.com URL: http://www.mysql.com
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
Summary: MySQL client programs and shared library. Summary: MySQL client programs and shared library.
License: GPL/LGPL License: GPL/LGPL
Group: Applications/Databases Group: Applications/Databases
Prereq: /sbin/ldconfig, /sbin/install-info, grep, fileutils, chkconfig Prereq: /sbin/ldconfig, /sbin/install-info, grep, fileutils, chkconfig
BuildRequires: gperf, perl, db3-devel, readline-devel BuildRequires: gperf, perl, readline-devel
BuildRequires: gcc-c++, ncurses-devel, zlib-devel BuildRequires: gcc-c++, ncurses-devel, zlib-devel
Requires: bash >= 2 Requires: bash
Conflicts: MySQL Conflicts: MySQL
Obsoletes: mysql-client mysql-bench mysql-perl Obsoletes: mysql-client mysql-bench mysql-perl
# Working around perl dependency checking bug in rpm FTTB. Remove later.
%define __find_requires %{SOURCE999}
%description %description
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
client/server implementation consisting of a server daemon (mysqld) client/server implementation consisting of a server daemon (mysqld)
@ -58,7 +64,8 @@ developing MySQL applications.
%build %build
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-rtti -fno-exceptions"
CXX=gcc
%configure --without-debug \ %configure --without-debug \
--without-readline \ --without-readline \
@ -69,7 +76,7 @@ CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
--with-unix-socket-path=/var/lib/mysql/mysql.sock \ --with-unix-socket-path=/var/lib/mysql/mysql.sock \
--with-mysqld-user="mysql" \ --with-mysqld-user="mysql" \
--with-extra-charsets=all \ --with-extra-charsets=all \
--disable-assember \ --with-innodb \
%ifnarch alpha %ifnarch alpha
--with-berkeley-db --enable-large-files=yes --enable-largefile=yes \ --with-berkeley-db --enable-large-files=yes --enable-largefile=yes \
%endif %endif
@ -78,7 +85,7 @@ CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
make make
make check make check
%ifnarch s390 s390x ia64 %ifnarch s390 s390x
make test make test
%endif %endif
@ -199,13 +206,48 @@ fi
/usr/lib/mysql/libmysqlclient*.so /usr/lib/mysql/libmysqlclient*.so
%changelog %changelog
* Thu May 02 2002 Philip Copeland <bryce@redhat.com> 3.23.41-3 * Sun Feb 17 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.49-1
- Although this *IS* 3.23.41-2 we need to - 3.23.49
slot it in between 7.2-ent/7.3 for RHN hence the
version number bump for alpha.
* Wed Sep 12 2001 Tim Powers <timp@redhat.com> * Thu Feb 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.48-2
- rebuild with new gcc and binutils - work around perl dependency bug.
* Mon Feb 11 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.48-1
- 3.23.48
* Thu Jan 17 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.47-4
- Use kill, not mysqladmin, to flush logs and shut down. Thus,
an admin password can be set with no problems.
- Remove reload from init script
* Wed Jan 16 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.47-3
- remove db3-devel from buildrequires,
MySQL has had its own bundled copy since the mid thirties
* Sun Jan 6 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.23.47-1
- 3.23.47
- Don't build for alpha, toolchain immature.
* Mon Dec 3 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.46-1
- 3.23.46
- use -fno-rtti and -fno-exceptions, and set CXX to increase stability.
Recommended by mysql developers.
* Sun Nov 25 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.45-1
- 3.23.45
* Wed Nov 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.44-2
- centralize definition of datadir in the initscript (#55873)
* Fri Nov 2 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.44-1
- 3.23.44
* Thu Oct 4 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.43-1
- 3.23.43
* Mon Sep 10 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.42-1
- 3.23.42
- reenable innodb
* Tue Aug 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.41-1 * Tue Aug 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.23.41-1
- 3.23.41 bugfix release - 3.23.41 bugfix release
@ -228,7 +270,7 @@ fi
- 3.23.29 - 3.23.29
- enable innodb - enable innodb
- enable assembly again - enable assembly again
- disable tests for now.. - disable tests for now...
* Tue May 15 2001 Trond Eivind Glomsrød <teg@redhat.com> * Tue May 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.38 - 3.23.38

View File

@ -1 +1 @@
0775889ab8e757ae0dac5c96437509ca mysql-3.23.41.tar.bz2 f2cc97874a593d1bf84db21b56ee3a68 mysql-3.23.49.tar.bz2