2 # - mysqldump ... (invalid usage) prints to stdout not stderr (idiotic if you want to create dump and get usage in .sql)
3 # - http://bugs.mysql.com/bug.php?id=16470
4 # - innodb are dynamic (= as plugins) ?
5 # - missing have_archive, have_merge
6 # - is plugin_dir lib64 safe?
7 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
8 # - !!! Makefiles for libmysqld.so !!!
9 # - segfaults on select from non-mysql user (caused by builder environment):
10 # https://bugs.launchpad.net/pld-linux/+bug/381904
11 # (profiling disabled temporaily to workaround this)
14 %bcond_without innodb # InnoDB storage engine support
15 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
16 %bcond_without federated # Federated storage engine support
17 %bcond_without raid # RAID support
18 %bcond_without ssl # OpenSSL support
19 %bcond_without systemtap # systemtap/dtrace probes
20 %bcond_without tcpd # libwrap (tcp_wrappers) support
21 %bcond_with sphinx # Sphinx storage engine support
22 # mysql needs boost 1.72.0 and doesn't support newer/older boost versions
23 %bcond_with system_boost
24 %bcond_without tests # run test suite
25 %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
26 %bcond_without ldap # LDAP auth support
28 Summary: MySQL: a very fast and reliable SQL database engine
29 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
30 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
31 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
32 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
33 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
34 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
35 Summary(zh_CN.UTF-8): MySQL数据库服务器
39 License: GPL v2 + MySQL FOSS License Exception
40 Group: Applications/Databases
41 #Source0Download: https://dev.mysql.com/downloads/mysql/8.0.html#downloads
42 Source0: http://cdn.mysql.com/Downloads/MySQL-8.0/%{name}-%{version}.tar.gz
43 # Source0-md5: 7a63ac9044f9a87adc2644fea310a513
44 Source100: http://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
45 # Source100-md5: 5cac34f3d78a9d612ca4301abfcbd666
46 %if %{without system_boost}
47 Source101: http://downloads.sourceforge.net/boost/boost_1_72_0.tar.bz2
48 # Source101-md5: cb40943d2a2cb8ce08d42bc48b0f84f0
51 Source2: %{name}.sysconfig
52 Source3: %{name}.logrotate
53 Source4: %{name}d.conf
54 Source5: %{name}-clusters.conf
55 Source7: %{name}-ndb.init
56 Source8: %{name}-ndb.sysconfig
57 Source9: %{name}-ndb-mgm.init
58 Source10: %{name}-ndb-mgm.sysconfig
59 Source11: %{name}-ndb-cpc.init
60 Source12: %{name}-ndb-cpc.sysconfig
61 Source13: %{name}-client.conf
63 Patch0: %{name}-opt.patch
65 Patch2: %{name}-protobuf.patch
67 Patch17: %{name}-5.7-sphinx.patch
68 Patch18: %{name}-sphinx.patch
69 Patch19: %{name}-chain-certs.patch
71 Patch24: %{name}-cmake.patch
72 Patch25: %{name}-readline.patch
74 Patch26: %{name}dumpslow-clusters.patch
75 URL: http://www.mysql.com/products/community/
76 BuildRequires: bison >= 1.875
77 %{?with_system_boost:BuildRequires: boost-devel >= 1.72.0}
78 BuildRequires: cmake >= 2.8.2
79 BuildRequires: libaio-devel
80 BuildRequires: libevent-devel
81 BuildRequires: libhsclient-devel
82 BuildRequires: libstdc++-devel >= 5:4.0
83 %{?with_tcpd:BuildRequires: libwrap-devel}
84 BuildRequires: lz4-devel
85 BuildRequires: mecab-devel
86 BuildRequires: ncurses-devel >= 4.2
87 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
88 %{?with_ldap:BuildRequires: openldap-devel}
89 BuildRequires: pam-devel
90 BuildRequires: perl-devel >= 1:5.6.1
91 BuildRequires: protobuf-devel >= 2.5
92 BuildRequires: python-modules
93 BuildRequires: readline-devel >= 6.2
94 BuildRequires: rpm-perlprov >= 4.1-13
95 BuildRequires: rpmbuild(macros) >= 1.597
96 BuildRequires: sed >= 4.0
97 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
98 BuildRequires: zlib-devel
99 Requires(post,preun): /sbin/chkconfig
100 Requires(postun): /usr/sbin/groupdel
101 Requires(postun): /usr/sbin/userdel
102 Requires(pre): /bin/id
103 Requires(pre): /usr/bin/getgid
104 Requires(pre): /usr/sbin/groupadd
105 Requires(pre): /usr/sbin/useradd
106 Requires(triggerpostun): sed >= 4.0
107 Requires: %{name}-charsets = %{version}-%{release}
108 Requires: %{name}-libs = %{version}-%{release}
109 Requires: /usr/bin/setsid
110 Requires: rc-scripts >= 0.2.0
111 Suggests: mysql-client
112 %{?with_tcpd:Suggests: tcp_wrappers}
113 Suggests: vim-syntax-mycnf
114 Provides: MySQL-server
115 Provides: group(mysql)
116 Provides: msqlormysql
117 Provides: user(mysql)
119 Obsoletes: mysql-server
120 Conflicts: logrotate < 3.8.0
121 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
123 %define _libexecdir %{_sbindir}
124 %define _localstatedir /var/lib/mysql
125 %define _mysqlhome /home/services/mysql
128 MySQL is a true multi-user, multi-threaded SQL (Structured Query
129 Language) database server. SQL is the most popular database language
130 in the world. MySQL is a client/server implementation that consists of
131 a server daemon mysqld and many different client programs/libraries.
133 The main goals of MySQL are speed, robustness and easy to use. MySQL
134 was originally developed because we at Tcx needed a SQL server that
135 could handle very big databases with magnitude higher speed than what
136 any database vendor could offer to us. We have now been using MySQL
137 since 1996 in a environment with more than 40 databases, 10,000
138 tables, of which more than 500 have more than 7 million rows. This is
139 about 50G of mission critical data.
141 The base upon which MySQL is built is a set of routines that have been
142 used in a highly demanding production environment for many years.
143 While MySQL is still in development, it already offers a rich and
144 highly useful function set.
146 %description -l fr.UTF-8
147 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
148 multi-taches. Le langage SQL est le langage de bases de donnees le
149 plus populaire au monde. MySQL est une implementation client/serveur
150 qui consiste en un serveur (mysqld) et differents
151 programmes/bibliotheques clientes.
153 Les objectifs principaux de MySQL sont: vitesse, robustesse et
154 facilite d'utilisation. MySQL fut originalement developpe parce que
155 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
156 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
157 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
158 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
159 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
160 millions de lignes. Ceci represente environ 50G de donnees critiques.
162 A la base de la conception de MySQL, on retrouve une serie de routines
163 qui ont ete utilisees dans un environnement de production pendant
164 plusieurs annees. Meme si MySQL est encore en developpement, il offre
165 deja une riche et utile serie de fonctions.
167 %description -l pl.UTF-8
168 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
169 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
170 danych. MySQL to implementacja klient/serwer składająca się z demona
171 mysqld i wielu różnych programów i bibliotek klienckich.
173 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
174 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
175 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
176 większą, niż mogli zaoferować inni producenci baz danych. Używają go
177 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
178 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
179 50GB krytycznych danych.
181 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
182 które były używane w bardzo wymagającym środowisku produkcyjnym przez
183 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
184 i użyteczny zbiór funkcji.
186 %description -l de.UTF-8
187 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
188 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
189 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
190 einem Primärschlüssel versehen werden. Es ist aber keine Definition
191 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
192 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
193 Daten verantwortlich. Allein durch die Nutzung externer
194 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
195 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
197 %description -l pt_BR.UTF-8
198 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
199 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
200 dados no mundo. O MySQL é uma implementação cliente/servidor que
201 consiste de um servidor chamado mysqld e diversos
202 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
203 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
204 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
205 pudesse lidar com grandes bases de dados e com uma velocidade muito
206 maior do que a que qualquer vendedor podia nos oferecer. Estamos
207 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
208 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
209 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
210 A base da construção do MySQL é uma série de rotinas que foram usadas
211 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
212 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
213 funções muito ricas e úteis. Veja a documentação para maiores
216 %description -l ru.UTF-8
217 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
218 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
219 дистрибутиве на предмет других участников проекта и прочей информации
222 %description -l uk.UTF-8
223 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
224 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
225 дистрибутиві для інформації про інших учасників проекту та іншої
229 Summary: MySQL - character sets definitions
230 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
231 Group: Applications/Databases
232 %if "%{_rpmversion}" >= "5"
236 %description charsets
237 This package contains character sets definitions needed by both client
240 %description charsets -l pl.UTF-8
241 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
245 Summary: MySQL additional utilities
246 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
247 Group: Applications/Databases
248 Requires: %{name}-client = %{version}-%{release}
249 Requires: %{name}-libs = %{version}-%{release}
252 MySQL additional utilities except Perl scripts (they may be found in
253 %{name}-extras-perl package).
255 %description extras -l pl.UTF-8
256 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
257 pakiecie %{name}-extras-perl).
260 Summary: MySQL additional utilities written in Perl
261 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
262 Group: Applications/Databases
263 Requires: %{name}-extras = %{version}-%{release}
264 Requires: perl-DBD-mysql
266 %description extras-perl
267 MySQL additional utilities written in Perl.
269 %description extras-perl -l pl.UTF-8
270 Dodatkowe narzędzia do MySQL napisane w Perlu.
273 Summary: MySQL - Client
274 Summary(pl.UTF-8): MySQL - Klient
275 Summary(pt.UTF-8): MySQL - Cliente
276 Summary(ru.UTF-8): MySQL клиент
277 Summary(uk.UTF-8): MySQL клієнт
278 Group: Applications/Databases
279 Requires: %{name}-charsets = %{version}-%{release}
280 Requires: %{name}-libs = %{version}-%{release}
281 Requires: readline >= 6.2
282 Obsoletes: MySQL-client
285 This package contains the standard MySQL clients.
287 %description client -l fr.UTF-8
288 Ce package contient les clients MySQL standards.
290 %description client -l pl.UTF-8
291 Standardowe programy klienckie MySQL.
293 %description client -l pt_BR.UTF-8
294 Este pacote contém os clientes padrão para o MySQL.
296 %description client -l ru.UTF-8
297 Этот пакет содержит только клиент MySQL.
299 %description client -l uk.UTF-8
300 Цей пакет містить тільки клієнта MySQL.
303 Summary: Shared libraries for MySQL
304 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
306 Obsoletes: libmysql10
307 Obsoletes: mysql-doc < 4.1.12
310 Shared libraries for MySQL.
312 %description libs -l pl.UTF-8
313 Biblioteki współdzielone MySQL.
316 Summary: MySQL - development header files and other files
317 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
318 Summary(pt.UTF-8): MySQL - Medições de desempenho
319 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
320 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
321 Group: Development/Libraries
322 Requires: %{name}-libs = %{version}-%{release}
323 %{?with_ssl:Requires: openssl-devel}
325 Obsoletes: MySQL-devel
326 Obsoletes: libmysql10-devel
327 Obsoletes: webscalesql-devel
330 This package contains the development header files and other files
331 necessary to develop MySQL client applications.
333 %description devel -l fr.UTF-8
334 Ce package contient les fichiers entetes et les librairies de
335 developpement necessaires pour developper des applications clientes
338 %description devel -l pl.UTF-8
339 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
342 %description devel -l pt_BR.UTF-8
343 Este pacote contém os arquivos de cabeçalho (header files) e
344 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
346 %description devel -l ru.UTF-8
347 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
348 разработки клиентских приложений.
350 %description devel -l uk.UTF-8
351 Цей пакет містить хедери та бібліотеки програміста, необхідні для
352 розробки програм-клієнтів.
355 Summary: MySQL static libraries
356 Summary(pl.UTF-8): Biblioteki statyczne MySQL
357 Summary(ru.UTF-8): MySQL - статические библиотеки
358 Summary(uk.UTF-8): MySQL - статичні бібліотеки
359 Group: Development/Libraries
360 Requires: %{name}-devel = %{version}-%{release}
361 Obsoletes: MySQL-static
364 MySQL static libraries.
366 %description static -l pl.UTF-8
367 Biblioteki statyczne MySQL.
369 %description static -l ru.UTF-8
370 Этот пакет содержит статические библиотеки разработчика, необходимые
371 для разработки клиентских приложений.
373 %description static -l uk.UTF-8
374 Цей пакет містить статичні бібліотеки програміста, необхідні для
375 розробки програм-клієнтів.
378 Summary: MySQL - Benchmarks
379 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
380 Summary(pt.UTF-8): MySQL - Medições de desempenho
381 Summary(ru.UTF-8): MySQL - бенчмарки
382 Summary(uk.UTF-8): MySQL - бенчмарки
383 Group: Applications/Databases
384 Requires: %{name} = %{version}-%{release}
385 Requires: %{name}-client
386 Requires: perl-DBD-mysql
387 Obsoletes: MySQL-bench
390 This package contains MySQL benchmark scripts and data.
392 %description bench -l pl.UTF-8
393 Programy testujące szybkość serwera MySQL.
395 %description bench -l pt_BR.UTF-8
396 Este pacote contém medições de desempenho de scripts e dados do MySQL.
398 %description bench -l ru.UTF-8
399 Этот пакет содержит скрипты и данные для оценки производительности
402 %description bench -l uk.UTF-8
403 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
406 Summary: MySQL manual
407 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
408 Group: Applications/Databases
411 This package contains manual in HTML format.
413 %description doc -l pl.UTF-8
414 Podręcznik MySQL-a w formacie HTML.
417 Summary: MySQL - NDB Storage Engine Daemon
418 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
419 Group: Applications/Databases
420 Requires: %{name}-libs = %{version}-%{release}
423 This package contains the standard MySQL NDB Storage Engine Daemon.
425 %description ndb -l pl.UTF-8
426 Ten pakiet zawiera standardowego demona silnika przechowywania danych
430 Summary: MySQL - NDB Clients
431 Summary(pl.UTF-8): MySQL - programy klienckie NDB
432 Group: Applications/Databases
433 Requires: %{name}-libs = %{version}-%{release}
435 %description ndb-client
436 This package contains the standard MySQL NDB Clients.
438 %description ndb-client -l pl.UTF-8
439 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
442 Summary: MySQL - NDB Management Daemon
443 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
444 Group: Applications/Databases
445 Requires: %{name}-libs = %{version}-%{release}
448 This package contains the standard MySQL NDB Management Daemon.
450 %description ndb-mgm -l pl.UTF-8
451 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
454 Summary: MySQL - NDB CPC Daemon
455 Summary(pl.UTF-8): MySQL - demon NDB CPC
456 Group: Applications/Databases
457 Requires: %{name}-libs = %{version}-%{release}
460 This package contains the standard MySQL NDB CPC Daemon.
462 %description ndb-cpc -l pl.UTF-8
463 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
466 %setup -q %{?with_sphinx:-a100} %{!?with_system_boost:-a101}
473 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
474 %{__mv} sphinx-*/mysqlse storage/sphinx
479 # really not fixed? verify
487 # to get these files rebuild
488 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
489 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
492 # need to keep xxhash.[ch]
493 %{__rm} -rv extra/lz4/lz4**
498 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
499 # (it defaults to first cluster but user may change it to whatever
502 CPPFLAGS="%{rpmcppflags}" \
504 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
505 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
506 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
507 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
508 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
509 %{?with_systemtap:-DENABLE_DTRACE=ON} \
510 -DFEATURE_SET="community" \
511 -DINSTALL_LAYOUT=RPM \
512 -DINSTALL_LIBDIR=%{_lib} \
513 -DINSTALL_MYSQLTESTDIR_RPM="" \
514 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
515 -DINSTALL_SQLBENCHDIR=%{_datadir} \
516 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
517 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
518 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
519 %{?debug:-DWITH_DEBUG=ON} \
520 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
521 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
522 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
525 -DWITH_LIBEVENT=system \
526 -DWITH_PROTOBUF=system \
527 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
528 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
529 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
531 -DWITH_EDITLINE=system \
532 -DWITH_MECAB=system \
537 %{?with_tests:%{__make} test}
540 rm -rf $RPM_BUILD_ROOT
541 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
542 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
543 $RPM_BUILD_ROOT%{_mysqlhome} \
544 $RPM_BUILD_ROOT%{_libdir}
546 %{__make} -C build install \
547 DESTDIR=$RPM_BUILD_ROOT
549 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
550 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
551 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
552 # This is template for configuration file which is created after 'service mysql init'
553 cp -a %{SOURCE4} mysqld.conf
554 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
555 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
557 # remove innodb directives from mysqld.conf if mysqld is configured without
558 %if %{without innodb}
559 cp mysqld.conf mysqld.tmp
560 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
563 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
564 cp mysqld.conf mysqld.tmp
565 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
567 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
568 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
569 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
570 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
574 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
575 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
576 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
577 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
578 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
579 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
582 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
583 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
584 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
586 # remove known unpackaged files
587 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
589 # rename not to be so generic name
591 # not useful without -debug build
592 # generate symbols file, so one can generate backtrace using it
593 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
594 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
595 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
597 # do not clobber users $PATH
598 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
599 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
600 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
601 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
602 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
603 #%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
604 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
605 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
607 # delete - functionality in initscript / rpm
608 # note: mysql_install_db (and thus resolveip) are needed by digikam
609 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
610 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
611 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
612 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
613 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
614 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
615 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
616 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
617 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
619 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
620 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
621 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/test_udf_services.so
622 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
625 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
626 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
629 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
630 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
631 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
634 rm -rf $RPM_BUILD_ROOT
637 %groupadd -g 89 mysql
638 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
642 /sbin/chkconfig --add mysql
643 %service mysql restart
646 if [ "$1" = "0" ]; then
647 %service -q mysql stop
648 /sbin/chkconfig --del mysql
653 if [ "$1" = "0" ]; then
659 /sbin/chkconfig --add mysql-ndb
660 %service mysql-ndb restart "mysql NDB engine"
663 if [ "$1" = "0" ]; then
664 %service mysql-ndb stop
665 /sbin/chkconfig --del mysql-ndb
669 /sbin/chkconfig --add mysql-ndb-mgm
670 %service mysql-ndb-mgm restart "mysql NDB management node"
673 if [ "$1" = "0" ]; then
674 %service mysql-ndb-mgm stop
675 /sbin/chkconfig --del mysql-ndb-mgm
679 /sbin/chkconfig --add mysql-ndb-cpc
680 %service mysql-ndb-cpc restart "mysql NDB CPC"
683 if [ "$1" = "0" ]; then
684 %service mysql-ndb-cpc stop
685 /sbin/chkconfig --del mysql-ndb-cpc
688 %post libs -p /sbin/ldconfig
689 %postun libs -p /sbin/ldconfig
691 %triggerpostun -- mysql < 4.0.20-2.4
692 # For clusters in /etc/%{name}/clusters.conf
693 if [ -f /etc/sysconfig/mysql ]; then
694 . /etc/sysconfig/mysql
695 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
696 for i in "$MYSQL_DB_CLUSTERS"; do
697 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
699 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
700 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
701 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
702 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
706 %triggerpostun -- mysql < 4.1.1
707 # For better compatibility with prevoius versions:
708 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
709 if echo "$config" | grep -q '^/'; then
710 config_file="$config"
711 elif [ -f "/etc/%{name}/$config" ]; then
712 config_file=/etc/%{name}/$config
714 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
715 if [ -z "$clusterdir" ]; then
716 echo >&2 "Can't find cluster dir for $config!"
717 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
720 config_file="$clusterdir/mysqld.conf"
723 if [ ! -f "$config_file" ]; then
724 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
727 echo "Adding option old-passwords to config: $config_file"
728 echo "If you want to use new, better passwords - remove it"
730 # sed magic to add 'old-passwords' to [mysqld] section
731 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
733 a; Compatibility options:
739 %banner -e %{name}-4.1.x <<-EOF
740 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
741 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
745 %triggerpostun -- mysql < 5.1.0
747 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
748 if echo "$config" | grep -q '^/'; then
749 config_file="$config"
750 elif [ -f "/etc/%{name}/$config" ]; then
751 config_file=/etc/%{name}/$config
753 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
754 if [ -z "$clusterdir" ]; then
755 echo >&2 "Can't find cluster dir for $config!"
756 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
759 config_file="$clusterdir/mysqld.conf"
762 if [ ! -f "$config_file" ]; then
763 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
766 configs="$configs $config_file"
770 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
771 echo 'Thus, you should invoke:'
772 for config in $configs; do
774 s/set-variable\s*=\s* //
775 # use # as comment in config
779 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
780 echo "# mysql_upgrade --datadir=$datadir"
782 ) | %banner -e %{name}-5.1
784 %triggerpostun -- mysql < 5.5.0
786 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
787 if echo "$config" | grep -q '^/'; then
788 config_file="$config"
789 elif [ -f "/etc/%{name}/$config" ]; then
790 config_file=/etc/%{name}/$config
792 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
793 if [ -z "$clusterdir" ]; then
794 echo >&2 "Can't find cluster dir for $config!"
795 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
798 config_file="$clusterdir/mysqld.conf"
801 if [ ! -f "$config_file" ]; then
802 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
805 configs="$configs $config_file"
809 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
810 echo 'Thus, you should invoke:'
811 for config in $configs; do
813 s/^language *= *polish/lc-messages = pl_PL/i
814 s/set-variable\s*=\s* //
815 s/^skip-locking/skip-external-locking/
816 # this is not valid for server. it is client option
817 s/^default-character-set/# client-config: &/
818 # use # as comment in config
822 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
823 echo "# mysql_upgrade ${socket:+--socket=$socket}"
825 ) | %banner -e %{name}-5.5
827 %triggerpostun -- mysql < 5.7.0
829 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
830 if echo "$config" | grep -q '^/'; then
831 config_file="$config"
832 elif [ -f "/etc/%{name}/$config" ]; then
833 config_file=/etc/%{name}/$config
835 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
836 if [ -z "$clusterdir" ]; then
837 echo >&2 "Can't find cluster dir for $config!"
838 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
841 config_file="$clusterdir/mysqld.conf"
844 if [ ! -f "$config_file" ]; then
845 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
848 configs="$configs $config_file"
852 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
853 echo 'Thus, you should invoke:'
854 for config in $configs; do
856 s/^log-warnings *=/log-error-verbosity =/
857 s/^myisam-recover$/myisam-recover-options/
858 s/^innodb_mirrored_log_groups.*//
861 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
862 echo "# mysql_upgrade ${socket:+--socket=$socket}"
864 ) | %banner -e %{name}-5.7
867 %defattr(644,root,root,755)
868 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
869 %attr(754,root,root) /etc/rc.d/init.d/%{name}
870 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
871 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
872 %attr(755,root,root) %{_sbindir}/innochecksum
873 %attr(755,root,root) %{_sbindir}/my_print_defaults
874 %attr(755,root,root) %{_sbindir}/myisamchk
875 %attr(755,root,root) %{_sbindir}/myisamlog
876 %attr(755,root,root) %{_sbindir}/myisampack
877 %attr(755,root,root) %{_sbindir}/mysql_upgrade
878 %attr(755,root,root) %{_sbindir}/mysqlcheck
879 %attr(755,root,root) %{_sbindir}/mysqld
881 %dir %{_libdir}/%{name}
882 %dir %{_libdir}/%{name}/plugin
883 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
884 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
885 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
886 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
887 %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
888 %attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
889 %attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
890 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
891 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
892 %attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
893 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
894 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
899 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
900 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
901 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
902 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
903 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
904 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
906 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
908 %{_mandir}/man1/innochecksum.1*
909 %{_mandir}/man1/my_print_defaults.1*
910 %{_mandir}/man1/myisamchk.1*
911 %{_mandir}/man1/myisamlog.1*
912 %{_mandir}/man1/myisampack.1*
913 %{_mandir}/man1/mysql_upgrade.1*
914 %{_mandir}/man1/mysqlcheck.1*
915 %{_mandir}/man8/mysqld.8*
918 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
919 %{_datadir}/%{name}/mysqld.sym
920 %{_mandir}/man1/*resolve_stack_dump.1*
923 %attr(700,mysql,mysql) %{_mysqlhome}
924 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
925 %attr(751,root,root) /var/lib/mysql
926 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
927 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
928 %attr(750,mysql,mysql) %dir /var/log/mysql
929 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
930 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
932 # This is template for configuration file which is created after 'service mysql init'
933 %{_datadir}/%{name}/mysqld.conf
935 %{_datadir}/%{name}/english
936 %{_datadir}/%{name}/dictionary.txt
937 %{_datadir}/%{name}/innodb_memcached_config.sql
938 %{_datadir}/%{name}/install_rewriter.sql
939 %{_datadir}/%{name}/uninstall_rewriter.sql
940 # Don't mark these with %%lang. These are used depending
941 # on database client settings.
942 %{_datadir}/%{name}/bulgarian
943 %{_datadir}/%{name}/czech
944 %{_datadir}/%{name}/danish
945 %{_datadir}/%{name}/german
946 %{_datadir}/%{name}/greek
947 %{_datadir}/%{name}/spanish
948 %{_datadir}/%{name}/estonian
949 %{_datadir}/%{name}/french
950 %{_datadir}/%{name}/hungarian
951 %{_datadir}/%{name}/italian
952 %{_datadir}/%{name}/japanese
953 %{_datadir}/%{name}/korean
954 %{_datadir}/%{name}/dutch
955 %{_datadir}/%{name}/norwegian
956 %{_datadir}/%{name}/norwegian-ny
957 %{_datadir}/%{name}/polish
958 %{_datadir}/%{name}/portuguese
959 %{_datadir}/%{name}/romanian
960 %{_datadir}/%{name}/russian
961 %{_datadir}/%{name}/serbian
962 %{_datadir}/%{name}/slovak
963 %{_datadir}/%{name}/swedish
964 %{_datadir}/%{name}/ukrainian
967 %defattr(644,root,root,755)
968 %dir %{_datadir}/%{name}
969 %{_datadir}/%{name}/charsets
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{_bindir}/myisam_ftdump
974 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
975 %attr(755,root,root) %{_bindir}/mysql_secure_installation
976 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
977 %attr(755,root,root) %{_bindir}/perror
978 %{_mandir}/man1/myisam_ftdump.1*
979 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
980 %{_mandir}/man1/mysql_secure_installation.1*
981 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
982 %{_mandir}/man1/perror.1*
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_bindir}/mysqldumpslow
987 %{_mandir}/man1/mysqldumpslow.1*
990 %defattr(644,root,root,755)
991 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
992 %attr(755,root,root) %{_bindir}/mysql
993 %attr(755,root,root) %{_bindir}/mysqladmin
994 %attr(755,root,root) %{_bindir}/mysqlbinlog
995 %attr(755,root,root) %{_bindir}/mysql_config_editor
996 %attr(755,root,root) %{_bindir}/mysqldump
997 %attr(755,root,root) %{_bindir}/mysqlimport
998 %attr(755,root,root) %{_bindir}/mysqlpump
999 %attr(755,root,root) %{_bindir}/mysqlshow
1000 %{_mandir}/man1/mysql.1*
1001 %{_mandir}/man1/mysqladmin.1*
1002 %{_mandir}/man1/mysqlbinlog.1*
1003 %{_mandir}/man1/mysql_config_editor.1*
1004 %{_mandir}/man1/mysqldump.1*
1005 %{_mandir}/man1/mysqlimport.1*
1006 %{_mandir}/man1/mysqlpump.1*
1007 %{_mandir}/man1/mysqlshow.1*
1010 %defattr(644,root,root,755)
1011 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1012 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1013 %{_sysconfdir}/%{name}/my.cnf
1014 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1015 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.21
1017 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1018 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_bindir}/mysql_config
1024 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1026 %attr(755,root,root) %{_libdir}/libndbclient.so
1028 %{_pkgconfigdir}/mysqlclient.pc
1029 %{_libdir}/libmysqlservices.a
1030 %{_includedir}/mysql
1031 %{_aclocaldir}/mysql.m4
1032 %{_mandir}/man1/mysql_config.1*
1035 %defattr(644,root,root,755)
1036 %{_libdir}/libmysqlclient.a
1038 %{_libdir}/libndbclient.a
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/mysqlslap
1044 %attr(755,root,root) %{_bindir}/mysqltest
1045 #%dir %{_datadir}/sql-bench
1046 #%{_datadir}/sql-bench/[CDRl]*
1047 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1048 %{_mandir}/man1/mysqlslap.1*
1051 #%defattr(644,root,root,755)
1052 #%doc Docs/manual.html Docs/manual_toc.html
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_sbindir}/ndbd
1058 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1059 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1060 %{_mandir}/man1/ndbd_redo_log_reader.1*
1061 %{_mandir}/man8/ndbd.8*
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/ndb_config
1066 %attr(755,root,root) %{_bindir}/ndb_delete_all
1067 %attr(755,root,root) %{_bindir}/ndb_desc
1068 %attr(755,root,root) %{_bindir}/ndb_drop_index
1069 %attr(755,root,root) %{_bindir}/ndb_drop_table
1070 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1071 %attr(755,root,root) %{_bindir}/ndb_mgm
1072 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1073 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1074 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1075 %attr(755,root,root) %{_bindir}/ndb_restore
1076 %attr(755,root,root) %{_bindir}/ndb_select_all
1077 %attr(755,root,root) %{_bindir}/ndb_select_count
1078 %attr(755,root,root) %{_bindir}/ndb_show_tables
1079 %attr(755,root,root) %{_bindir}/ndb_size.pl
1080 %attr(755,root,root) %{_bindir}/ndb_test_platform
1081 %attr(755,root,root) %{_bindir}/ndb_waiter
1082 %{_mandir}/man1/ndb_config.1*
1083 %{_mandir}/man1/ndb_delete_all.1*
1084 %{_mandir}/man1/ndb_desc.1*
1085 %{_mandir}/man1/ndb_drop_index.1*
1086 %{_mandir}/man1/ndb_drop_table.1*
1087 %{_mandir}/man1/ndb_error_reporter.1*
1088 %{_mandir}/man1/ndb_mgm.1*
1089 %{_mandir}/man1/ndb_print_backup_file.1*
1090 %{_mandir}/man1/ndb_print_schema_file.1*
1091 %{_mandir}/man1/ndb_print_sys_file.1*
1092 %{_mandir}/man1/ndb_restore.1*
1093 %{_mandir}/man1/ndb_select_all.1*
1094 %{_mandir}/man1/ndb_select_count.1*
1095 %{_mandir}/man1/ndb_show_tables.1*
1096 %{_mandir}/man1/ndb_size.pl.1*
1097 %{_mandir}/man1/ndb_waiter.1*
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1102 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1103 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1104 %{_mandir}/man8/ndb_mgmd.8*
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1109 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1110 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1111 %{_mandir}/man1/ndb_cpcd.1*