From: Marcin Krol Date: Tue, 19 Dec 2023 21:23:42 +0000 (+0100) Subject: - reworked for alternatives (like PostgrSQL), dropped test/bench stuff X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=b8085c895a1475c0897a3defeaf0f8ff771cb27b;p=packages%2Fmysql.git - reworked for alternatives (like PostgrSQL), dropped test/bench stuff - dropped release to 0.1 --- diff --git a/mysql.spec b/mysql.spec index 8d0f92c..9730bd7 100644 --- a/mysql.spec +++ b/mysql.spec @@ -1,17 +1,3 @@ -# TODO: -# - -DWITH_AUTHENTICATION_KERBEROS=ON (BR: MIT krb5) -# - -DWITH_AUTHENTICATION_FIDO=ON (using system libfido?) -# - mysqldump ... (invalid usage) prints to stdout not stderr (idiotic if you want to create dump and get usage in .sql) -# - http://bugs.mysql.com/bug.php?id=16470 -# - innodb are dynamic (= as plugins) ? -# - missing have_archive, have_merge -# - is plugin_dir lib64 safe? -# - Using NDB Cluster... could not find sci transporter in /{include, lib} -# - !!! Makefiles for libmysqld.so !!! -# - segfaults on select from non-mysql user (caused by builder environment): -# https://bugs.launchpad.net/pld-linux/+bug/381904 -# (profiling disabled temporaily to workaround this) -# # Conditional build: %bcond_without innodb # InnoDB storage engine support %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms @@ -27,6 +13,9 @@ %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it %bcond_without ldap # LDAP auth support (requires MIT Kerberos) +%define mysqlversion 8.0 +%define mysqlpriority 80 + Summary: MySQL: a very fast and reliable SQL database engine Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable @@ -35,13 +24,12 @@ Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável Summary(ru.UTF-8): MySQL - быстрый SQL-сервер Summary(uk.UTF-8): MySQL - швидкий SQL-сервер Summary(zh_CN.UTF-8): MySQL数据库服务器 -%define majorver 8.0 -Name: mysql-%{majorver} +Name: mysql-%{mysqlversion} Version: 8.0.35 -Release: 1 +Release: 0.1 License: GPL v2 + MySQL FOSS License Exception Group: Applications/Databases -Source0: http://cdn.mysql.com/Downloads/MySQL-%{majorver}/mysql-%{version}.tar.gz +Source0: http://cdn.mysql.com/Downloads/MySQL-%{mysqlversion}/mysql-%{version}.tar.gz # Source0-md5: 825afed06344b52faa8d9dcd52d7e696 Source100: http://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz # Source100-md5: 5cac34f3d78a9d612ca4301abfcbd666 @@ -109,6 +97,7 @@ Requires(pre): /bin/id Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd +Requires: alternatives Requires: %{name}-charsets = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: /usr/bin/setsid @@ -129,6 +118,9 @@ BuildRoot: %{tmpdir}/mysql-%{version}-root-%(id -u -n) %define _localstatedir /var/lib/%{name} %define _mysqlhome /home/services/%{name} +%define mysqldatadir share/mysql/%{mysqlversion} +%define mysqllibdir %{_lib}/mysql/%{mysqlversion} + %description MySQL is a true multi-user, multi-threaded SQL (Structured Query Language) database server. SQL is the most popular database language @@ -248,6 +240,7 @@ klienta. Summary: MySQL additional utilities Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL Group: Applications/Databases +Requires: alternatives Requires: %{name}-client = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} @@ -263,6 +256,7 @@ pakiecie %{name}-extras-perl). Summary: MySQL additional utilities written in Perl Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu Group: Applications/Databases +Requires: alternatives Requires: %{name}-extras = %{version}-%{release} Requires: perl-DBD-mysql @@ -279,6 +273,7 @@ Summary(pt.UTF-8): MySQL - Cliente Summary(ru.UTF-8): MySQL клиент Summary(uk.UTF-8): MySQL клієнт Group: Applications/Databases +Requires: alternatives Requires: %{name}-charsets = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: readline >= 6.2 @@ -379,34 +374,6 @@ Biblioteki statyczne MySQL. Цей пакет містить статичні бібліотеки програміста, необхідні для розробки програм-клієнтів. -%package bench -Summary: MySQL - Benchmarks -Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy -Summary(pt.UTF-8): MySQL - Medições de desempenho -Summary(ru.UTF-8): MySQL - бенчмарки -Summary(uk.UTF-8): MySQL - бенчмарки -Group: Applications/Databases -Requires: %{name} = %{version}-%{release} -Requires: %{name}-client -Requires: perl-DBD-mysql -Obsoletes: MySQL-bench < 3.22.27 - -%description bench -This package contains MySQL benchmark scripts and data. - -%description bench -l pl.UTF-8 -Programy testujące szybkość serwera MySQL. - -%description bench -l pt_BR.UTF-8 -Este pacote contém medições de desempenho de scripts e dados do MySQL. - -%description bench -l ru.UTF-8 -Этот пакет содержит скрипты и данные для оценки производительности -MySQL. - -%description bench -l uk.UTF-8 -Цей пакет містить скрипти та дані для оцінки продуктивності MySQL. - %package doc Summary: MySQL manual Summary(pl.UTF-8): Podręcznik użytkownika MySQL @@ -422,6 +389,7 @@ Podręcznik MySQL-a w formacie HTML. Summary: MySQL - NDB Storage Engine Daemon Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB Group: Applications/Databases +Requires: alternatives Requires: %{name}-libs = %{version}-%{release} %description ndb @@ -435,6 +403,7 @@ NDB. Summary: MySQL - NDB Clients Summary(pl.UTF-8): MySQL - programy klienckie NDB Group: Applications/Databases +Requires: alternatives Requires: %{name}-libs = %{version}-%{release} %description ndb-client @@ -447,6 +416,7 @@ Ten pakiet zawiera standardowe programy klienckie MySQL NDB. Summary: MySQL - NDB Management Daemon Summary(pl.UTF-8): MySQL - demon zarządzający NDB Group: Applications/Databases +Requires: alternatives Requires: %{name}-libs = %{version}-%{release} %description ndb-mgm @@ -459,6 +429,7 @@ Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB. Summary: MySQL - NDB CPC Daemon Summary(pl.UTF-8): MySQL - demon NDB CPC Group: Applications/Databases +Requires: alternatives Requires: %{name}-libs = %{version}-%{release} %description ndb-cpc @@ -499,7 +470,6 @@ cd build CPPFLAGS="%{rpmcppflags}" \ %cmake .. \ - -DCMAKE_EXECUTABLE_SUFFIX=string:%{majorver} \ -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \ @@ -508,16 +478,20 @@ CPPFLAGS="%{rpmcppflags}" \ %{?with_systemtap:-DENABLE_DTRACE=ON} \ -DFEATURE_SET="community" \ -DINSTALL_LAYOUT=RPM \ - -DINSTALL_LIBDIR=%{_lib} \ - -DINSTALL_PRIV_LIBDIR=%{_libdir}/%{name}/private \ + -DINSTALL_BINDIR=%{mysqllibdir}/bin \ + -DINSTALL_SBINDIR=%{mysqllibdir}/sbin \ + -DINSTALL_MANDIR=%{mysqldatadir}/man \ + -DINSTALL_LIBDIR=%{_lib} \ + -DINSTALL_PRIV_LIBDIR=%{_libdir}/mysql/%{mysqlversion}/private \ -DINSTALL_MYSQLTESTDIR_RPM="" \ - -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \ + -DINSTALL_PLUGINDIR=%{_lib}/mysql/%{mysqlversion}/plugin \ -DINSTALL_SECURE_FILE_PRIVDIR=/var/lib/%{name}-files \ -DINSTALL_SQLBENCHDIR=%{_datadir} \ - -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \ - -DINSTALL_MYSQLSHAREDIR=share/%{name} \ - -DROUTER_INSTALL_LIBDIR=%{_libdir}/%{name}router/private \ - -DROUTER_INSTALL_PLUGINDIR=%{_libdir}/%{name}router \ + -DINSTALL_SUPPORTFILESDIR=share/mysql/%{mysqlversion}/support \ + -DINSTALL_MYSQLSHAREDIR=share/mysql/%{mysqlversion}/lang \ + -DINSTALL_MYSQLTESTDIR=share/mysql/%{mysqlversion}/test \ + -DROUTER_INSTALL_LIBDIR=%{_libdir}/mysql/%{mysqlversion}/router/private \ + -DROUTER_INSTALL_PLUGINDIR=%{_libdir}/mysql/%{mysqlversion}/router \ -DMYSQL_UNIX_ADDR=/var/lib/%{name}/mysql.sock \ %{?debug:-DWITH_DEBUG=ON} \ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \ @@ -553,16 +527,16 @@ install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,%{name},skel} %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT -sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +sed -e 's#{MYSQL_MAJOR}#%{mysqlversion}#g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} -sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE3} > $RPM_BUILD_ROOT/etc/logrotate.d/%{name} +sed -e 's#{MYSQL_MAJOR}#%{mysqlversion}#g' %{SOURCE3} > $RPM_BUILD_ROOT/etc/logrotate.d/%{name} # This is template for configuration file which is created after 'service mysql init' -sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE4} > mysqld.conf -sed -e 's#{MYSQL_MAJOR}#%{majorver}#g' %{SOURCE5} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf +sed -e 's#{MYSQL_MAJOR}#%{mysqlversion}#g' %{SOURCE4} > mysqld.conf +sed -e 's#{MYSQL_MAJOR}#%{mysqlversion}#g' %{SOURCE5} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log -mv $RPM_BUILD_ROOT/etc/logrotate.d/{mysqlrouter,%{name}router} +mv $RPM_BUILD_ROOT/etc/logrotate.d/{mysqlrouter,%{name}-router} # remove innodb directives from mysqld.conf if mysqld is configured without %if %{without innodb} @@ -574,7 +548,7 @@ mv $RPM_BUILD_ROOT/etc/logrotate.d/{mysqlrouter,%{name}router} cp mysqld.conf mysqld.tmp awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf -cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf +cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/mysqld.conf cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf @@ -589,12 +563,12 @@ install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ndb-cpc cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ndb-cpc %endif -sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config -sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config -sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config +sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/mysql_config +sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/mysql_config +sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/mysql_config # remove known unpackaged files -%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/support # rename not to be so generic name @@ -605,49 +579,44 @@ sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym} # do not clobber users $PATH -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults -%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/mysql_upgrade +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/innochecksum +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/myisamchk +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/myisamlog +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/myisampack +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/my_print_defaults +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/mysql/%{mysqlversion}/bin,%{_libdir}/mysql/%{mysqlversion}/sbin}/mysqlcheck # delete - functionality in initscript / rpm # note: mysql_install_db (and thus resolveip) are needed by digikam -%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe -%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi -%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}* -%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server* -%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1* -%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1* +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/mysqld_safe +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/mysqld_multi +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqld_{multi,safe}* +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql.server* + +# man pages for removed commands +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlman.1* +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlslap.1* +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/comp_err.1* +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/lz4_decompress.1* +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/man/man1/zlib_decompress.1* # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault -%{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest} -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_udf_services.so -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/component_test_udf_services.so -%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test - -# not needed -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.* -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini - -# test plugins -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so - -# fix names for parallel coinstallation -for f in $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/* ; do - fb=$(basename "$f") - mv "${f}" "${f}%{majorver}" - for m in $RPM_BUILD_ROOT%{_mandir}/man*; do - mnr=$(echo -n $m | tail -c 1) - if [ -f "${m}/${fb}.${mnr}" ]; then - mv "${m}/${fb}.${mnr}" "$m/${fb}%{majorver}.${mnr}" - fi - done -done +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql/%{mysqlversion}/test +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/bin/{comp_err,mysql_client_test,mysql_keyring_encryption_test,mysqlslap,mysqltest,mysqltest_safe_process,mysqlxtest,zlib_decompress} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/test_udf_services.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/component_example_*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/component_log_sink_test.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/component_pfs_example*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/component_test_*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/test_services_*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/libdaemon_example.* +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/daemon_example.ini +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/libtest*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/pfs_example*.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/rewrite_example.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/udf_example.so +%{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/%{mysqlversion}/plugin/test_security_context.so %clean rm -rf $RPM_BUILD_ROOT @@ -667,13 +636,145 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del %{name} fi +%posttrans +update-alternatives \ + --install %{_bindir}/ibd2sdi ibd2sdi %{_libdir}/mysql/%{mysqlversion}/bin/ibd2sdi %{mysqlpriority} \ + --slave %{_mandir}/man1/ibd2sdi.1 ibd2sdi.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ibd2sdi.1* || : +update-alternatives \ + --install %{_bindir}/mysql_migrate_keyring mysql_migrate_keyring %{_libdir}/mysql/%{mysqlversion}/bin/mysql_migrate_keyring %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_migrate_keyring.1 mysql_migrate_keyring.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_migrate_keyring.1* || : +update-alternatives \ + --install %{_bindir}/mysqlrouter mysqlrouter %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlrouter.1 mysqlrouter.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter.1* || : +update-alternatives \ + --install %{_bindir}/mysqlrouter_keyring mysqlrouter_keyring %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_keyring %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlrouter_keyring.1 mysqlrouter_keyring.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_keyring.1* || : +update-alternatives \ + --install %{_bindir}/mysqlrouter_passwd mysqlrouter_passwd %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_passwd %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlrouter_passwd.1 mysqlrouter_passwd.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_passwd.1* || : +update-alternatives \ + --install %{_bindir}/mysqlrouter_plugin_info mysqlrouter_plugin_info %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_plugin_info %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlrouter_plugin_info.1 mysqlrouter_plugin_info.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_plugin_info.1* || : +update-alternatives \ + --install %{_sbindir}/innochecksum innochecksum %{_libdir}/mysql/%{mysqlversion}/sbin/innochecksum %{mysqlpriority} \ + --slave %{_mandir}/man1/innochecksum.1 innochecksum.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/innochecksum.1* || : +update-alternatives \ + --install %{_sbindir}/my_print_defaults my_print_defaults %{_libdir}/mysql/%{mysqlversion}/sbin/my_print_defaults %{mysqlpriority} \ + --slave %{_mandir}/man1/my_print_defaults.1 my_print_defaults.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/my_print_defaults.1* || : +update-alternatives \ + --install %{_sbindir}/myisamchk myisamchk %{_libdir}/mysql/%{mysqlversion}/sbin/myisamchk %{mysqlpriority} \ + --slave %{_mandir}/man1/myisamchk.1 myisamchk.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/myisamchk.1* || : +update-alternatives \ + --install %{_sbindir}/myisamlog myisamlog %{_libdir}/mysql/%{mysqlversion}/sbin/myisamlog %{mysqlpriority} \ + --slave %{_mandir}/man1/myisamlog.1 myisamlog.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/myisamlog.1* || : +update-alternatives \ + --install %{_sbindir}/myisampack myisampack %{_libdir}/mysql/%{mysqlversion}/sbin/myisampack %{mysqlpriority} \ + --slave %{_mandir}/man1/myisampack.1 myisampack.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/myisampack.1* || : +update-alternatives \ + --install %{_sbindir}/mysql_upgrade mysql_upgrade %{_libdir}/mysql/%{mysqlversion}/sbin/mysql_upgrade %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_upgrade.1 mysql_upgrade.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_upgrade.1* || : +update-alternatives \ + --install %{_sbindir}/mysqlcheck mysqlcheck %{_libdir}/mysql/%{mysqlversion}/sbin/mysqlcheck %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlcheck.1 mysqlcheck.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlcheck.1* || : +update-alternatives \ + --install %{_sbindir}/mysqld mysqld %{_libdir}/mysql/%{mysqlversion}/sbin/mysqld %{mysqlpriority} \ + --slave %{_mandir}/man8/mysqld.8 mysqld.8 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqld.8* || : + %postun /sbin/ldconfig if [ "$1" = "0" ]; then + update-alternatives --remove ibd2sdi %{_libdir}/mysql/%{mysqlversion}/bin/ibd2sdi || : + update-alternatives --remove mysql_migrate_keyring %{_libdir}/mysql/%{mysqlversion}/bin/mysql_migrate_keyring || : + update-alternatives --remove mysqlrouter %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter || : + update-alternatives --remove mysqlrouter_keyring %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_keyring || : + update-alternatives --remove mysqlrouter_passwd %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_passwd || : + update-alternatives --remove mysqlrouter_plugin_info %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_plugin_info || : + update-alternatives --remove innochecksum %{_libdir}/mysql/%{mysqlversion}/sbin/innochecksum || : + update-alternatives --remove my_print_defaults %{_libdir}/mysql/%{mysqlversion}/sbin/my_print_defaults || : + update-alternatives --remove myisamchk %{_libdir}/mysql/%{mysqlversion}/sbin/myisamchk || : + update-alternatives --remove myisamlog %{_libdir}/mysql/%{mysqlversion}/sbin/myisamlog || : + update-alternatives --remove myisampack %{_libdir}/mysql/%{mysqlversion}/sbin/myisampack || : + update-alternatives --remove mysql_upgrade %{_libdir}/mysql/%{mysqlversion}/sbin/mysql_upgrade || : + update-alternatives --remove mysqlcheck %{_libdir}/mysql/%{mysqlversion}/sbin/mysqlcheck || : + update-alternatives --remove mysqld %{_libdir}/mysql/%{mysqlversion}/sbin/mysqld || : %userremove mysql %groupremove mysql fi +%posttrans client +update-alternatives \ + --install %{_bindir}/mysql mysql %{_libdir}/mysql/%{mysqlversion}/bin/mysql %{mysqlprioity} \ + --slave %{_mandir}/man1/mysql.1 mysql.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql.1* || : +update-alternatives \ + --install %{_bindir}/mysqladmin mysqladmin %{_libdir}/mysql/%{mysqlversion}/bin/mysqladmin %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqladmin.1 mysqladmin.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqladmin.1* || : +update-alternatives \ + --install %{_bindir}/mysqlbinlog mysqlbinlog %{_libdir}/mysql/%{mysqlversion}/bin/mysqlbinlog %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlbinlog.1 mysqlbinlog.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlbinlog.1* || : +update-alternatives \ + --install %{_bindir}/mysql_config_editor mysql_config_editor %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config_editor %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_config_editor.1 mysql_config_editor.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_config_editor.1* || : +update-alternatives \ + --install %{_bindir}/mysqldump mysqldump %{_libdir}/mysql/%{mysqlversion}/bin/mysqldump %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqldump.1 mysqldump.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqldump.1* || : +update-alternatives \ + --install %{_bindir}/mysqlimport mysqlimport %{_libdir}/mysql/%{mysqlversion}/bin/mysqlimport %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlimport.1 mysqlimport.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlimport.1* || : +update-alternatives \ + --install %{_bindir}/mysqlpump mysqlpump %{_libdir}/mysql/%{mysqlversion}/bin/mysqlpump %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlpump.1 mysqlpump.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlpump.1* || : +update-alternatives \ + --install %{_bindir}/mysqlshow mysqlshow %{_libdir}/mysql/%{mysqlversion}/bin/mysqlshow %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqlshow.1 mysqlshow.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlshow.1* || : + +%postun client +if [ $1 -eq 0 ]; then + update-alternatives --remove mysql %{_libdir}/mysql/%{mysqlversion}/bin/mysql || : + update-alternatives --remove mysqladmin %{_libdir}/mysql/%{mysqlversion}/bin/mysqladmin || : + update-alternatives --remove mysqlbinlog %{_libdir}/mysql/%{mysqlversion}/bin/mysqlbinlog || : + update-alternatives --remove mysql_config_editor %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config_editor || : + update-alternatives --remove mysqldump %{_libdir}/mysql/%{mysqlversion}/bin/mysqldump || : + update-alternatives --remove mysqlimport %{_libdir}/mysql/%{mysqlversion}/bin/mysqlimport || : + update-alternatives --remove mysqlpump %{_libdir}/mysql/%{mysqlversion}/bin/mysqlpump || : + update-alternatives --remove mysqlshow %{_libdir}/mysql/%{mysqlversion}/bin/mysqlshow || : +fi + +%posttrans extras +update-alternatives \ + --install %{_bindir}/myisam_ftdump myisam_ftdump %{_libdir}/mysql/%{mysqlversion}/bin/myisam_ftdump %{mysqlpriority} \ + --slave %{_mandir}/man1/myisam_ftdump.1 myisam_ftdump.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/myisam_ftdump.1* || : +update-alternatives \ + --install %{_bindir}/mysql_secure_installation mysql_secure_installation %{_libdir}/mysql/%{mysqlversion}/bin/mysql_secure_installation %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_secure_installation.1 mysql_secure_installation.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_secure_installation.1* || : +update-alternatives \ + --install %{_bindir}/mysql_ssl_rsa_setup mysql_ssl_rsa_setup %{_libdir}/mysql/%{mysqlversion}/bin/mysql_ssl_rsa_setup %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_ssl_rsa_setup.1 mysql_ssl_rsa_setup.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_ssl_rsa_setup.1* || : +update-alternatives \ + --install %{_bindir}/mysql_tzinfo_to_sql mysql_tzinfo_to_sql %{_libdir}/mysql/%{mysqlversion}/bin/mysql_tzinfo_to_sql %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_tzinfo_to_sql.1 mysql_tzinfo_to_sql.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_tzinfo_to_sql.1* || : +update-alternatives \ + --install %{_bindir}/perror perror %{_libdir}/mysql/%{mysqlversion}/bin/perror %{mysqlpriority} \ + --slave %{_mandir}/man1/perror.1 perror.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/perror.1* || : + +%postun extras +if [ $1 -eq 0 ]; then + update-alternatives --remove myisam_ftdump %{_libdir}/mysql/%{mysqlversion}/bin/myisam_ftdump || : + update-alternatives --remove mysql_secure_installation %{_libdir}/mysql/%{mysqlversion}/bin/mysql_secure_installation || : + update-alternatives --remove mysql_ssl_rsa_setup %{_libdir}/mysql/%{mysqlversion}/bin/mysql_ssl_rsa_setup || : + update-alternatives --remove mysql_tzinfo_to_sql %{_libdir}/mysql/%{mysqlversion}/bin/mysql_tzinfo_to_sql || : + update-alternatives --remove perror %{_libdir}/mysql/%{mysqlversion}/bin/perror || : +fi + +%posttrans extras-perl +update-alternatives \ + --install %{_bindir}/mysqldumpslow mysqldumpslow %{_libdir}/mysql/%{mysqlversion}/bin/mysqldumpslow %{mysqlpriority} \ + --slave %{_mandir}/man1/mysqldumpslow.1 mysqldumpslow.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqldumpslow.1* || : + +%postun extras-perl +if [ $1 -eq 0 ]; then + update-alternatives --remove mysqldumpslow %{_libdir}/mysql/%{mysqlversion}/bin/mysqldumpslow || : +fi + %post ndb /sbin/chkconfig --add %{name}-ndb %service %{name}-ndb restart "%{name} NDB engine" @@ -684,6 +785,90 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del %{name}-ndb fi +%posttrans ndb +update-alternatives \ + --install %{_sbindir}/ndbd ndbd %{_libdir}/mysql/%{mysqlversion}/sbin/ndbd %{mysqlpriority} \ + --slave %{_mandir}/man1/ndbd.1 ndbd.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndbd.1* || : + +%postun ndb +if [ "$1" = "0" ]; then + update-alternatives --remove ndbd %{_libdir}/mysql/%{mysqlversion}/sbin/ndbd || : +fi + +%posttrans ndb-client +update-alternatives \ + --install %{_bindir}/ndb_config ndb_config %{_libdir}/mysql/%{mysqlversion}/bin/ndb_config %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_config.1 ndb_config.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_config.1* || : +update-alternatives \ + --install %{_bindir}/ndb_delete_all ndb_delete_all %{_libdir}/mysql/%{mysqlversion}/bin/ndb_delete_all %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_delete_all.1 ndb_delete_all.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_delete_all.1* || : +update-alternatives \ + --install %{_bindir}/ndb_desc ndb_desc %{_libdir}/mysql/%{mysqlversion}/bin/ndb_desc %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_desc.1 ndb_desc.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_desc.1* || : +update-alternatives \ + --install %{_bindir}/ndb_drop_index ndb_drop_index %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_index %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_drop_index.1 ndb_drop_index.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_drop_index.1* || : +update-alternatives \ + --install %{_bindir}/ndb_drop_table ndb_drop_table %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_table %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_drop_table.1 ndb_drop_table.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_drop_table.1* || : +update-alternatives \ + --install %{_bindir}/ndb_error_reporter ndb_error_reporter %{_libdir}/mysql/%{mysqlversion}/bin/ndb_error_reporter %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_error_reporter.1 ndb_error_reporter.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_error_reporter.1* || : +update-alternatives \ + --install %{_bindir}/ndb_mgm ndb_mgm %{_libdir}/mysql/%{mysqlversion}/bin/ndb_mgm %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_mgm.1 ndb_mgm.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_mgm.1* || : +update-alternatives \ + --install %{_bindir}/ndb_print_backup_file ndb_print_backup_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_backup_file %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_print_backup_file.1 ndb_print_backup_file.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_backup_file.1* || : +update-alternatives \ + --install %{_bindir}/ndb_print_schema_file ndb_print_schema_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_schema_file %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_print_schema_file.1 ndb_print_schema_file.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_schema_file.1* || : +update-alternatives \ + --install %{_bindir}/ndb_print_sys_file ndb_print_sys_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_sys_file %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_print_sys_file.1 ndb_print_sys_file.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_sys_file.1* || : +update-alternatives \ + --install %{_bindir}/ndb_restore ndb_restore %{_libdir}/mysql/%{mysqlversion}/bin/ndb_restore %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_restore.1 ndb_restore.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_restore.1* || : +update-alternatives \ + --install %{_bindir}/ndb_select_all ndb_select_all %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_all %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_select_all.1 ndb_select_all.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_select_all.1* || : +update-alternatives \ + --install %{_bindir}/ndb_select_count ndb_select_count %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_count %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_select_count.1 ndb_select_count.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_select_count.1* || : +update-alternatives \ + --install %{_bindir}/ndb_show_tables ndb_show_tables %{_libdir}/mysql/%{mysqlversion}/bin/ndb_show_tables %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_show_tables.1 ndb_show_tables.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_show_tables.1* || : +update-alternatives \ + --install %{_bindir}/ndb_size.pl ndb_size.pl %{_libdir}/mysql/%{mysqlversion}/bin/ndb_size.pl %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_size.pl.1 ndb_size.pl.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_size.pl.1* || : +update-alternatives \ + --install %{_bindir}/ndb_test_platform ndb_test_platform %{_libdir}/mysql/%{mysqlversion}/bin/ndb_test_platform %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_test_platform.1 ndb_test_platform.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_test_platform.1* || : +update-alternatives \ + --install %{_bindir}/ndb_waiter ndb_waiter %{_libdir}/mysql/%{mysqlversion}/bin/ndb_waiter %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_waiter.1 ndb_waiter.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_waiter.1* || : + +%postun ndb-client +if [ $1 -eq 0 ]; then + update-alternatives --remove ndb_config %{_libdir}/mysql/%{mysqlversion}/bin/ndb_config || : + update-alternatives --remove ndb_delete_all %{_libdir}/mysql/%{mysqlversion}/bin/ndb_delete_all || : + update-alternatives --remove ndb_desc %{_libdir}/mysql/%{mysqlversion}/bin/ndb_desc || : + update-alternatives --remove ndb_drop_index %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_index || : + update-alternatives --remove ndb_drop_table %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_table || : + update-alternatives --remove ndb_error_reporter %{_libdir}/mysql/%{mysqlversion}/bin/ndb_error_reporter || : + update-alternatives --remove ndb_mgm %{_libdir}/mysql/%{mysqlversion}/bin/ndb_mgm || : + update-alternatives --remove ndb_print_backup_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_backup_file || : + update-alternatives --remove ndb_print_schema_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_schema_file || : + update-alternatives --remove ndb_print_sys_file %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_sys_file || : + update-alternatives --remove ndb_restore %{_libdir}/mysql/%{mysqlversion}/bin/ndb_restore || : + update-alternatives --remove ndb_select_all %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_all || : + update-alternatives --remove ndb_select_count %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_count || : + update-alternatives --remove ndb_show_tables %{_libdir}/mysql/%{mysqlversion}/bin/ndb_show_tables || : + update-alternatives --remove ndb_size.pl %{_libdir}/mysql/%{mysqlversion}/bin/ndb_size.pl || : + update-alternatives --remove ndb_test_platform %{_libdir}/mysql/%{mysqlversion}/bin/ndb_test_platform || : + update-alternatives --remove ndb_waiter %{_libdir}/mysql/%{mysqlversion}/bin/ndb_waiter || : +fi + %post ndb-mgm /sbin/chkconfig --add %{name}-ndb-mgm %service %{name}-ndb-mgm restart "%{name} NDB management node" @@ -694,6 +879,16 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del %{name}-ndb-mgm fi +%posttrans ndb-mgm +update-alternatives \ + --install %{_sbindir}/ndb_mgmd ndb_mgmd %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_mgmd %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_mgmd.1 ndb_mgmd.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_mgmd.1* || : + +%postun ndb-mgm +if [ "$1" = "0" ]; then + update-alternatives --remove ndb_mgmd %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_mgmd || : +fi + %post ndb-cpc /sbin/chkconfig --add %{name}-ndb-cpc %service %{name}-ndb-cpc restart "%{name} NDB CPC" @@ -704,115 +899,123 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del %{name}-ndb-cpc fi +%posttrans ndb-cpc +update-alternatives \ + --install %{_sbindir}/ndb_cpcd ndb_cpcd %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_cpcd %{mysqlpriority} \ + --slave %{_mandir}/man1/ndb_cpcd.1 ndb_cpcd.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_cpcd.1* || : + +%postun ndb-cpc +if [ "$1" = "0" ]; then + update-alternatives --remove ndb_cpcd %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_cpcd || : +fi + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}router +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-router %attr(754,root,root) /etc/rc.d/init.d/%{name} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf -%attr(755,root,root) %{_bindir}/ibd2sdi%{majorver} -%attr(755,root,root) %{_bindir}/mysql_migrate_keyring%{majorver} -%attr(755,root,root) %{_bindir}/mysqlrouter%{majorver} -%attr(755,root,root) %{_bindir}/mysqlrouter_keyring%{majorver} -%attr(755,root,root) %{_bindir}/mysqlrouter_passwd%{majorver} -%attr(755,root,root) %{_bindir}/mysqlrouter_plugin_info%{majorver} -%attr(755,root,root) %{_sbindir}/innochecksum%{majorver} -%attr(755,root,root) %{_sbindir}/my_print_defaults%{majorver} -%attr(755,root,root) %{_sbindir}/myisamchk%{majorver} -%attr(755,root,root) %{_sbindir}/myisamlog%{majorver} -%attr(755,root,root) %{_sbindir}/myisampack%{majorver} -%attr(755,root,root) %{_sbindir}/mysql_upgrade%{majorver} -%attr(755,root,root) %{_sbindir}/mysqlcheck%{majorver} -%attr(755,root,root) %{_sbindir}/mysqld%{majorver} - -%dir %{_libdir}/%{name} -%dir %{_libdir}/%{name}/plugin -%attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_audit_api_message_emit.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_keyring_file.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_filter_dragnet.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_sink_json.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_sink_syseventlog.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_mysqlbackup.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_mysqlx_global_reset.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_pfs_example.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_pfs_example_component_population.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_query_attributes.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_reference_cache.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_udf_*_func.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_validate_password.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/conflicting_variables.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/ddl_rewriter.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_mock.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_clone.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_replica.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_source.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ibd2sdi +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_migrate_keyring +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_keyring +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_passwd +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_plugin_info +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/innochecksum +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/my_print_defaults +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/myisamchk +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/myisamlog +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/myisampack +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/mysql_upgrade +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/mysqlcheck +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/mysqld + +%dir %{_libdir}/mysql/%{mysqlversion} +%dir %{_libdir}/mysql/%{mysqlversion}/plugin +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/adt_null.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/auth.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/auth_socket.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/auth_test_plugin.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_audit_api_message_emit.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_keyring_file.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_log_filter_dragnet.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_log_sink_json.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_log_sink_syseventlog.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_mysqlbackup.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_mysqlx_global_reset.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_query_attributes.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_reference_cache.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_udf_*_func.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/component_validate_password.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/conflicting_variables.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/connection_control.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/ddl_rewriter.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/group_replication.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/ha_mock.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/keyring_file.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/keyring_udf.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/libpluginmecab.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/locking_service.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/mypluglib.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/mysql_clone.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/mysql_no_login.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/qa_auth_client.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/qa_auth_interface.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/qa_auth_server.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/replication_observers_example_plugin.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/rewriter.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/semisync_master.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/semisync_replica.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/semisync_slave.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/semisync_source.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/validate_password.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/version_token.so %if %{with sphinx} -%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/plugin/ha_sphinx.so %endif -%dir %{_libdir}/%{name}/private -%{_libdir}/%{name}/private/icudt*l -%dir %{_libdir}/%{name}router -%attr(755,root,root) %{_libdir}/%{name}router/connection_pool.so -%attr(755,root,root) %{_libdir}/%{name}router/destination_status.so -%attr(755,root,root) %{_libdir}/%{name}router/http_auth_backend.so -%attr(755,root,root) %{_libdir}/%{name}router/http_auth_realm.so -%attr(755,root,root) %{_libdir}/%{name}router/http_server.so -%attr(755,root,root) %{_libdir}/%{name}router/io.so -%attr(755,root,root) %{_libdir}/%{name}router/keepalive.so -%attr(755,root,root) %{_libdir}/%{name}router/metadata_cache.so -%attr(755,root,root) %{_libdir}/%{name}router/rest_api.so -%attr(755,root,root) %{_libdir}/%{name}router/rest_connection_pool.so -%attr(755,root,root) %{_libdir}/%{name}router/rest_metadata_cache.so -%attr(755,root,root) %{_libdir}/%{name}router/rest_router.so -%attr(755,root,root) %{_libdir}/%{name}router/rest_routing.so -%attr(755,root,root) %{_libdir}/%{name}router/router_openssl.so -%attr(755,root,root) %{_libdir}/%{name}router/router_protobuf.so -%attr(755,root,root) %{_libdir}/%{name}router/routing.so -%dir %{_libdir}/%{name}router/private -%attr(755,root,root) %{_libdir}/%{name}router/private/libmysqlharness*.so* -%attr(755,root,root) %{_libdir}/%{name}router/private/libmysqlrouter*.so* -%{_mandir}/man1/ibd2sdi%{majorver}.1* -%{_mandir}/man1/innochecksum%{majorver}.1* -%{_mandir}/man1/my_print_defaults%{majorver}.1* -%{_mandir}/man1/myisamchk%{majorver}.1* -%{_mandir}/man1/myisamlog%{majorver}.1* -%{_mandir}/man1/myisampack%{majorver}.1* -%{_mandir}/man1/mysql_upgrade%{majorver}.1* -%{_mandir}/man1/mysqlcheck%{majorver}.1* -%{_mandir}/man1/mysqlrouter%{majorver}.1* -%{_mandir}/man1/mysqlrouter_passwd%{majorver}.1* -%{_mandir}/man1/mysqlrouter_plugin_info%{majorver}.1* -%{_mandir}/man8/mysqld%{majorver}.8* +%dir %{_libdir}/mysql/%{mysqlversion}/private +%{_libdir}/mysql/%{mysqlversion}/private/icudt*l +%dir %{_libdir}/mysql/%{mysqlversion}/router +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/connection_pool.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/destination_status.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/http_auth_backend.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/http_auth_realm.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/http_server.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/io.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/keepalive.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/metadata_cache.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/rest_api.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/rest_connection_pool.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/rest_metadata_cache.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/rest_router.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/rest_routing.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/router_openssl.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/router_protobuf.so +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/routing.so +%dir %{_libdir}/mysql/%{mysqlversion}/router/private +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/private/libmysqlharness*.so* +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/router/private/libmysqlrouter*.so* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ibd2sdi.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/innochecksum.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/my_print_defaults.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/myisamchk.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/myisamlog.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/myisampack.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_upgrade.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlcheck.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_passwd.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_plugin_info.1* +%{_datadir}/mysql/%{mysqlversion}/man/man8/mysqld.8* %if %{?debug:1}0 -%attr(755,root,root) %{_bindir}/*resolve_stack_dump +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/*resolve_stack_dump %{_datadir}/%{name}/mysqld.sym -%{_mandir}/man1/*resolve_stack_dump.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/*resolve_stack_dump.1* %endif %attr(700,mysql,mysql) %{_mysqlhome} @@ -824,82 +1027,82 @@ fi %attr(640,mysql,mysql) %ghost /var/log/%{name}/* # This is template for configuration file which is created after 'service mysql init' -%{_datadir}/%{name}/mysqld.conf - -%{_datadir}/%{name}/english -%{_datadir}/%{name}/dictionary.txt -%{_datadir}/%{name}/messages_to_clients.txt -%{_datadir}/%{name}/messages_to_error_log.txt -%{_datadir}/%{name}/install_rewriter.sql -%{_datadir}/%{name}/uninstall_rewriter.sql +%{_datadir}/mysql/%{mysqlversion}/mysqld.conf + +%{_datadir}/mysql/%{mysqlversion}/lang/english +%{_datadir}/mysql/%{mysqlversion}/lang/dictionary.txt +%{_datadir}/mysql/%{mysqlversion}/lang/messages_to_clients.txt +%{_datadir}/mysql/%{mysqlversion}/lang/messages_to_error_log.txt +%{_datadir}/mysql/%{mysqlversion}/lang/install_rewriter.sql +%{_datadir}/mysql/%{mysqlversion}/lang/uninstall_rewriter.sql # Don't mark these with %%lang. These are used depending # on database client settings. -%{_datadir}/%{name}/bulgarian -%{_datadir}/%{name}/czech -%{_datadir}/%{name}/danish -%{_datadir}/%{name}/german -%{_datadir}/%{name}/greek -%{_datadir}/%{name}/spanish -%{_datadir}/%{name}/estonian -%{_datadir}/%{name}/french -%{_datadir}/%{name}/hungarian -%{_datadir}/%{name}/italian -%{_datadir}/%{name}/japanese -%{_datadir}/%{name}/korean -%{_datadir}/%{name}/dutch -%{_datadir}/%{name}/norwegian -%{_datadir}/%{name}/norwegian-ny -%{_datadir}/%{name}/polish -%{_datadir}/%{name}/portuguese -%{_datadir}/%{name}/romanian -%{_datadir}/%{name}/russian -%{_datadir}/%{name}/serbian -%{_datadir}/%{name}/slovak -%{_datadir}/%{name}/swedish -%{_datadir}/%{name}/ukrainian +%{_datadir}/mysql/%{mysqlversion}/lang/bulgarian +%{_datadir}/mysql/%{mysqlversion}/lang/czech +%{_datadir}/mysql/%{mysqlversion}/lang/danish +%{_datadir}/mysql/%{mysqlversion}/lang/german +%{_datadir}/mysql/%{mysqlversion}/lang/greek +%{_datadir}/mysql/%{mysqlversion}/lang/spanish +%{_datadir}/mysql/%{mysqlversion}/lang/estonian +%{_datadir}/mysql/%{mysqlversion}/lang/french +%{_datadir}/mysql/%{mysqlversion}/lang/hungarian +%{_datadir}/mysql/%{mysqlversion}/lang/italian +%{_datadir}/mysql/%{mysqlversion}/lang/japanese +%{_datadir}/mysql/%{mysqlversion}/lang/korean +%{_datadir}/mysql/%{mysqlversion}/lang/dutch +%{_datadir}/mysql/%{mysqlversion}/lang/norwegian +%{_datadir}/mysql/%{mysqlversion}/lang/norwegian-ny +%{_datadir}/mysql/%{mysqlversion}/lang/polish +%{_datadir}/mysql/%{mysqlversion}/lang/portuguese +%{_datadir}/mysql/%{mysqlversion}/lang/romanian +%{_datadir}/mysql/%{mysqlversion}/lang/russian +%{_datadir}/mysql/%{mysqlversion}/lang/serbian +%{_datadir}/mysql/%{mysqlversion}/lang/slovak +%{_datadir}/mysql/%{mysqlversion}/lang/swedish +%{_datadir}/mysql/%{mysqlversion}/lang/ukrainian %files charsets %defattr(644,root,root,755) -%dir %{_datadir}/%{name} -%{_datadir}/%{name}/charsets +%dir %{_datadir}/mysql/%{mysqlversion}/lang +%{_datadir}/mysql/%{mysqlversion}/lang/charsets %files extras %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/myisam_ftdump%{majorver} -%attr(755,root,root) %{_bindir}/mysql_secure_installation%{majorver} -%attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup%{majorver} -%attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql%{majorver} -%attr(755,root,root) %{_bindir}/perror%{majorver} -%{_mandir}/man1/myisam_ftdump%{majorver}.1* -%{_mandir}/man1/mysql_ssl_rsa_setup%{majorver}.1* -%{_mandir}/man1/mysql_secure_installation%{majorver}.1* -%{_mandir}/man1/mysql_tzinfo_to_sql%{majorver}.1* -%{_mandir}/man1/perror%{majorver}.1* +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/myisam_ftdump +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_secure_installation +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_ssl_rsa_setup +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_tzinfo_to_sql +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/perror +%{_datadir}/mysql/%{mysqlversion}/man/man1/myisam_ftdump.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_ssl_rsa_setup.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_secure_installation.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_tzinfo_to_sql.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/perror.1* %files extras-perl %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/mysqldumpslow%{majorver} -%{_mandir}/man1/mysqldumpslow%{majorver}.1* +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqldumpslow +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqldumpslow.1* %files client %defattr(644,root,root,755) %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf -%attr(755,root,root) %{_bindir}/mysql%{majorver} -%attr(755,root,root) %{_bindir}/mysqladmin%{majorver} -%attr(755,root,root) %{_bindir}/mysqlbinlog%{majorver} -%attr(755,root,root) %{_bindir}/mysql_config_editor%{majorver} -%attr(755,root,root) %{_bindir}/mysqldump%{majorver} -%attr(755,root,root) %{_bindir}/mysqlimport%{majorver} -%attr(755,root,root) %{_bindir}/mysqlpump%{majorver} -%attr(755,root,root) %{_bindir}/mysqlshow%{majorver} -%{_mandir}/man1/mysql%{majorver}.1* -%{_mandir}/man1/mysqladmin%{majorver}.1* -%{_mandir}/man1/mysqlbinlog%{majorver}.1* -%{_mandir}/man1/mysql_config_editor%{majorver}.1* -%{_mandir}/man1/mysqldump%{majorver}.1* -%{_mandir}/man1/mysqlimport%{majorver}.1* -%{_mandir}/man1/mysqlpump%{majorver}.1* -%{_mandir}/man1/mysqlshow%{majorver}.1* +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqladmin +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlbinlog +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config_editor +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqldump +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlimport +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlpump +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlshow +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqladmin.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlbinlog.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_config_editor.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqldump.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlimport.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlpump.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlshow.1* %files libs %defattr(644,root,root,755) @@ -915,7 +1118,7 @@ fi %files devel %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/mysql_config%{majorver} +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config %attr(755,root,root) %{_libdir}/libmysqlclient.so %if %{with ndb} %attr(755,root,root) %{_libdir}/libndbclient.so @@ -924,7 +1127,7 @@ fi %{_libdir}/libmysqlservices.a %{_includedir}/mysql %{_aclocaldir}/mysql.m4 -%{_mandir}/man1/mysql_config%{majorver}.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_config.1* %files static %defattr(644,root,root,755) @@ -933,108 +1136,62 @@ fi %{_libdir}/libndbclient.a %endif -# rename to test or split? -%files bench -%defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/comp_err%{majorver} -%attr(755,root,root) %{_bindir}/mysql_keyring_encryption_test%{majorver} -%attr(755,root,root) %{_bindir}/mysqlslap%{majorver} -%attr(755,root,root) %{_bindir}/mysqltest%{majorver} -%attr(755,root,root) %{_bindir}/mysqltest_safe_process%{majorver} -%attr(755,root,root) %{_bindir}/zlib_decompress%{majorver} -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_example_component1.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_example_component2.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_example_component3.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_sink_test.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_audit_api_message.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_backup_lock_service.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_component_deinit.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_host_application_signal.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_mysql_current_thread_reader.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_mysql_runtime_error.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_mysql_system_variable_set.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_pfs_notification.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_pfs_resource_group.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_sensitive_system_variables.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_status_var_service.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_status_var_service_int.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_status_var_service_reg_only.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_status_var_service_str.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_status_var_service_unreg_only.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_string_service.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_string_service_charset.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_string_service_long.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_sys_var_service.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_sys_var_service_int.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_sys_var_service_same.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_sys_var_service_str.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_system_variable_source.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_table_access.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/component_test_udf_registration.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/pfs_example_plugin_employee.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/test_services_host_application_signal.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/test_services_plugin_registry.so -%attr(755,root,root) %{_libdir}/%{name}/plugin/udf_example.so -%{_mandir}/man1/lz4_decompress.1* -%{_mandir}/man1/mysqlslap%{majorver}.1* -%{_mandir}/man1/zlib_decompress%{majorver}.1* - %if %{with ndb} %files ndb %defattr(644,root,root,755) -%attr(755,root,root) %{_sbindir}/ndbd%{majorver} +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/ndbd %attr(754,root,root) /etc/rc.d/init.d/%{name}-ndb %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb -%{_mandir}/man1/ndbd_redo_log_reader%{majorver}.1* -%{_mandir}/man8/ndbd%{majorver}.8* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndbd_redo_log_reader.1* +%{_datadir}/mysql/%{mysqlversion}/man/man8/ndbd.8* %files ndb-client %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/ndb_config%{majorver} -%attr(755,root,root) %{_bindir}/ndb_delete_all%{majorver} -%attr(755,root,root) %{_bindir}/ndb_desc%{majorver} -%attr(755,root,root) %{_bindir}/ndb_drop_index%{majorver} -%attr(755,root,root) %{_bindir}/ndb_drop_table%{majorver} -%attr(755,root,root) %{_bindir}/ndb_error_reporter%{majorver} -%attr(755,root,root) %{_bindir}/ndb_mgm%{majorver} -%attr(755,root,root) %{_bindir}/ndb_print_backup_file%{majorver} -%attr(755,root,root) %{_bindir}/ndb_print_schema_file%{majorver} -%attr(755,root,root) %{_bindir}/ndb_print_sys_file%{majorver} -%attr(755,root,root) %{_bindir}/ndb_restore%{majorver} -%attr(755,root,root) %{_bindir}/ndb_select_all%{majorver} -%attr(755,root,root) %{_bindir}/ndb_select_count%{majorver} -%attr(755,root,root) %{_bindir}/ndb_show_tables%{majorver} -%attr(755,root,root) %{_bindir}/ndb_size.pl%{majorver} -%attr(755,root,root) %{_bindir}/ndb_test_platform%{majorver} -%attr(755,root,root) %{_bindir}/ndb_waiter%{majorver} -%{_mandir}/man1/ndb_config%{majorver}.1* -%{_mandir}/man1/ndb_delete_all%{majorver}.1* -%{_mandir}/man1/ndb_desc%{majorver}.1* -%{_mandir}/man1/ndb_drop_index%{majorver}.1* -%{_mandir}/man1/ndb_drop_table%{majorver}.1* -%{_mandir}/man1/ndb_error_reporter%{majorver}.1* -%{_mandir}/man1/ndb_mgm%{majorver}.1* -%{_mandir}/man1/ndb_print_backup_file%{majorver}.1* -%{_mandir}/man1/ndb_print_schema_file%{majorver}.1* -%{_mandir}/man1/ndb_print_sys_file%{majorver}.1* -%{_mandir}/man1/ndb_restore%{majorver}.1* -%{_mandir}/man1/ndb_select_all%{majorver}.1* -%{_mandir}/man1/ndb_select_count%{majorver}.1* -%{_mandir}/man1/ndb_show_tables%{majorver}.1* -%{_mandir}/man1/ndb_size.pl%{majorver}.1* -%{_mandir}/man1/ndb_waiter%{majorver}.1* +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_config +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_delete_all +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_desc +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_index +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_drop_table +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_error_reporter +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_mgm +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_backup_file +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_schema_file +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_print_sys_file +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_restore +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_all +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_select_count +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_show_tables +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_size.pl +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_test_platform +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/ndb_waiter +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_config.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_delete_all.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_desc.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_drop_index.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_drop_table.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_error_reporter.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_mgm.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_backup_file.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_schema_file.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_print_sys_file.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_restore.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_select_all.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_select_count.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_show_tables.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_size.pl.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_waiter.1* %files ndb-mgm %defattr(644,root,root,755) -%attr(755,root,root) %{_sbindir}/ndb_mgmd%{majorver} +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_mgmd %attr(754,root,root) /etc/rc.d/init.d/%{name}-ndb-mgm %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm -%{_mandir}/man8/ndb_mgmd%{majorver}.8* +%{_datadir}/mysql/%{mysqlversion}/man/man8/ndb_mgmd.8* %files ndb-cpc %defattr(644,root,root,755) -%attr(755,root,root) %{_sbindir}/ndb_cpcd%{majorver} +%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/sbin/ndb_cpcd %attr(754,root,root) /etc/rc.d/init.d/%{name}-ndb-cpc %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc -%{_mandir}/man1/ndb_cpcd%{majorver}.1* +%{_datadir}/mysql/%{mysqlversion}/man/man1/ndb_cpcd.1* %endif