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 Patch17: %{name}-5.7-sphinx.patch
66 Patch18: %{name}-sphinx.patch
67 Patch19: %{name}-chain-certs.patch
69 Patch24: %{name}-cmake.patch
70 Patch25: %{name}-readline.patch
72 Patch26: %{name}dumpslow-clusters.patch
73 URL: http://www.mysql.com/products/community/
74 BuildRequires: bison >= 1.875
75 %{?with_system_boost:BuildRequires: boost-devel >= 1.72.0}
76 BuildRequires: cmake >= 2.8.2
77 BuildRequires: libaio-devel
78 BuildRequires: libevent-devel
79 BuildRequires: libhsclient-devel
80 BuildRequires: libstdc++-devel >= 5:4.0
81 %{?with_tcpd:BuildRequires: libwrap-devel}
82 BuildRequires: lz4-devel
83 BuildRequires: mecab-devel
84 BuildRequires: ncurses-devel >= 4.2
85 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
86 %{?with_ldap:BuildRequires: openldap-devel}
87 BuildRequires: pam-devel
88 BuildRequires: perl-devel >= 1:5.6.1
89 BuildRequires: protobuf-devel >= 2.5
90 BuildRequires: python-modules
91 BuildRequires: readline-devel >= 6.2
92 BuildRequires: rpcsvc-proto
93 BuildRequires: rpm-perlprov >= 4.1-13
94 BuildRequires: rpmbuild(macros) >= 1.597
95 BuildRequires: sed >= 4.0
96 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
97 BuildRequires: zlib-devel
98 Requires(post,preun): /sbin/chkconfig
99 Requires(postun): /usr/sbin/groupdel
100 Requires(postun): /usr/sbin/userdel
101 Requires(pre): /bin/id
102 Requires(pre): /usr/bin/getgid
103 Requires(pre): /usr/sbin/groupadd
104 Requires(pre): /usr/sbin/useradd
105 Requires(triggerpostun): sed >= 4.0
106 Requires: %{name}-charsets = %{version}-%{release}
107 Requires: %{name}-libs = %{version}-%{release}
108 Requires: /usr/bin/setsid
109 Requires: rc-scripts >= 0.2.0
110 Suggests: mysql-client
111 %{?with_tcpd:Suggests: tcp_wrappers}
112 Suggests: vim-syntax-mycnf
113 Provides: MySQL-server
114 Provides: group(mysql)
115 Provides: msqlormysql
116 Provides: user(mysql)
118 Obsoletes: mysql-server
119 Conflicts: logrotate < 3.8.0
120 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
122 %define _libexecdir %{_sbindir}
123 %define _localstatedir /var/lib/mysql
124 %define _mysqlhome /home/services/mysql
127 MySQL is a true multi-user, multi-threaded SQL (Structured Query
128 Language) database server. SQL is the most popular database language
129 in the world. MySQL is a client/server implementation that consists of
130 a server daemon mysqld and many different client programs/libraries.
132 The main goals of MySQL are speed, robustness and easy to use. MySQL
133 was originally developed because we at Tcx needed a SQL server that
134 could handle very big databases with magnitude higher speed than what
135 any database vendor could offer to us. We have now been using MySQL
136 since 1996 in a environment with more than 40 databases, 10,000
137 tables, of which more than 500 have more than 7 million rows. This is
138 about 50G of mission critical data.
140 The base upon which MySQL is built is a set of routines that have been
141 used in a highly demanding production environment for many years.
142 While MySQL is still in development, it already offers a rich and
143 highly useful function set.
145 %description -l fr.UTF-8
146 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
147 multi-taches. Le langage SQL est le langage de bases de donnees le
148 plus populaire au monde. MySQL est une implementation client/serveur
149 qui consiste en un serveur (mysqld) et differents
150 programmes/bibliotheques clientes.
152 Les objectifs principaux de MySQL sont: vitesse, robustesse et
153 facilite d'utilisation. MySQL fut originalement developpe parce que
154 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
155 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
156 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
157 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
158 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
159 millions de lignes. Ceci represente environ 50G de donnees critiques.
161 A la base de la conception de MySQL, on retrouve une serie de routines
162 qui ont ete utilisees dans un environnement de production pendant
163 plusieurs annees. Meme si MySQL est encore en developpement, il offre
164 deja une riche et utile serie de fonctions.
166 %description -l pl.UTF-8
167 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
168 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
169 danych. MySQL to implementacja klient/serwer składająca się z demona
170 mysqld i wielu różnych programów i bibliotek klienckich.
172 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
173 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
174 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
175 większą, niż mogli zaoferować inni producenci baz danych. Używają go
176 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
177 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
178 50GB krytycznych danych.
180 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
181 które były używane w bardzo wymagającym środowisku produkcyjnym przez
182 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
183 i użyteczny zbiór funkcji.
185 %description -l de.UTF-8
186 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
187 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
188 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
189 einem Primärschlüssel versehen werden. Es ist aber keine Definition
190 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
191 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
192 Daten verantwortlich. Allein durch die Nutzung externer
193 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
194 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
196 %description -l pt_BR.UTF-8
197 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
198 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
199 dados no mundo. O MySQL é uma implementação cliente/servidor que
200 consiste de um servidor chamado mysqld e diversos
201 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
202 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
203 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
204 pudesse lidar com grandes bases de dados e com uma velocidade muito
205 maior do que a que qualquer vendedor podia nos oferecer. Estamos
206 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
207 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
208 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
209 A base da construção do MySQL é uma série de rotinas que foram usadas
210 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
211 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
212 funções muito ricas e úteis. Veja a documentação para maiores
215 %description -l ru.UTF-8
216 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
217 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
218 дистрибутиве на предмет других участников проекта и прочей информации
221 %description -l uk.UTF-8
222 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
223 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
224 дистрибутиві для інформації про інших учасників проекту та іншої
228 Summary: MySQL - character sets definitions
229 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
230 Group: Applications/Databases
233 %description charsets
234 This package contains character sets definitions needed by both client
237 %description charsets -l pl.UTF-8
238 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
242 Summary: MySQL additional utilities
243 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
244 Group: Applications/Databases
245 Requires: %{name}-client = %{version}-%{release}
246 Requires: %{name}-libs = %{version}-%{release}
249 MySQL additional utilities except Perl scripts (they may be found in
250 %{name}-extras-perl package).
252 %description extras -l pl.UTF-8
253 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
254 pakiecie %{name}-extras-perl).
257 Summary: MySQL additional utilities written in Perl
258 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
259 Group: Applications/Databases
260 Requires: %{name}-extras = %{version}-%{release}
261 Requires: perl-DBD-mysql
263 %description extras-perl
264 MySQL additional utilities written in Perl.
266 %description extras-perl -l pl.UTF-8
267 Dodatkowe narzędzia do MySQL napisane w Perlu.
270 Summary: MySQL - Client
271 Summary(pl.UTF-8): MySQL - Klient
272 Summary(pt.UTF-8): MySQL - Cliente
273 Summary(ru.UTF-8): MySQL клиент
274 Summary(uk.UTF-8): MySQL клієнт
275 Group: Applications/Databases
276 Requires: %{name}-charsets = %{version}-%{release}
277 Requires: %{name}-libs = %{version}-%{release}
278 Requires: readline >= 6.2
279 Obsoletes: MySQL-client
282 This package contains the standard MySQL clients.
284 %description client -l fr.UTF-8
285 Ce package contient les clients MySQL standards.
287 %description client -l pl.UTF-8
288 Standardowe programy klienckie MySQL.
290 %description client -l pt_BR.UTF-8
291 Este pacote contém os clientes padrão para o MySQL.
293 %description client -l ru.UTF-8
294 Этот пакет содержит только клиент MySQL.
296 %description client -l uk.UTF-8
297 Цей пакет містить тільки клієнта MySQL.
300 Summary: Shared libraries for MySQL
301 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
303 Obsoletes: libmysql10
304 Obsoletes: mysql-doc < 4.1.12
307 Shared libraries for MySQL.
309 %description libs -l pl.UTF-8
310 Biblioteki współdzielone MySQL.
313 Summary: MySQL - development header files and other files
314 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
315 Summary(pt.UTF-8): MySQL - Medições de desempenho
316 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
317 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
318 Group: Development/Libraries
319 Requires: %{name}-libs = %{version}-%{release}
320 %{?with_ssl:Requires: openssl-devel}
322 Obsoletes: MySQL-devel
323 Obsoletes: libmysql10-devel
324 Obsoletes: webscalesql-devel
327 This package contains the development header files and other files
328 necessary to develop MySQL client applications.
330 %description devel -l fr.UTF-8
331 Ce package contient les fichiers entetes et les librairies de
332 developpement necessaires pour developper des applications clientes
335 %description devel -l pl.UTF-8
336 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
339 %description devel -l pt_BR.UTF-8
340 Este pacote contém os arquivos de cabeçalho (header files) e
341 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
343 %description devel -l ru.UTF-8
344 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
345 разработки клиентских приложений.
347 %description devel -l uk.UTF-8
348 Цей пакет містить хедери та бібліотеки програміста, необхідні для
349 розробки програм-клієнтів.
352 Summary: MySQL static libraries
353 Summary(pl.UTF-8): Biblioteki statyczne MySQL
354 Summary(ru.UTF-8): MySQL - статические библиотеки
355 Summary(uk.UTF-8): MySQL - статичні бібліотеки
356 Group: Development/Libraries
357 Requires: %{name}-devel = %{version}-%{release}
358 Obsoletes: MySQL-static
361 MySQL static libraries.
363 %description static -l pl.UTF-8
364 Biblioteki statyczne MySQL.
366 %description static -l ru.UTF-8
367 Этот пакет содержит статические библиотеки разработчика, необходимые
368 для разработки клиентских приложений.
370 %description static -l uk.UTF-8
371 Цей пакет містить статичні бібліотеки програміста, необхідні для
372 розробки програм-клієнтів.
375 Summary: MySQL - Benchmarks
376 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
377 Summary(pt.UTF-8): MySQL - Medições de desempenho
378 Summary(ru.UTF-8): MySQL - бенчмарки
379 Summary(uk.UTF-8): MySQL - бенчмарки
380 Group: Applications/Databases
381 Requires: %{name} = %{version}-%{release}
382 Requires: %{name}-client
383 Requires: perl-DBD-mysql
384 Obsoletes: MySQL-bench
387 This package contains MySQL benchmark scripts and data.
389 %description bench -l pl.UTF-8
390 Programy testujące szybkość serwera MySQL.
392 %description bench -l pt_BR.UTF-8
393 Este pacote contém medições de desempenho de scripts e dados do MySQL.
395 %description bench -l ru.UTF-8
396 Этот пакет содержит скрипты и данные для оценки производительности
399 %description bench -l uk.UTF-8
400 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
403 Summary: MySQL manual
404 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
405 Group: Applications/Databases
408 This package contains manual in HTML format.
410 %description doc -l pl.UTF-8
411 Podręcznik MySQL-a w formacie HTML.
414 Summary: MySQL - NDB Storage Engine Daemon
415 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
416 Group: Applications/Databases
417 Requires: %{name}-libs = %{version}-%{release}
420 This package contains the standard MySQL NDB Storage Engine Daemon.
422 %description ndb -l pl.UTF-8
423 Ten pakiet zawiera standardowego demona silnika przechowywania danych
427 Summary: MySQL - NDB Clients
428 Summary(pl.UTF-8): MySQL - programy klienckie NDB
429 Group: Applications/Databases
430 Requires: %{name}-libs = %{version}-%{release}
432 %description ndb-client
433 This package contains the standard MySQL NDB Clients.
435 %description ndb-client -l pl.UTF-8
436 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
439 Summary: MySQL - NDB Management Daemon
440 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
441 Group: Applications/Databases
442 Requires: %{name}-libs = %{version}-%{release}
445 This package contains the standard MySQL NDB Management Daemon.
447 %description ndb-mgm -l pl.UTF-8
448 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
451 Summary: MySQL - NDB CPC Daemon
452 Summary(pl.UTF-8): MySQL - demon NDB CPC
453 Group: Applications/Databases
454 Requires: %{name}-libs = %{version}-%{release}
457 This package contains the standard MySQL NDB CPC Daemon.
459 %description ndb-cpc -l pl.UTF-8
460 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
463 %setup -q %{?with_sphinx:-a100} %{!?with_system_boost:-a101}
468 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
469 %{__mv} sphinx-*/mysqlse storage/sphinx
474 # really not fixed? verify
482 # to get these files rebuild
483 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
484 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
487 # need to keep xxhash.[ch]
488 %{__rm} -rv extra/lz4/lz4**
493 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
494 # (it defaults to first cluster but user may change it to whatever
497 CPPFLAGS="%{rpmcppflags}" \
499 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
500 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
501 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
502 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
503 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
504 %{?with_systemtap:-DENABLE_DTRACE=ON} \
505 -DFEATURE_SET="community" \
506 -DINSTALL_LAYOUT=RPM \
507 -DINSTALL_LIBDIR=%{_lib} \
508 -DINSTALL_MYSQLTESTDIR_RPM="" \
509 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
510 -DINSTALL_SQLBENCHDIR=%{_datadir} \
511 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
512 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
513 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
514 %{?debug:-DWITH_DEBUG=ON} \
515 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
516 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
517 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
520 -DWITH_LIBEVENT=system \
521 -DWITH_PROTOBUF=system \
522 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
523 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
524 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
526 -DWITH_EDITLINE=system \
527 -DWITH_MECAB=system \
532 %{?with_tests:%{__make} test}
535 rm -rf $RPM_BUILD_ROOT
536 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
537 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
538 $RPM_BUILD_ROOT%{_mysqlhome} \
539 $RPM_BUILD_ROOT%{_libdir}
541 %{__make} -C build install \
542 DESTDIR=$RPM_BUILD_ROOT
544 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
545 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
546 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
547 # This is template for configuration file which is created after 'service mysql init'
548 cp -a %{SOURCE4} mysqld.conf
549 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
550 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
552 # remove innodb directives from mysqld.conf if mysqld is configured without
553 %if %{without innodb}
554 cp mysqld.conf mysqld.tmp
555 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
558 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
559 cp mysqld.conf mysqld.tmp
560 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
562 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
563 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
564 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
565 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
569 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
570 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
571 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
572 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
573 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
574 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
577 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
578 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
579 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
581 # remove known unpackaged files
582 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
584 # rename not to be so generic name
586 # not useful without -debug build
587 # generate symbols file, so one can generate backtrace using it
588 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
589 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
590 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
592 # do not clobber users $PATH
593 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
594 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
595 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
596 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
597 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
598 #%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
599 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
600 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
602 # delete - functionality in initscript / rpm
603 # note: mysql_install_db (and thus resolveip) are needed by digikam
604 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
605 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
606 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
607 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
608 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
609 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
610 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
611 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
612 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
614 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
615 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
616 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/test_udf_services.so
617 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
620 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
621 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
624 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
625 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
626 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
629 rm -rf $RPM_BUILD_ROOT
632 %groupadd -g 89 mysql
633 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
637 /sbin/chkconfig --add mysql
638 %service mysql restart
641 if [ "$1" = "0" ]; then
642 %service -q mysql stop
643 /sbin/chkconfig --del mysql
648 if [ "$1" = "0" ]; then
654 /sbin/chkconfig --add mysql-ndb
655 %service mysql-ndb restart "mysql NDB engine"
658 if [ "$1" = "0" ]; then
659 %service mysql-ndb stop
660 /sbin/chkconfig --del mysql-ndb
664 /sbin/chkconfig --add mysql-ndb-mgm
665 %service mysql-ndb-mgm restart "mysql NDB management node"
668 if [ "$1" = "0" ]; then
669 %service mysql-ndb-mgm stop
670 /sbin/chkconfig --del mysql-ndb-mgm
674 /sbin/chkconfig --add mysql-ndb-cpc
675 %service mysql-ndb-cpc restart "mysql NDB CPC"
678 if [ "$1" = "0" ]; then
679 %service mysql-ndb-cpc stop
680 /sbin/chkconfig --del mysql-ndb-cpc
683 %post libs -p /sbin/ldconfig
684 %postun libs -p /sbin/ldconfig
686 %triggerpostun -- mysql < 4.0.20-2.4
687 # For clusters in /etc/%{name}/clusters.conf
688 if [ -f /etc/sysconfig/mysql ]; then
689 . /etc/sysconfig/mysql
690 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
691 for i in "$MYSQL_DB_CLUSTERS"; do
692 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
694 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
695 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
696 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
697 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
701 %triggerpostun -- mysql < 4.1.1
702 # For better compatibility with prevoius versions:
703 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
704 if echo "$config" | grep -q '^/'; then
705 config_file="$config"
706 elif [ -f "/etc/%{name}/$config" ]; then
707 config_file=/etc/%{name}/$config
709 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
710 if [ -z "$clusterdir" ]; then
711 echo >&2 "Can't find cluster dir for $config!"
712 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
715 config_file="$clusterdir/mysqld.conf"
718 if [ ! -f "$config_file" ]; then
719 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
722 echo "Adding option old-passwords to config: $config_file"
723 echo "If you want to use new, better passwords - remove it"
725 # sed magic to add 'old-passwords' to [mysqld] section
726 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
728 a; Compatibility options:
734 %banner -e %{name}-4.1.x <<-EOF
735 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
736 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
740 %triggerpostun -- mysql < 5.1.0
742 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
743 if echo "$config" | grep -q '^/'; then
744 config_file="$config"
745 elif [ -f "/etc/%{name}/$config" ]; then
746 config_file=/etc/%{name}/$config
748 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
749 if [ -z "$clusterdir" ]; then
750 echo >&2 "Can't find cluster dir for $config!"
751 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
754 config_file="$clusterdir/mysqld.conf"
757 if [ ! -f "$config_file" ]; then
758 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/"
761 configs="$configs $config_file"
765 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
766 echo 'Thus, you should invoke:'
767 for config in $configs; do
769 s/set-variable\s*=\s* //
770 # use # as comment in config
774 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
775 echo "# mysql_upgrade --datadir=$datadir"
777 ) | %banner -e %{name}-5.1
779 %triggerpostun -- mysql < 5.5.0
781 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
782 if echo "$config" | grep -q '^/'; then
783 config_file="$config"
784 elif [ -f "/etc/%{name}/$config" ]; then
785 config_file=/etc/%{name}/$config
787 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
788 if [ -z "$clusterdir" ]; then
789 echo >&2 "Can't find cluster dir for $config!"
790 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
793 config_file="$clusterdir/mysqld.conf"
796 if [ ! -f "$config_file" ]; then
797 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/"
800 configs="$configs $config_file"
804 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
805 echo 'Thus, you should invoke:'
806 for config in $configs; do
808 s/^language *= *polish/lc-messages = pl_PL/i
809 s/set-variable\s*=\s* //
810 s/^skip-locking/skip-external-locking/
811 # this is not valid for server. it is client option
812 s/^default-character-set/# client-config: &/
813 # use # as comment in config
817 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
818 echo "# mysql_upgrade ${socket:+--socket=$socket}"
820 ) | %banner -e %{name}-5.5
822 %triggerpostun -- mysql < 5.7.0
824 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
825 if echo "$config" | grep -q '^/'; then
826 config_file="$config"
827 elif [ -f "/etc/%{name}/$config" ]; then
828 config_file=/etc/%{name}/$config
830 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
831 if [ -z "$clusterdir" ]; then
832 echo >&2 "Can't find cluster dir for $config!"
833 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
836 config_file="$clusterdir/mysqld.conf"
839 if [ ! -f "$config_file" ]; then
840 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/"
843 configs="$configs $config_file"
847 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
848 echo 'Thus, you should invoke:'
849 for config in $configs; do
851 s/^log-warnings *=/log-error-verbosity =/
852 s/^myisam-recover$/myisam-recover-options/
853 s/^innodb_mirrored_log_groups.*//
856 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
857 echo "# mysql_upgrade ${socket:+--socket=$socket}"
859 ) | %banner -e %{name}-5.7
862 %defattr(644,root,root,755)
863 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
864 %attr(754,root,root) /etc/rc.d/init.d/%{name}
865 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
866 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
867 %attr(755,root,root) %{_sbindir}/innochecksum
868 %attr(755,root,root) %{_sbindir}/my_print_defaults
869 %attr(755,root,root) %{_sbindir}/myisamchk
870 %attr(755,root,root) %{_sbindir}/myisamlog
871 %attr(755,root,root) %{_sbindir}/myisampack
872 %attr(755,root,root) %{_sbindir}/mysql_upgrade
873 %attr(755,root,root) %{_sbindir}/mysqlcheck
874 %attr(755,root,root) %{_sbindir}/mysqld
876 %dir %{_libdir}/%{name}
877 %dir %{_libdir}/%{name}/plugin
878 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
879 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
880 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
881 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
882 %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
883 %attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
884 %attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
885 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
886 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
887 %attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
888 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
889 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
890 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
891 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
892 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
893 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
894 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
899 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
901 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
903 %{_mandir}/man1/innochecksum.1*
904 %{_mandir}/man1/my_print_defaults.1*
905 %{_mandir}/man1/myisamchk.1*
906 %{_mandir}/man1/myisamlog.1*
907 %{_mandir}/man1/myisampack.1*
908 %{_mandir}/man1/mysql_upgrade.1*
909 %{_mandir}/man1/mysqlcheck.1*
910 %{_mandir}/man8/mysqld.8*
913 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
914 %{_datadir}/%{name}/mysqld.sym
915 %{_mandir}/man1/*resolve_stack_dump.1*
918 %attr(700,mysql,mysql) %{_mysqlhome}
919 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
920 %attr(751,root,root) /var/lib/mysql
921 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
922 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
923 %attr(750,mysql,mysql) %dir /var/log/mysql
924 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
925 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
927 # This is template for configuration file which is created after 'service mysql init'
928 %{_datadir}/%{name}/mysqld.conf
930 %{_datadir}/%{name}/english
931 %{_datadir}/%{name}/dictionary.txt
932 %{_datadir}/%{name}/innodb_memcached_config.sql
933 %{_datadir}/%{name}/install_rewriter.sql
934 %{_datadir}/%{name}/uninstall_rewriter.sql
935 # Don't mark these with %%lang. These are used depending
936 # on database client settings.
937 %{_datadir}/%{name}/bulgarian
938 %{_datadir}/%{name}/czech
939 %{_datadir}/%{name}/danish
940 %{_datadir}/%{name}/german
941 %{_datadir}/%{name}/greek
942 %{_datadir}/%{name}/spanish
943 %{_datadir}/%{name}/estonian
944 %{_datadir}/%{name}/french
945 %{_datadir}/%{name}/hungarian
946 %{_datadir}/%{name}/italian
947 %{_datadir}/%{name}/japanese
948 %{_datadir}/%{name}/korean
949 %{_datadir}/%{name}/dutch
950 %{_datadir}/%{name}/norwegian
951 %{_datadir}/%{name}/norwegian-ny
952 %{_datadir}/%{name}/polish
953 %{_datadir}/%{name}/portuguese
954 %{_datadir}/%{name}/romanian
955 %{_datadir}/%{name}/russian
956 %{_datadir}/%{name}/serbian
957 %{_datadir}/%{name}/slovak
958 %{_datadir}/%{name}/swedish
959 %{_datadir}/%{name}/ukrainian
962 %defattr(644,root,root,755)
963 %dir %{_datadir}/%{name}
964 %{_datadir}/%{name}/charsets
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_bindir}/myisam_ftdump
969 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
970 %attr(755,root,root) %{_bindir}/mysql_secure_installation
971 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
972 %attr(755,root,root) %{_bindir}/perror
973 %{_mandir}/man1/myisam_ftdump.1*
974 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
975 %{_mandir}/man1/mysql_secure_installation.1*
976 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
977 %{_mandir}/man1/perror.1*
980 %defattr(644,root,root,755)
981 %attr(755,root,root) %{_bindir}/mysqldumpslow
982 %{_mandir}/man1/mysqldumpslow.1*
985 %defattr(644,root,root,755)
986 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
987 %attr(755,root,root) %{_bindir}/mysql
988 %attr(755,root,root) %{_bindir}/mysqladmin
989 %attr(755,root,root) %{_bindir}/mysqlbinlog
990 %attr(755,root,root) %{_bindir}/mysql_config_editor
991 %attr(755,root,root) %{_bindir}/mysqldump
992 %attr(755,root,root) %{_bindir}/mysqlimport
993 %attr(755,root,root) %{_bindir}/mysqlpump
994 %attr(755,root,root) %{_bindir}/mysqlshow
995 %{_mandir}/man1/mysql.1*
996 %{_mandir}/man1/mysqladmin.1*
997 %{_mandir}/man1/mysqlbinlog.1*
998 %{_mandir}/man1/mysql_config_editor.1*
999 %{_mandir}/man1/mysqldump.1*
1000 %{_mandir}/man1/mysqlimport.1*
1001 %{_mandir}/man1/mysqlpump.1*
1002 %{_mandir}/man1/mysqlshow.1*
1005 %defattr(644,root,root,755)
1006 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1007 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1008 %{_sysconfdir}/%{name}/my.cnf
1009 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1010 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.21
1012 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1013 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/mysql_config
1019 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1021 %attr(755,root,root) %{_libdir}/libndbclient.so
1023 %{_pkgconfigdir}/mysqlclient.pc
1024 %{_libdir}/libmysqlservices.a
1025 %{_includedir}/mysql
1026 %{_aclocaldir}/mysql.m4
1027 %{_mandir}/man1/mysql_config.1*
1030 %defattr(644,root,root,755)
1031 %{_libdir}/libmysqlclient.a
1033 %{_libdir}/libndbclient.a
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/mysqlslap
1039 %attr(755,root,root) %{_bindir}/mysqltest
1040 #%dir %{_datadir}/sql-bench
1041 #%{_datadir}/sql-bench/[CDRl]*
1042 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1043 %{_mandir}/man1/mysqlslap.1*
1046 #%defattr(644,root,root,755)
1047 #%doc Docs/manual.html Docs/manual_toc.html
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_sbindir}/ndbd
1053 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1054 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1055 %{_mandir}/man1/ndbd_redo_log_reader.1*
1056 %{_mandir}/man8/ndbd.8*
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_bindir}/ndb_config
1061 %attr(755,root,root) %{_bindir}/ndb_delete_all
1062 %attr(755,root,root) %{_bindir}/ndb_desc
1063 %attr(755,root,root) %{_bindir}/ndb_drop_index
1064 %attr(755,root,root) %{_bindir}/ndb_drop_table
1065 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1066 %attr(755,root,root) %{_bindir}/ndb_mgm
1067 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1068 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1069 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1070 %attr(755,root,root) %{_bindir}/ndb_restore
1071 %attr(755,root,root) %{_bindir}/ndb_select_all
1072 %attr(755,root,root) %{_bindir}/ndb_select_count
1073 %attr(755,root,root) %{_bindir}/ndb_show_tables
1074 %attr(755,root,root) %{_bindir}/ndb_size.pl
1075 %attr(755,root,root) %{_bindir}/ndb_test_platform
1076 %attr(755,root,root) %{_bindir}/ndb_waiter
1077 %{_mandir}/man1/ndb_config.1*
1078 %{_mandir}/man1/ndb_delete_all.1*
1079 %{_mandir}/man1/ndb_desc.1*
1080 %{_mandir}/man1/ndb_drop_index.1*
1081 %{_mandir}/man1/ndb_drop_table.1*
1082 %{_mandir}/man1/ndb_error_reporter.1*
1083 %{_mandir}/man1/ndb_mgm.1*
1084 %{_mandir}/man1/ndb_print_backup_file.1*
1085 %{_mandir}/man1/ndb_print_schema_file.1*
1086 %{_mandir}/man1/ndb_print_sys_file.1*
1087 %{_mandir}/man1/ndb_restore.1*
1088 %{_mandir}/man1/ndb_select_all.1*
1089 %{_mandir}/man1/ndb_select_count.1*
1090 %{_mandir}/man1/ndb_show_tables.1*
1091 %{_mandir}/man1/ndb_size.pl.1*
1092 %{_mandir}/man1/ndb_waiter.1*
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1097 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1098 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1099 %{_mandir}/man8/ndb_mgmd.8*
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1104 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1105 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1106 %{_mandir}/man1/ndb_cpcd.1*