123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074 |
- %define mysqld_user mysql
- %define mysqld_group mysql
- %define server_suffix -community
- %define mysqldatadir /var/lib/mysql
- %{?_with_static:%define STATIC_BUILD 1}
- %{!?_with_static:%define STATIC_BUILD 0}
- %define __find_requires %{SOURCE999}
- %define _unpackaged_files_terminate_build 0
- %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
- %define mysql_version 5.1.44
- %define client_version 16
- %if %{?_dist_release}!="vl5"
- %define libpkgname libmysqlclient%{client_version}
- %else
- %define libpkgname MySQL-shared
- %endif
- Packager: tomop
- Name: MySQL
- Summary: MySQL: a very fast and reliable SQL database server
- Version: %{mysql_version}
- Release: 2%{_dist_release}
- Group: Applications/Databases
- License: GPLv2 with exceptions
- URL: http://www.mysql.com/
- Source: mysql-%{version}.tar.gz
- Source999: filter-requires-%{name}.sh
- Patch0: mysql-5.1.44-jp-all.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: perl, readline-devel
- BuildRequires: gcc-c++, ncurses-devel, zlib-devel
- BuildRequires: groff, libtool, automake
- Requires: fileutils sh-utils
- Provides: msqlormysql MySQL-server mysql
- Obsoletes: mysql MySQL5
- %description
- The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
- and robust SQL (Structured Query Language) database server. MySQL Server
- is intended for mission-critical, heavy-load production systems as well
- as for embedding into mass-deployed software. MySQL is a trademark of
- Sun Microsystems, Inc.
- Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved.
- Use is subject to license terms.
- This software comes with ABSOLUTELY NO WARRANTY. This is free software,
- and you are welcome to modify and redistribute it under the GPL license.
- The MySQL web site (http://www.mysql.com/) provides the latest
- news and information about the MySQL software. Also please see the
- documentation and the manual for more information.
- %package server
- Release: %{release}
- Summary: MySQL: a very fast and reliable SQL database server
- Group: Applications/Databases
- Requires: fileutils sh-utils net-tools
- Provides: msqlormysql mysql-server mysql MySQL MySQL5-server
- Obsoletes: MySQL mysql mysql-server MySQL5-server MySQL-Max
- %description server
- The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
- and robust SQL (Structured Query Language) database server. MySQL Server
- is intended for mission-critical, heavy-load production systems as well
- as for embedding into mass-deployed software. MySQL is a trademark of
- Sun Microsystems, Inc.
- Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved.
- Use is subject to license terms.
- This software comes with ABSOLUTELY NO WARRANTY. This is free software,
- and you are welcome to modify and redistribute it under the GPL license.
- The MySQL web site (http://www.mysql.com/) provides the latest
- news and information about the MySQL software. Also please see the
- documentation and the manual for more information.
- This package includes the MySQL server binary (incl. InnoDB) as well
- as related utilities to run and administrate a MySQL server.
- If you want to access and work with the database, you have to install
- package "MySQL-client" as well!
- %package client
- Summary: MySQL - Client
- Group: Applications/Databases
- Obsoletes: mysql-client MySQL5-client
- Provides: mysql-client MySQL5-client
- %description client
- This package contains the standard MySQL clients and administration tools.
- %{see_base}
- %package ndb-storage
- Summary: MySQL - ndbcluster storage engine
- Group: Applications/Databases
- %description ndb-storage
- This package contains the ndbcluster storage engine.
- It is necessary to have this package installed on all
- computers that should store ndbcluster table data.
- Note that this storage engine can only be used in conjunction
- with the MySQL Max server.
- %{see_base}
- %package ndb-management
- Summary: MySQL - ndbcluster storage engine management
- Group: Applications/Databases
- %description ndb-management
- This package contains ndbcluster storage engine management.
- It is necessary to have this package installed on at least
- one computer in the cluster.
- %{see_base}
- %package ndb-tools
- Summary: MySQL - ndbcluster storage engine basic tools
- Group: Applications/Databases
- %description ndb-tools
- This package contains ndbcluster storage engine basic tools.
- %{see_base}
- %package ndb-extra
- Summary: MySQL - ndbcluster storage engine extra tools
- Group: Applications/Databases
- %description ndb-extra
- This package contains some extra ndbcluster storage engine tools for the advanced user.
- They should be used with caution.
- %{see_base}
- %package test
- Requires: %{name}-client = %{version}-%{release} perl-DBI perl
- Summary: MySQL - Test suite
- Group: Applications/Databases
- Obsoletes: mysql-bench MySQL5-bench MySQL-bench
- %description test
- This package contains the MySQL regression test suite.
- %{see_base}
- %package devel
- Summary: MySQL - Development header files and libraries
- Group: Development/Libraries
- Requires: %{libpkgname} = %{version}-%{release}
- Provides: mysql-devel MySQL5-devel
- Obsoletes: mysql-devel MySQL5-devel
- %description devel
- This package contains the development header files and libraries
- necessary to develop MySQL client applications.
- %{see_base}
- %package -n %{libpkgname}
- Summary: The shared libraries required for MySQL clients
- Group: System Environment/Libraries
- %if %{?_dist_release}!="vl5"
- Obsoletes: MySQL-shared < %{version}
- %endif
- %description -n %{libpkgname}
- This package contains the shared libraries (*.so*) which certain
- languages and applications need to dynamically load and use MySQL.
- %package embedded
- Summary: MySQL as an embeddable library
- Group: System Environment/Libraries
- Obsoletes: mysql-embedded MySQL5-embedded
- Provides: mysql-embedded MySQL5-embedded
- %description embedded
- MySQL is a multi-user, multi-threaded SQL database server. This
- package contains a version of the MySQL server that can be embedded
- into a client application instead of running as a separate process.
- %{see_base}
- %package embedded-devel
- Summary: Development files for MySQL as an embeddable library
- Group: Development/Libraries
- Requires: %{name}-embedded = %{version}-%{release}
- Requires: %{name}-devel = %{version}-%{release}
- %description embedded-devel
- MySQL is a multi-user, multi-threaded SQL database server. This
- package contains files needed for developing and testing with
- the embedded version of the MySQL server.
- %{see_base}
- %prep
- %setup -q -T -a 0 -c -n mysql-%{mysql_version}
- mv mysql-%{mysql_version} mysql-debug-%{mysql_version}
- pushd mysql-debug-%{mysql_version}
- %patch0 -p1 -b .jp
- aclocal
- autoheader
- libtoolize --automake --force
- automake --add-missing --copy
- autoconf
- popd
- %setup -q -D -T -a 0 -n mysql-%{mysql_version}
- mv mysql-%{mysql_version} mysql-release-%{mysql_version}
- pushd mysql-release-%{mysql_version}
- %patch0 -p1 -b .jp
- aclocal
- autoheader
- libtoolize --automake --force
- automake --add-missing --copy
- autoconf
- popd
- %build
- BuildMySQL() {
- sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
- CC=\"${CC:-$MYSQL_BUILD_CC}\" \
- CXX=\"${CXX:-$MYSQL_BUILD_CXX}\" \
- CFLAGS=\"$CFLAGS\" \
- CXXFLAGS=\"$CXXFLAGS\" \
- LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
- ./configure \
- $* \
- --with-mysqld-ldflags='-static' \
- --with-client-ldflags='-static' \
- --with-zlib-dir=/usr \
- --enable-silent-rules \
- --enable-assembler \
- --enable-local-infile \
- --with-fast-mutexes \
- --with-mysqld-user=%{mysqld_user} \
- --with-unix-socket-path=/var/lib/mysql/mysql.sock \
- --with-pic \
- --prefix=/ \
- --with-extra-charsets=all \
- --exec-prefix=%{_exec_prefix} \
- --libexecdir=%{_sbindir} \
- --libdir=%{_libdir} \
- --sysconfdir=%{_sysconfdir} \
- --datadir=%{_datadir} \
- --localstatedir=%{mysqldatadir} \
- --infodir=%{_infodir} \
- --includedir=%{_includedir} \
- --mandir=%{_mandir} \
- --enable-thread-safe-client \
- --with-readline \
- --with-innodb \
- --with-ndbcluster \
- --with-archive-storage-engine \
- --with-csv-storage-engine \
- --with-blackhole-storage-engine \
- --with-federated-storage-engine \
- --with-partition \
- --with-big-tables \
- --enable-shared \
- --with-comment=\"VineLinux MySQL RPM\" \
- --with-charset=utf8 \
- --with-client-charset=utf8 \
- "
- make %{?_smp_mflags}
- }
- RBR=$RPM_BUILD_ROOT
- [ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
- mkdir -p $RBR%{_libdir}/mysql
- PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
- export PATH
- # Build the Debug binary.
- # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
- # including exceptions into the code
- if [ -z "$CXX" -a -z "$CC" ]
- then
- export CC="gcc"
- export CXX="gcc"
- fi
- # Prepare compiler flags
- CFLAGS=${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS}
- CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti }
- ##############################################################################
- #
- # Build the debug version
- #
- ##############################################################################
- (
- # We are in a subshell, so we can modify variables just for one run.
- CFLAGS=`echo " $CFLAGS " | \
- sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
- -e 's/^ //' -e 's/ $//'`
- CXXFLAGS=`echo " $CXXFLAGS " | \
- sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
- -e 's/^ //' -e 's/ $//'`
- # Add -g and --with-debug.
- cd mysql-debug-%{mysql_version} &&
- CFLAGS="$CFLAGS" \
- CXXFLAGS="$CXXFLAGS" \
- BuildMySQL --with-debug
- )
- # We might want to save the config log file
- if test -n "$MYSQL_DEBUGCONFLOG_DEST"
- then
- cp -fp mysql-debug-%{mysql_version}/config.log "$MYSQL_DEBUGCONFLOG_DEST"
- fi
- #(cd mysql-debug-%{mysql_version} ; make test-bt-debug)
- ##############################################################################
- #
- # Build the release binary
- #
- ##############################################################################
- (cd mysql-release-%{mysql_version} &&
- CFLAGS="$CFLAGS" \
- CXXFLAGS="$CXXFLAGS" \
- BuildMySQL --with-embedded-server
- )
- pushd mysql-release-%{mysql_version}
- # regular build will make libmysqld.a but not libmysqld.so :-(
- mkdir libmysqld/work
- cd libmysqld/work
- ar -x ../libmysqld.a
- # remove object file to avoid multiple definition error (is it a bug?)
- rm -f libfederated_a-ha_federated.o
- gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \
- *.o \
- -lpthread -lcrypt -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc
- popd
- # We might want to save the config log file
- if test -n "$MYSQL_CONFLOG_DEST"
- then
- cp -fp mysql-release-%{mysql_version}/config.log "$MYSQL_CONFLOG_DEST"
- fi
- #(cd mysql-release-%{mysql_version} ; make test-bt)
- %install
- RBR=$RPM_BUILD_ROOT
- MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-release-%{mysql_version}
- rm -rf $RBR
- # Ensure that needed directories exists
- install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
- install -d $RBR%{mysqldatadir}/mysql
- install -d $RBR%{_datadir}/mysql-test
- install -d $RBR%{_includedir}
- install -d $RBR%{_libdir}
- install -d $RBR%{_mandir}
- install -d $RBR%{_sbindir}
- # Install all binaries
- (cd $MBD && make install DESTDIR=$RBR benchdir_root=%{_datadir})
- # Old packages put shared libs in %{_libdir}/ (not %{_libdir}/mysql), so do
- # the same here.
- #mv $RBR/%{_libdir}/mysql/*.so* $RBR/%{_libdir}/
- rm -rf $RBR/mysql-test
- ##############################################################################
- # Include libgcc.a in the devel subpackage (BUG 4921)
- if [ -z "$CXX" -a -z "$CC" ]
- then
- export CC="gcc"
- export CXX="gcc"
- fi
- if expr "$CC" : ".*gcc.*" > /dev/null ;
- then
- libgcc=`$CC $CFLAGS --print-libgcc-file`
- if [ -f $libgcc ]
- then
- %define have_libgcc 1
- install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
- fi
- fi
- ##############################################################################
- # install libmysqld.so
- install -m 0755 $MBD/libmysqld/work/libmysqld.so.0.0.1 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so.0.0.1
- ln -s libmysqld.so.0.0.1 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so.0
- ln -s libmysqld.so.0 $RPM_BUILD_ROOT%{_libdir}/mysql/libmysqld.so
- # install "mysqld-debug"
- $MBD/libtool --mode=execute install -m 755 \
- $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
- $RBR%{_sbindir}/mysqld-debug
- # install saved perror binary with NDB support (BUG#13740)
- install -m 755 $MBD/extra/perror $RBR%{_bindir}/perror
- # Install logrotate and autostart
- install -m 644 $MBD/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
- install -m 755 $MBD/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
- # in RPMs, it is unlikely that anybody should use "sql-bench"
- rm -fr $RBR%{_datadir}/sql-bench
- # Create a symlink "rcmysql", pointing to the init.script. SuSE users
- # will appreciate that, as all services usually offer this.
- ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sbindir}/rcmysql
- # Touch the place where the my.cnf config file and mysqlmanager.passwd
- # (MySQL Instance Manager password file) might be located
- # Just to make sure it's in the file list and marked as a config file
- touch $RBR%{_sysconfdir}/my.cnf
- touch $RBR%{_sysconfdir}/mysqlmanager.passwd
- mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
- echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/libmysqlclient%{client_version}-%{_arch}.conf
- %pre server
- if test -x %{_sysconfdir}/init.d/mysql
- then
- %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
- echo "Giving mysqld a couple of seconds to exit nicely"
- sleep 5
- elif test -x %{_sysconfdir}/rc.d/init.d/mysql
- then
- %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
- echo "Giving mysqld a couple of seconds to exit nicely"
- sleep 5
- fi
- %post server
- mysql_datadir=%{mysqldatadir}
- if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi
- if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
- if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
- if test -x /sbin/insserv
- then
- /sbin/insserv %{_sysconfdir}/init.d/mysql
- elif test -x /sbin/chkconfig
- then
- /sbin/chkconfig --add mysql
- fi
- groupadd -r %{mysqld_group} 2> /dev/null || true
- useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
- usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
- chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
- %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
- chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
- chmod -R og-rw $mysql_datadir/mysql
- %{_sysconfdir}/init.d/mysql start
- sleep 2
- %post ndb-storage
- mysql_clusterdir=/var/lib/mysql-cluster
- # Create cluster directory if needed
- if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi
- %preun server
- if test $1 = 0
- then
- # Stop MySQL before uninstalling it
- if test -x %{_sysconfdir}/init.d/mysql
- then
- %{_sysconfdir}/init.d/mysql stop > /dev/null
-
-
- if test -x /sbin/insserv
- then
- /sbin/insserv -r %{_sysconfdir}/init.d/mysql
-
- elif test -x /sbin/chkconfig
- then
- /sbin/chkconfig --del mysql
- fi
- fi
- fi
- %post -n %{libpkgname}
- /sbin/ldconfig
- %postun -n %{libpkgname}
- /sbin/ldconfig
- %clean
- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
- %files server
- %defattr(-,root,root,0755)
- %doc mysql-release-%{mysql_version}/COPYING mysql-release-%{mysql_version}/README
- %doc mysql-release-%{mysql_version}/support-files/my-*.cnf
- %doc mysql-release-%{mysql_version}/support-files/ndb-*.ini
- %doc %attr(644, root, root) %{_infodir}/mysql.info*
- %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
- %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
- %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
- %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
- %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
- %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
- %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
- %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/mysql_fix_privilege_tables.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
- %doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
- %doc %attr(644, root, man) %{_mandir}/man1/perror.1*
- %doc %attr(644, root, man) %{_mandir}/man1/replace.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
- %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
- %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
- %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
- %ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
- %attr(755, root, root) %{_bindir}/innochecksum
- %attr(755, root, root) %{_bindir}/my_print_defaults
- %attr(755, root, root) %{_bindir}/myisam_ftdump
- %attr(755, root, root) %{_bindir}/myisamchk
- %attr(755, root, root) %{_bindir}/myisamlog
- %attr(755, root, root) %{_bindir}/myisampack
- %attr(755, root, root) %{_bindir}/mysql_convert_table_format
- %attr(755, root, root) %{_bindir}/mysql_fix_extensions
- %attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables
- %attr(755, root, root) %{_bindir}/mysql_install_db
- %attr(755, root, root) %{_bindir}/mysql_secure_installation
- %attr(755, root, root) %{_bindir}/mysql_setpermission
- %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
- %attr(755, root, root) %{_bindir}/mysql_upgrade
- %attr(755, root, root) %{_bindir}/mysql_zap
- %attr(755, root, root) %{_bindir}/mysqlbug
- %attr(755, root, root) %{_bindir}/mysqld_multi
- %attr(755, root, root) %{_bindir}/mysqld_safe
- %attr(755, root, root) %{_bindir}/mysqldumpslow
- %attr(755, root, root) %{_bindir}/mysqlhotcopy
- %attr(755, root, root) %{_bindir}/mysqltest
- %attr(755, root, root) %{_bindir}/perror
- %attr(755, root, root) %{_bindir}/replace
- %attr(755, root, root) %{_bindir}/resolve_stack_dump
- %attr(755, root, root) %{_bindir}/resolveip
- %attr(755, root, root) %{_sbindir}/mysqld
- %attr(755, root, root) %{_sbindir}/mysqld-debug
- %attr(755, root, root) %{_sbindir}/mysqlmanager
- %attr(755, root, root) %{_sbindir}/rcmysql
- %dir %attr(755, root, root) %{_libdir}/mysql/plugin
- %attr(755, root, root) %{_libdir}/mysql/plugin/*.so*
- %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
- %attr(755, root, root) %{_sysconfdir}/init.d/mysql
- %attr(755, root, root) %{_datadir}/mysql/
- %files client
- %defattr(-, root, root, 0755)
- %attr(755, root, root) %{_bindir}/msql2mysql
- %attr(755, root, root) %{_bindir}/mysql
- %attr(755, root, root) %{_bindir}/mysql_find_rows
- %attr(755, root, root) %{_bindir}/mysql_waitpid
- %attr(755, root, root) %{_bindir}/mysqlaccess
- %attr(755, root, root) %{_bindir}/mysqladmin
- %attr(755, root, root) %{_bindir}/mysqlbinlog
- %attr(755, root, root) %{_bindir}/mysqlcheck
- %attr(755, root, root) %{_bindir}/mysqldump
- %attr(755, root, root) %{_bindir}/mysqlimport
- %attr(755, root, root) %{_bindir}/mysqlshow
- %attr(755, root, root) %{_bindir}/mysqlslap
- %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
- %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
- %files ndb-storage
- %defattr(-,root,root,0755)
- %attr(755, root, root) %{_sbindir}/ndbd
- %doc %attr(644, root, man) %{_mandir}/man8/ndbd.8*
- %files ndb-management
- %defattr(-,root,root,0755)
- %attr(755, root, root) %{_sbindir}/ndb_mgmd
- %doc %attr(644, root, man) %{_mandir}/man8/ndb_mgmd.8*
- %files ndb-tools
- %defattr(-,root,root,0755)
- %attr(755, root, root) %{_bindir}/ndb_config
- %attr(755, root, root) %{_bindir}/ndb_desc
- %attr(755, root, root) %{_bindir}/ndb_error_reporter
- %attr(755, root, root) %{_bindir}/ndb_mgm
- %attr(755, root, root) %{_bindir}/ndb_print_backup_file
- %attr(755, root, root) %{_bindir}/ndb_print_schema_file
- %attr(755, root, root) %{_bindir}/ndb_print_sys_file
- %attr(755, root, root) %{_bindir}/ndb_restore
- %attr(755, root, root) %{_bindir}/ndb_select_all
- %attr(755, root, root) %{_bindir}/ndb_select_count
- %attr(755, root, root) %{_bindir}/ndb_show_tables
- %attr(755, root, root) %{_bindir}/ndb_size.pl
- %attr(755, root, root) %{_bindir}/ndb_test_platform
- %attr(755, root, root) %{_bindir}/ndb_waiter
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_config.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_desc.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_error_reporter.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_mgm.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_restore.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_backup_file.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_schema_file.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_sys_file.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_all.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_count.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_show_tables.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_size.pl.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_waiter.1*
- %files ndb-extra
- %defattr(-,root,root,0755)
- %attr(755, root, root) %{_bindir}/ndb_delete_all
- %attr(755, root, root) %{_bindir}/ndb_drop_index
- %attr(755, root, root) %{_bindir}/ndb_drop_table
- %attr(755, root, root) %{_sbindir}/ndb_cpcd
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_delete_all.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_index.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_table.1*
- %doc %attr(644, root, man) %{_mandir}/man1/ndb_cpcd.1*
- %files devel
- %defattr(-, root, root, 0755)
- %doc mysql-release-%{mysql_version}/EXCEPTIONS-CLIENT
- %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
- %attr(755, root, root) %{_bindir}/mysql_config
- %dir %attr(755, root, root) %{_includedir}/mysql
- %dir %attr(755, root, root) %{_libdir}/mysql
- %{_includedir}/mysql/*
- %{_datadir}/aclocal/mysql.m4
- %{_libdir}/mysql/libmysql*.so
- %{_libdir}/mysql/libndb*.so
- %if %{have_libgcc}
- %{_libdir}/mysql/libmygcc.a
- %endif
- %files -n %{libpkgname}
- %defattr(-, root, root, 0755)
- %{_libdir}/mysql/libmysql*.so.*
- %{_libdir}/mysql/libndb*.so.*
- %exclude %{_libdir}/mysql/libmysqld.so.*
- /etc/ld.so.conf.d/*
- %files test
- %defattr(-, root, root, 0755)
- %{_datadir}/mysql-test
- %{_bindir}/mysql_client_test
- %{_mandir}/man1/mysql_client_test.1*
- %{_mandir}/man1/mysql-stress-test.pl.1*
- %{_mandir}/man1/mysql-test-run.pl.1*
- %files embedded
- %defattr(-, root, root, 0755)
- %doc mysql-release-%{mysql_version}/{COPYING,EXCEPTIONS-CLIENT}
- %{_libdir}/mysql/libmysqld.so.*
- %files embedded-devel
- %defattr(-,root,root)
- %{_libdir}/mysql/libmysqld.so
- %{_bindir}/mysql_client_test_embedded
- %{_bindir}/mysqltest_embedded
- %{_mandir}/man1/mysql_client_test_embedded.1*
- %{_mandir}/man1/mysqltest_embedded.1*
- %changelog
- * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.44-2
- - made embedded package again
- * Fri Mar 05 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.44-1
- - new upstream release.
- - updated jp-patch.
- * Thu Feb 04 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-2
- - VineSeed: rebuilt with new toolchain.
- * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-1
- - new upstream release.
- - fixed CVE-2009-4484.
- * Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.41-1
- - new upstream release.
- * Thu Nov 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-2
- - added net-tools to 'Requires'.
- - added groff to 'BuildRequires'.
- - renamed subpackage 'MySQL-shared' to 'libmysqlclient16' (VineSeed only).
- * Tue Nov 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-1
- - new upstream release.
- * Sat Sep 26 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.39-1
- - new upstream release.
- * Sun Jul 5 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.36-1
- - new upstream release.
- - dropped %%Patch100 (fixed in upstream).
- * Sat Jun 6 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.35-1
- - new upstream release.
- - add %%Patch100 (no longer needed for MySQL-5.1.36 or later).
- * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.34-1
- - new upstream release.
- - rename 'MySQL-bench' to 'MySQL-test'.
- - update Patch0.
- - change default charset to 'utf8'.
- * Sat Apr 12 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.51a-1
- - new upstream release.
- - update Patch0.
- - add "--with-client-charset=ujis".
- - sync %%files to official RPM.
- - remove MySQL-Max.
- * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl7
- - for VineSeed
- * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl6
- - move shared library from /usr/lib/ to /usr/lib/mysql/
- - add /etc/ld.so.conf.d/*.conf
- - fix broken libmysqlcient*.la files (or should we remove them permanently?)
- * Sat Jun 16 2007 IWAI, Masaharu <iwai@alib.jp> 5.0.27-0vl5
- - rebuild <BTS:VineLinux:534>
- * Mon Nov 13 2006 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.27-0vl4
- - added -fPIC
- * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl3
- - fixed dependency. <BTS:338>
- * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl2
- - add %%Patch1. <BTS:320>
- * Sat Oct 28 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl1
- - new upstream release.
- * Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.26-0vl1
- - new upstream release.
- * Sat Jun 3 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.22-0vl1
- - new upstream release.
- * Sat May 13 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl1
- - release++.
- * Wed May 10 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl0
- - new upstream release.
- - for VineSeed.
- * Wed Feb 8 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.16-0vl0
- - new upstream release.
- - replace Patch0 for MySQL-4.1.16.
- * Thu Oct 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.14-0vl0
- - new upstream release.
- - add Patch0.
- * Tue Sep 6 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.25-0vl0
- - new upstream version
- -- mysql-4.0.25
- * Fri Jan 21 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.23-0vl0
- - new upstream version
- -- mysql-4.0.23
- * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.22-0vl0
- - new upstream version
- -- mysql-4.0.22
-
- * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.21-0vl1
- - new upstream version
- -- mysql-4.0.21
-
- * Fri May 21 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.20-0vl1
- - new upstream version
- -- mysql-4.0.20
-
- * Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 4.0.18-0vl2
- - modify CFLAGS, CXXFLAGS and configure options for alpha
- * Tue Mar 23 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.18-0vl1
- - Upgraded to MySQL-4
- - added "with-charset=ujis" and "without-readline" to configure (vineseed-plus-02150)
- - merged to MySQL Official packages
- -- renamed package "MySQL" to "MySQL-server"
- -- when using gcc, _always_ use CXX=gcc
- -- replaced Copyright with License field (Copyright is obsolete)
- -- added myisam_ftdump to the Server package
- -- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
- -- fixed file permissions (BUG 1672)
- -- removed dependency on MySQL-client from the MySQL-devel subpackage
- -- as it is not really required. (BUG 1610)
- -- Fixed BUG 1162 (removed macro names from the changelog)
- -- Really fixed BUG 998 (disable the checking for installed but
- -- unpackaged files)
- -- Fixed BUG 959 (libmysqld not being compiled properly)
- -- Fixed BUG 998 (RPM build errors): added missing files to the
- -- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
- -- mysql_fix_privilege_tables.1), removed "-n" from install section.
- -- removed the GIF Icon (file was not included in the sources anyway)
- -- removed unused variable shared_lib_version
- -- do not run automake before building the standard binary
- -- (should not be necessary)
- -- add server suffix '-standard' to standard binary (to be in line
- -- with the binary tarball distributions)
- -- allow overriding CC and CXX (required when building
- -- with other compilers)
- * Thu Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.23.56-0vl5
- - added BuildRequires: automake16
-
- * Thu Apr 03 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl3
- - add '-fPIC -DPIC' to CFLAGS on alpha
- - little fix of spec file
-
- * Thu Mar 27 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl2
- - enable MySQL-shared subpackage for alpha
- - delete 'BuildPrereq: kernel24-headers' for alpha
- - fix shared %files (exclude sparc)
-
- * Tue Mar 18 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.56-0vl1
- - new upstream version
-
- * Sun Mar 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.23.55-0vl2
- - fixed devel %files (dropped *.la files)
-
- * Tue Jan 28 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.55-0vl1
- - new upstream version
- - fixed document permission
-
- * Sat Dec 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.54a-0vl1
- - new upstream version
-
- * Sat Oct 19 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl2
- - dropped MySQL-Max sub-pakage for sparc/sparc64/alpha
- -- don't work
-
- * Wed Oct 16 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl1
- - new upstream version
- - diseble-assembler in configure on sparc,sparc64,alpha
-
- * Wed Aug 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.52-0vl1
- - new upstream version
- - moved some man files to main package
- - added enable-local-infile in configure
- - changed --with-extra-charsets=all in configure
-
- * Fri Jun 14 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl2
- - fixed changelog
-
- * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl1
- - updated to mysql-3.23.51
-
- * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl2
- - rebuild on zlib-1.1.4(security fix.)
-
- * Mon Feb 18 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl1
- - updated to mysql-2.23.49
-
- * Tue Feb 12 2002 Tomoya TAKA <taka@vinelinux.org> 3.23.48-0vl2
- - add 'BuildPrereq: kernel24-headers' on alpha
- - remove shared library and max on alpha
-
- * Tue Feb 12 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.48-0vl1
- - updated to mysql-3.23.48
-
- * Thu Jan 03 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.47-0vl1
- - updated to mysql-3.23.47
-
- * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.46-0vl1
- - updated to mysql-3.23.46
-
- * Thu Nov 29 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.45-0vl1
- - updated to mysql-3.23.45
-
- * Tue Nov 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.44-0vl1
- - updated to mysql-3.23.44
-
- * Sat Oct 13 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.43-0vl1
- - updated to mysql-3.23.43
- - removed shared library and max on sparc
-
- * Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.42-0vl1
- - updated to mysql-3.23.42
- - changed MYSQL_BUILD_CC: and MYSQL_BUILD_XCC: to -gcc
-
- * Thu Aug 30 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.41-0vl1
- - updated to mysql-3.23.41
-
- * Wed Aug 22 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.40-0vl1
- - updated to mysql-3.23.40
-
- * Tue Jul 10 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.39-0vl1
- - updated to mysql-3.23.39
- * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
- - added configure --with-charset=ujis
-
- * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
- - used some rpmmacro
-
- * Fri May 25 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl1
- - updated to MySQL-3.23.38
-
- * Thu Dec 07 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl2
- - removed Bench pakages
-
- * Tue Dec 05 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl1
- - removed pt_BR locale
- - build on Vine Linux
- - partially used rpmmacros
- - added %clean tag
-
- * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
- - Added separate libmysql_r directory; now both a threaded
- and non-threaded library is shipped.
-
- * Wed Sep 28 1999 David Axmark <davida@mysql.com>
- - Added the support-files/my-example.cnf to the docs directory.
- - Removed devel dependency on base since it is about client
- development.
-
- * Wed Sep 8 1999 David Axmark <davida@mysql.com>
- - Cleaned up some for 3.23.
-
- * Thu Jul 1 1999 David Axmark <davida@mysql.com>
- - Added support for shared libraries in a separate sub
- package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
- - The --enable-assembler switch is now automatically disables on
- platforms there assembler code is unavailable. This should allow
- building this RPM on non i386 systems.
-
- * Mon Feb 22 1999 David Axmark <david@detron.se>
- - Removed unportable cc switches from the spec file. The defaults can
- now be overridden with environment variables. This feature is used
- to compile the official RPM with optimal (but compiler version
- specific) switches.
- - Removed the repetitive description parts for the sub rpms. Maybe add
- again if RPM gets a multiline macro capability.
- - Added support for a pt_BR translation. Translation contributed by
- Jorge Godoy <jorge@bestway.com.br>.
-
- * Wed Nov 4 1998 David Axmark <david@detron.se>
- - A lot of changes in all the rpm and install scripts. This may even
- be a working RPM :-)
-
- * Sun Aug 16 1998 David Axmark <david@detron.se>
- - A developers changelog for MySQL is available in the source RPM. And
- there is a history of major user visible changed in the Reference
- Manual. Only RPM specific changes will be documented here.
|