@@ -188,6 +188,8 @@ mkdir release
188188 %{?mecab_option} \
189189%if 0%{?cluster}
190190 -DWITH_NDBCLUSTER=1 \
191+ -DWITH_MCC=0 \
192+ -DNDB_UTILS_LINK_DYNAMIC=1 \
191193%endif
192194%if 0%{?commercial}
193195 -DWITH_MEB=%{with_meb} \
@@ -234,11 +236,10 @@ for f in innochecksum ibd2sdi myisamchk myisam_ftdump myisamlog myisampack \
234236done
235237
236238%if 0%{?cluster}
237- for f in mcc_config.py ndb_blob_tool ndb_config ndb_delete_all ndb_desc ndb_drop_index \
238- ndb_drop_table ndb_error_reporter ndb_import ndb_index_stat ndb_move_data \
239+ for f in mcc_config.py ndb_error_reporter ndb_move_data \
239240 ndb_perror ndb_print_backup_file ndb_print_file ndb_print_frag_file \
240- ndb_print_schema_file ndb_print_sys_file ndb_redo_log_reader ndb_restore ndb_select_all \
241- ndb_select_count ndb_setup.py ndb_show_tables ndb_size.pl ndbinfo_select_all ndb_waiter ; do
241+ ndb_print_schema_file ndb_print_sys_file \
242+ ndb_setup.py ndb_size.pl ; do
242243 rm -f %{buildroot}%{_bindir}/$f
243244done
244245%endif
@@ -316,10 +317,14 @@ rm -f %{buildroot}%{_datadir}/mysql-*/{mysql.server,mysqld_multi.server,mysql-lo
316317%if 0%{?cluster}
317318rm -rf %{buildroot}/usr/share/mysql-*/mcc
318319rm -f %{buildroot}/lib/memcached_path.pl
319- rm -f %{buildroot}/%{_libdir}/mysql/libndbclient*
320320rm -f %{buildroot}/%{_bindir}/memclient
321321rm -rf %{buildroot}%{_datadir}/mysql-*/nodejs/
322322rm -rf %{buildroot}%{_datadir}/mysql-*/java/
323+ rm -rf %{buildroot}%{_sbindir}/memcached
324+ rm -rf %{buildroot}%{_libdir}/mysql/ndb_engine.so
325+ rm -rf %{buildroot}%{_datadir}/mysql-*/memcache-api/
326+ rm -rf %{buildroot}%{_libdir}/mysql/libndbclient_static.a
327+ rm -rf %{buildroot}%{_libdir}/mysql/libndbclient.so
323328%endif
324329
325330# Remove files pages we explicitly do not want to package
@@ -361,15 +366,28 @@ rm -r $(readlink var) var
361366%dir %{_sysconfdir}/my.cnf.d
362367
363368%if 0%{?cluster}
369+ %attr(755, root, root) %{_bindir}/ndb_blob_tool
370+ %attr(755, root, root) %{_bindir}/ndb_config
371+ %attr(755, root, root) %{_bindir}/ndb_delete_all
372+ %attr(755, root, root) %{_bindir}/ndb_desc
373+ %attr(755, root, root) %{_bindir}/ndb_drop_index
374+ %attr(755, root, root) %{_bindir}/ndb_drop_table
375+ %attr(755, root, root) %{_bindir}/ndb_import
376+ %attr(755, root, root) %{_bindir}/ndb_index_stat
377+ %attr(755, root, root) %{_bindir}/ndb_redo_log_reader
378+ %attr(755, root, root) %{_bindir}/ndb_restore
379+ %attr(755, root, root) %{_bindir}/ndb_select_all
380+ %attr(755, root, root) %{_bindir}/ndb_select_count
381+ %attr(755, root, root) %{_bindir}/ndb_show_tables
382+ %attr(755, root, root) %{_bindir}/ndbinfo_select_all
383+ %attr(755, root, root) %{_bindir}/ndb_waiter
364384%attr(755, root, root) %{_bindir}/ndb_mgm
365385%attr(755, root, root) %{_bindir}/ndb_top
366386%attr(755, root, root) %{_bindir}/ndbxfrm
367387%attr(755, root, root) %{_sbindir}/ndb_mgmd
368388%attr(755, root, root) %{_sbindir}/ndbd
369389%attr(755, root, root) %{_sbindir}/ndbmtd
370- %attr(755, root, root) %{_sbindir}/memcached
371- %attr(755, root, root) %{_libdir}/mysql/ndb_engine.so
372- %{_datadir}/mysql-*/memcache-api/
390+ %attr(755, root, root) %{_libdir}/mysql/libndbclient.so.6.1.0
373391%endif
374392
375393%attr(755, root, root) %{_sbindir}/mysqld
0 commit comments